blob: f89e5fe22d98e7534ab421525e27dca08f47e185 [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
cristy71f53d52013-04-27 13:33:59 +0000714JXREncodeDelegate
715JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000716ILBMEncodeDelegate
717ILBMDecodeDelegate
718HTMLDecodeDelegate
719HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000720GnuplotDecodeDelegate
721MogrifyDelegate
722DisplayDelegate
723ConvertDelegate
724FIGDecodeDelegate
725EditorDelegate
726EchoDelegate
727DVIDecodeDelegate
728GVCDecodeDelegate
729DNGDecodeDelegate
730CatDelegate
731CGMDecodeDelegate
732BrowseDelegate
733BZIPDelegate
734BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000735AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000736SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000737SHAREARCH_RELATIVE_PATH
738SHAREARCH_DIRNAME
739SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000740SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000741CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000742DOCUMENTATION_PATH
743FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000745CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000746CODER_DIRNAME
747MODULES_PATH
748MODULES_RELATIVE_PATH
749MODULES_DIRNAME
750MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000751LIB_BIN_DIR_PATH
752LIB_BIN_DIR_RELATIVE_PATH
753LIB_BIN_DIR
754LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000755LIBRARY_PATH
756EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000757INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000758INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000759PERLMAINCC
760XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000761XML_DELEGATE_FALSE
762XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000763xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000764WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000765WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766WMF_DELEGATE_FALSE
767WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000768WEBP_LIBS
769WEBP_DELEGATE_FALSE
770WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772TIFF_DELEGATE_FALSE
773TIFF_DELEGATE_TRUE
774CAIRO_DELEGATE_FALSE
775CAIRO_DELEGATE_TRUE
776RSVG_DELEGATE_FALSE
777RSVG_DELEGATE_TRUE
778CAIRO_SVG_LIBS
779CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000780RSVG_LIBS
781RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000782PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000783PNG_DELEGATE_FALSE
784PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000785PANGOCAIRO_DELEGATE_FALSE
786PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000787PANGO_DELEGATE_FALSE
788PANGO_DELEGATE_TRUE
789PANGO_LIBS
790PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000791OPENEXR_DELEGATE_FALSE
792OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793OPENEXR_LIBS
794OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000795LZMA_DELEGATE_FALSE
796LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000797LZMA_LIBS
798LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000799LQR_DELEGATE_FALSE
800LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000801LQR_LIBS
802LQR_CFLAGS
803LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804LCMS_DELEGATE_FALSE
805LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807JP2_DELEGATE_FALSE
808JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810JPEG_DELEGATE_FALSE
811JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000812JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813JBIG_DELEGATE_FALSE
814JBIG_DELEGATE_TRUE
815GVC_DELEGATE_FALSE
816GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000817GVC_LIBS
818GVC_CFLAGS
819GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000820GS_DELEGATE_FALSE
821GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000822FREETYPE_DELEGATE_FALSE
823FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000824FREETYPE_LIBS
825FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000826FONTCONFIG_DELEGATE_FALSE
827FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828FONTCONFIG_LIBS
829FONTCONFIG_CFLAGS
830FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831FPX_DELEGATE_FALSE
832FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834FFTW_DELEGATE_FALSE
835FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000837DJVU_DELEGATE_FALSE
838DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000840DPS_DELEGATE_FALSE
841DPS_DELEGATE_TRUE
842AUTOTRACE_DELEGATE_FALSE
843AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844AUTOTRACE_LIBS
845AUTOTRACE_CFLAGS
846LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000847WITH_LTDL_FALSE
848WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000849ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000850ZLIB_DELEGATE_FALSE
851ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000852XEXT_LIBS
853X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000854X11_DELEGATE_FALSE
855X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856X_EXTRA_LIBS
857X_LIBS
858X_PRE_LIBS
859X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000860XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000861BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000862BZLIB_DELEGATE_FALSE
863BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000864CCMALLOCDelegate
865UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000866HasUMEM_FALSE
867HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000868THREAD_LIBS
869GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000870WITH_MAGICK_PLUS_PLUS_FALSE
871WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000872OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000873MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000874POW_LIB
875LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000876UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000877UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000878UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000879UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000880UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000881UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000882INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000883INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000884UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000885UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000886INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000887INT32_T
888UINT16_T
889INT16_T
890UINT8_T
891INT8_T
892LIBRARY_EXTRA_CPPFLAGS
893MODULE_EXTRA_CPPFLAGS
894LIBSTDCLDFLAGS
895PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000896MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000897MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000898QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000899LEGACY_SUPPORT_FALSE
900LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000901MAINT
902MAINTAINER_MODE_FALSE
903MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000904MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000905WITH_MODULES_FALSE
906WITH_MODULES_TRUE
907WITH_SHARED_LIBS_FALSE
908WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000909LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000910CXXCPP
911OTOOL64
912OTOOL
913LIPO
914NMEDIT
915DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000916MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000917RANLIB
cristyda16f162011-02-19 23:52:17 +0000918ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000919AR
920NM
921ac_ct_DUMPBIN
922DUMPBIN
923LIBTOOL
924OBJDUMP
925DLLTOOL
926AS
cristy3ed852e2009-09-05 21:47:34 +0000927LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000928CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000929CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000930OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000931PTHREAD_CFLAGS
932PTHREAD_LIBS
933PTHREAD_CC
934ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000935pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000936SHAREARCH_DIR
937INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000938WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000939USING_CL_FALSE
940USING_CL_TRUE
941CYGWIN_BUILD_FALSE
942CYGWIN_BUILD_TRUE
943WIN32_NATIVE_BUILD_FALSE
944WIN32_NATIVE_BUILD_TRUE
945WINGDI32_DELEGATE_FALSE
946WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000947GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000948HAVE_LD_VERSION_SCRIPT_FALSE
949HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000950PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000951PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000952LN_S
cristy3ed852e2009-09-05 21:47:34 +0000953LD
cristy73bd4a52010-10-05 11:24:23 +0000954FGREP
955SED
956am__fastdepCXX_FALSE
957am__fastdepCXX_TRUE
958CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000959ac_ct_CXX
960CXXFLAGS
961CXX
cristya0b81c32010-01-22 02:54:33 +0000962EGREP
963GREP
964CPP
cristy73bd4a52010-10-05 11:24:23 +0000965am__fastdepCC_FALSE
966am__fastdepCC_TRUE
967CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000968am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000969AMDEPBACKSLASH
970AMDEP_FALSE
971AMDEP_TRUE
972am__quote
973am__include
974DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000975OBJEXT
976EXEEXT
977ac_ct_CC
978CPPFLAGS
979LDFLAGS
980CFLAGS
981CC
982DIRSEP
983MAGICK_FILTER_MODULE_PATH
984MAGICK_CONFIGURE_BUILD_PATH
985MAGICK_CONFIGURE_SRC_PATH
986MAGICK_CODER_MODULE_PATH
987MAN_DIR
988INFO_DIR
989PERSISTINCLUDE_DIR
990INCLUDE_DIR
991LIB_DIR
992LOCALSTATE_DIR
993SHAREDSTATE_DIR
994SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000995DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000996DATA_DIR
997LIBEXEC_DIR
998SBIN_DIR
999BIN_DIR
1000EXEC_PREFIX_DIR
1001PREFIX_DIR
1002CONFIG_STATUS_DEPENDENCIES
1003MAGICK_LIB_VERSION_NUMBER
1004MAGICK_LIB_VERSION_TEXT
1005MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001006AM_BACKSLASH
1007AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001008AM_DEFAULT_V
1009AM_V
cristy73bd4a52010-10-05 11:24:23 +00001010am__untar
1011am__tar
1012AMTAR
1013am__leading_dot
1014SET_MAKE
1015AWK
1016mkdir_p
1017MKDIR_P
1018INSTALL_STRIP_PROGRAM
1019STRIP
1020install_sh
1021MAKEINFO
1022AUTOHEADER
1023AUTOMAKE
1024AUTOCONF
1025ACLOCAL
1026VERSION
1027PACKAGE
1028CYGPATH_W
1029am__isrc
1030INSTALL_DATA
1031INSTALL_SCRIPT
1032INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001033PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001034PACKAGE_RELEASE_DATE
1035PACKAGE_LIB_VERSION_NUMBER
1036PACKAGE_LIB_VERSION
1037PACKAGE_CHANGE_DATE
1038PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001039PACKAGE_PERL_VERSION
cristybab87c32010-02-09 20:54:22 +00001040MAGICK_LIBRARY_VERSION_INFO
1041MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001042MAGICK_LIBRARY_AGE
1043MAGICK_LIBRARY_REVISION
1044MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001045MAGICK_SVN_REVISION
1046MAGICK_VERSION
1047MAGICK_PATCHLEVEL_VERSION
1048MAGICK_MICRO_VERSION
1049MAGICK_MINOR_VERSION
1050MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001051MAGICK_TARGET_OS
1052MAGICK_TARGET_VENDOR
1053MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001054target_os
1055target_vendor
1056target_cpu
1057target
1058host_os
1059host_vendor
1060host_cpu
1061host
1062build_os
1063build_vendor
1064build_cpu
1065build
1066CONFIGURE_ARGS
1067DISTCHECK_CONFIG_FLAGS
1068target_alias
1069host_alias
1070build_alias
1071LIBS
1072ECHO_T
1073ECHO_N
1074ECHO_C
1075DEFS
1076mandir
1077localedir
1078libdir
1079psdir
1080pdfdir
1081dvidir
1082htmldir
1083infodir
1084docdir
1085oldincludedir
1086includedir
1087localstatedir
1088sharedstatedir
1089sysconfdir
1090datadir
1091datarootdir
1092libexecdir
1093sbindir
1094bindir
1095program_transform_name
1096prefix
1097exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001098PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001099PACKAGE_BUGREPORT
1100PACKAGE_STRING
1101PACKAGE_VERSION
1102PACKAGE_TARNAME
1103PACKAGE_NAME
1104PATH_SEPARATOR
1105SHELL'
1106ac_subst_files=''
1107ac_user_opts='
1108enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001109enable_silent_rules
1110enable_dependency_tracking
1111with_gnu_ld
1112with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001113with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001114enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001115enable_bounds_checking
1116enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001117with_includearch_dir
1118with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001119with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001120with_threads
1121enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001122enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001123enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001124enable_shared
1125enable_static
1126with_pic
1127enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001128with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001129enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001130with_modules
1131enable_delegate_build
1132enable_deprecated
1133enable_installed
1134enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001135enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001136enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001137enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001138enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001139enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001140enable_ccmalloc
1141enable_efence
1142enable_prof
1143enable_gprof
1144enable_gcov
1145with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001146enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001147with_quantum_depth
1148with_cache
1149with_frozenpaths
1150with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001151with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001152with_perl
1153with_perl_options
1154with_umem
1155with_libstdc
1156with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001157with_x
cristy3ed852e2009-09-05 21:47:34 +00001158with_zlib
1159with_autotrace
1160with_dps
1161with_djvu
cristy430a7312010-01-21 20:44:04 +00001162with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001163with_fftw
1164with_fpx
1165with_fontconfig
1166with_freetype
1167with_gslib
1168with_fontpath
1169with_gs_font_dir
1170with_gvc
1171with_jbig
1172with_jpeg
1173with_jp2
1174with_lcms
cristy71203402010-06-18 13:12:03 +00001175with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001176with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001177with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001178with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001179with_pango
cristy3ed852e2009-09-05 21:47:34 +00001180with_png
1181with_rsvg
1182with_tiff
cristyb1860752011-03-14 00:27:46 +00001183with_webp
cristy3ed852e2009-09-05 21:47:34 +00001184with_windows_font_dir
1185with_wmf
1186with_xml
1187'
1188 ac_precious_vars='build_alias
1189host_alias
1190target_alias
1191CC
1192CFLAGS
1193LDFLAGS
1194LIBS
1195CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001196CPP
cristy3ed852e2009-09-05 21:47:34 +00001197CXX
1198CXXFLAGS
1199CCC
cristy73bd4a52010-10-05 11:24:23 +00001200PKG_CONFIG
1201CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001202XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001203AUTOTRACE_CFLAGS
1204AUTOTRACE_LIBS
1205FONTCONFIG_CFLAGS
1206FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001207FREETYPE_CFLAGS
1208FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001209GVC_CFLAGS
1210GVC_LIBS
1211LQR_CFLAGS
1212LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001213LZMA_CFLAGS
1214LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001215OPENEXR_CFLAGS
1216OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001217PANGO_CFLAGS
1218PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001219RSVG_CFLAGS
1220RSVG_LIBS
1221CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001222CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001223
1224
1225# Initialize some variables set by options.
1226ac_init_help=
1227ac_init_version=false
1228ac_unrecognized_opts=
1229ac_unrecognized_sep=
1230# The variables have the same names as the options, with
1231# dashes changed to underlines.
1232cache_file=/dev/null
1233exec_prefix=NONE
1234no_create=
1235no_recursion=
1236prefix=NONE
1237program_prefix=NONE
1238program_suffix=NONE
1239program_transform_name=s,x,x,
1240silent=
1241site=
1242srcdir=
1243verbose=
1244x_includes=NONE
1245x_libraries=NONE
1246
1247# Installation directory options.
1248# These are left unexpanded so users can "make install exec_prefix=/foo"
1249# and all the variables that are supposed to be based on exec_prefix
1250# by default will actually change.
1251# Use braces instead of parens because sh, perl, etc. also accept them.
1252# (The list follows the same order as the GNU Coding Standards.)
1253bindir='${exec_prefix}/bin'
1254sbindir='${exec_prefix}/sbin'
1255libexecdir='${exec_prefix}/libexec'
1256datarootdir='${prefix}/share'
1257datadir='${datarootdir}'
1258sysconfdir='${prefix}/etc'
1259sharedstatedir='${prefix}/com'
1260localstatedir='${prefix}/var'
1261includedir='${prefix}/include'
1262oldincludedir='/usr/include'
1263docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1264infodir='${datarootdir}/info'
1265htmldir='${docdir}'
1266dvidir='${docdir}'
1267pdfdir='${docdir}'
1268psdir='${docdir}'
1269libdir='${exec_prefix}/lib'
1270localedir='${datarootdir}/locale'
1271mandir='${datarootdir}/man'
1272
1273ac_prev=
1274ac_dashdash=
1275for ac_option
1276do
1277 # If the previous option needs an argument, assign it.
1278 if test -n "$ac_prev"; then
1279 eval $ac_prev=\$ac_option
1280 ac_prev=
1281 continue
1282 fi
1283
1284 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001285 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1286 *=) ac_optarg= ;;
1287 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001288 esac
1289
1290 # Accept the important Cygnus configure options, so we can diagnose typos.
1291
1292 case $ac_dashdash$ac_option in
1293 --)
1294 ac_dashdash=yes ;;
1295
1296 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1297 ac_prev=bindir ;;
1298 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1299 bindir=$ac_optarg ;;
1300
1301 -build | --build | --buil | --bui | --bu)
1302 ac_prev=build_alias ;;
1303 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1304 build_alias=$ac_optarg ;;
1305
1306 -cache-file | --cache-file | --cache-fil | --cache-fi \
1307 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1308 ac_prev=cache_file ;;
1309 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1310 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1311 cache_file=$ac_optarg ;;
1312
1313 --config-cache | -C)
1314 cache_file=config.cache ;;
1315
1316 -datadir | --datadir | --datadi | --datad)
1317 ac_prev=datadir ;;
1318 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1319 datadir=$ac_optarg ;;
1320
1321 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1322 | --dataroo | --dataro | --datar)
1323 ac_prev=datarootdir ;;
1324 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1325 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1326 datarootdir=$ac_optarg ;;
1327
1328 -disable-* | --disable-*)
1329 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001332 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001333 ac_useropt_orig=$ac_useropt
1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1336 *"
1337"enable_$ac_useropt"
1338"*) ;;
1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1340 ac_unrecognized_sep=', ';;
1341 esac
1342 eval enable_$ac_useropt=no ;;
1343
1344 -docdir | --docdir | --docdi | --doc | --do)
1345 ac_prev=docdir ;;
1346 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1347 docdir=$ac_optarg ;;
1348
1349 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1350 ac_prev=dvidir ;;
1351 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1352 dvidir=$ac_optarg ;;
1353
1354 -enable-* | --enable-*)
1355 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1356 # Reject names that are not valid shell variable names.
1357 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001358 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001359 ac_useropt_orig=$ac_useropt
1360 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1361 case $ac_user_opts in
1362 *"
1363"enable_$ac_useropt"
1364"*) ;;
1365 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1366 ac_unrecognized_sep=', ';;
1367 esac
1368 eval enable_$ac_useropt=\$ac_optarg ;;
1369
1370 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1371 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1372 | --exec | --exe | --ex)
1373 ac_prev=exec_prefix ;;
1374 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1375 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1376 | --exec=* | --exe=* | --ex=*)
1377 exec_prefix=$ac_optarg ;;
1378
1379 -gas | --gas | --ga | --g)
1380 # Obsolete; use --with-gas.
1381 with_gas=yes ;;
1382
1383 -help | --help | --hel | --he | -h)
1384 ac_init_help=long ;;
1385 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1386 ac_init_help=recursive ;;
1387 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1388 ac_init_help=short ;;
1389
1390 -host | --host | --hos | --ho)
1391 ac_prev=host_alias ;;
1392 -host=* | --host=* | --hos=* | --ho=*)
1393 host_alias=$ac_optarg ;;
1394
1395 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1396 ac_prev=htmldir ;;
1397 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1398 | --ht=*)
1399 htmldir=$ac_optarg ;;
1400
1401 -includedir | --includedir | --includedi | --included | --include \
1402 | --includ | --inclu | --incl | --inc)
1403 ac_prev=includedir ;;
1404 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1405 | --includ=* | --inclu=* | --incl=* | --inc=*)
1406 includedir=$ac_optarg ;;
1407
1408 -infodir | --infodir | --infodi | --infod | --info | --inf)
1409 ac_prev=infodir ;;
1410 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1411 infodir=$ac_optarg ;;
1412
1413 -libdir | --libdir | --libdi | --libd)
1414 ac_prev=libdir ;;
1415 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1416 libdir=$ac_optarg ;;
1417
1418 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1419 | --libexe | --libex | --libe)
1420 ac_prev=libexecdir ;;
1421 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1422 | --libexe=* | --libex=* | --libe=*)
1423 libexecdir=$ac_optarg ;;
1424
1425 -localedir | --localedir | --localedi | --localed | --locale)
1426 ac_prev=localedir ;;
1427 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1428 localedir=$ac_optarg ;;
1429
1430 -localstatedir | --localstatedir | --localstatedi | --localstated \
1431 | --localstate | --localstat | --localsta | --localst | --locals)
1432 ac_prev=localstatedir ;;
1433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1434 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1435 localstatedir=$ac_optarg ;;
1436
1437 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1438 ac_prev=mandir ;;
1439 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1440 mandir=$ac_optarg ;;
1441
1442 -nfp | --nfp | --nf)
1443 # Obsolete; use --without-fp.
1444 with_fp=no ;;
1445
1446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1447 | --no-cr | --no-c | -n)
1448 no_create=yes ;;
1449
1450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1452 no_recursion=yes ;;
1453
1454 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1455 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1456 | --oldin | --oldi | --old | --ol | --o)
1457 ac_prev=oldincludedir ;;
1458 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1459 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1460 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1461 oldincludedir=$ac_optarg ;;
1462
1463 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1464 ac_prev=prefix ;;
1465 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1466 prefix=$ac_optarg ;;
1467
1468 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1469 | --program-pre | --program-pr | --program-p)
1470 ac_prev=program_prefix ;;
1471 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1472 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1473 program_prefix=$ac_optarg ;;
1474
1475 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1476 | --program-suf | --program-su | --program-s)
1477 ac_prev=program_suffix ;;
1478 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1479 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1480 program_suffix=$ac_optarg ;;
1481
1482 -program-transform-name | --program-transform-name \
1483 | --program-transform-nam | --program-transform-na \
1484 | --program-transform-n | --program-transform- \
1485 | --program-transform | --program-transfor \
1486 | --program-transfo | --program-transf \
1487 | --program-trans | --program-tran \
1488 | --progr-tra | --program-tr | --program-t)
1489 ac_prev=program_transform_name ;;
1490 -program-transform-name=* | --program-transform-name=* \
1491 | --program-transform-nam=* | --program-transform-na=* \
1492 | --program-transform-n=* | --program-transform-=* \
1493 | --program-transform=* | --program-transfor=* \
1494 | --program-transfo=* | --program-transf=* \
1495 | --program-trans=* | --program-tran=* \
1496 | --progr-tra=* | --program-tr=* | --program-t=*)
1497 program_transform_name=$ac_optarg ;;
1498
1499 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1500 ac_prev=pdfdir ;;
1501 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1502 pdfdir=$ac_optarg ;;
1503
1504 -psdir | --psdir | --psdi | --psd | --ps)
1505 ac_prev=psdir ;;
1506 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1507 psdir=$ac_optarg ;;
1508
1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1510 | -silent | --silent | --silen | --sile | --sil)
1511 silent=yes ;;
1512
1513 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1514 ac_prev=sbindir ;;
1515 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1516 | --sbi=* | --sb=*)
1517 sbindir=$ac_optarg ;;
1518
1519 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1520 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1521 | --sharedst | --shareds | --shared | --share | --shar \
1522 | --sha | --sh)
1523 ac_prev=sharedstatedir ;;
1524 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1525 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1526 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1527 | --sha=* | --sh=*)
1528 sharedstatedir=$ac_optarg ;;
1529
1530 -site | --site | --sit)
1531 ac_prev=site ;;
1532 -site=* | --site=* | --sit=*)
1533 site=$ac_optarg ;;
1534
1535 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1536 ac_prev=srcdir ;;
1537 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1538 srcdir=$ac_optarg ;;
1539
1540 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1541 | --syscon | --sysco | --sysc | --sys | --sy)
1542 ac_prev=sysconfdir ;;
1543 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1544 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1545 sysconfdir=$ac_optarg ;;
1546
1547 -target | --target | --targe | --targ | --tar | --ta | --t)
1548 ac_prev=target_alias ;;
1549 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1550 target_alias=$ac_optarg ;;
1551
1552 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1553 verbose=yes ;;
1554
1555 -version | --version | --versio | --versi | --vers | -V)
1556 ac_init_version=: ;;
1557
1558 -with-* | --with-*)
1559 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1560 # Reject names that are not valid shell variable names.
1561 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001562 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001563 ac_useropt_orig=$ac_useropt
1564 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1565 case $ac_user_opts in
1566 *"
1567"with_$ac_useropt"
1568"*) ;;
1569 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1570 ac_unrecognized_sep=', ';;
1571 esac
1572 eval with_$ac_useropt=\$ac_optarg ;;
1573
1574 -without-* | --without-*)
1575 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1576 # Reject names that are not valid shell variable names.
1577 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001578 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001579 ac_useropt_orig=$ac_useropt
1580 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1581 case $ac_user_opts in
1582 *"
1583"with_$ac_useropt"
1584"*) ;;
1585 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1586 ac_unrecognized_sep=', ';;
1587 esac
1588 eval with_$ac_useropt=no ;;
1589
1590 --x)
1591 # Obsolete; use --with-x.
1592 with_x=yes ;;
1593
1594 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1595 | --x-incl | --x-inc | --x-in | --x-i)
1596 ac_prev=x_includes ;;
1597 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1598 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1599 x_includes=$ac_optarg ;;
1600
1601 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1602 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1603 ac_prev=x_libraries ;;
1604 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1605 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1606 x_libraries=$ac_optarg ;;
1607
cristy98dddb52010-11-04 00:30:15 +00001608 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1609Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001610 ;;
1611
1612 *=*)
1613 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1614 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001615 case $ac_envvar in #(
1616 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001617 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001618 esac
cristy3ed852e2009-09-05 21:47:34 +00001619 eval $ac_envvar=\$ac_optarg
1620 export $ac_envvar ;;
1621
1622 *)
1623 # FIXME: should be removed in autoconf 3.0.
1624 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1625 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1626 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001627 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001628 ;;
1629
1630 esac
1631done
1632
1633if test -n "$ac_prev"; then
1634 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001635 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001636fi
1637
1638if test -n "$ac_unrecognized_opts"; then
1639 case $enable_option_checking in
1640 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001641 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001642 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1643 esac
1644fi
1645
1646# Check all directory arguments for consistency.
1647for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1648 datadir sysconfdir sharedstatedir localstatedir includedir \
1649 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1650 libdir localedir mandir
1651do
1652 eval ac_val=\$$ac_var
1653 # Remove trailing slashes.
1654 case $ac_val in
1655 */ )
1656 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1657 eval $ac_var=\$ac_val;;
1658 esac
1659 # Be sure to have absolute directory names.
1660 case $ac_val in
1661 [\\/$]* | ?:[\\/]* ) continue;;
1662 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1663 esac
cristy98dddb52010-11-04 00:30:15 +00001664 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001665done
1666
1667# There might be people who depend on the old broken behavior: `$host'
1668# used to hold the argument of --host etc.
1669# FIXME: To remove some day.
1670build=$build_alias
1671host=$host_alias
1672target=$target_alias
1673
1674# FIXME: To remove some day.
1675if test "x$host_alias" != x; then
1676 if test "x$build_alias" = x; then
1677 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001678 elif test "x$build_alias" != "x$host_alias"; then
1679 cross_compiling=yes
1680 fi
1681fi
1682
1683ac_tool_prefix=
1684test -n "$host_alias" && ac_tool_prefix=$host_alias-
1685
1686test "$silent" = yes && exec 6>/dev/null
1687
1688
1689ac_pwd=`pwd` && test -n "$ac_pwd" &&
1690ac_ls_di=`ls -di .` &&
1691ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001692 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001693test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001694 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001695
1696
1697# Find the source files, if location was not specified.
1698if test -z "$srcdir"; then
1699 ac_srcdir_defaulted=yes
1700 # Try the directory containing this script, then the parent directory.
1701 ac_confdir=`$as_dirname -- "$as_myself" ||
1702$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1703 X"$as_myself" : 'X\(//\)[^/]' \| \
1704 X"$as_myself" : 'X\(//\)$' \| \
1705 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1706$as_echo X"$as_myself" |
1707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1708 s//\1/
1709 q
1710 }
1711 /^X\(\/\/\)[^/].*/{
1712 s//\1/
1713 q
1714 }
1715 /^X\(\/\/\)$/{
1716 s//\1/
1717 q
1718 }
1719 /^X\(\/\).*/{
1720 s//\1/
1721 q
1722 }
1723 s/.*/./; q'`
1724 srcdir=$ac_confdir
1725 if test ! -r "$srcdir/$ac_unique_file"; then
1726 srcdir=..
1727 fi
1728else
1729 ac_srcdir_defaulted=no
1730fi
1731if test ! -r "$srcdir/$ac_unique_file"; then
1732 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001733 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001734fi
1735ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1736ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001737 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001738 pwd)`
1739# When building in place, set srcdir=.
1740if test "$ac_abs_confdir" = "$ac_pwd"; then
1741 srcdir=.
1742fi
1743# Remove unnecessary trailing slashes from srcdir.
1744# Double slashes in file names in object file debugging info
1745# mess up M-x gdb in Emacs.
1746case $srcdir in
1747*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1748esac
1749for ac_var in $ac_precious_vars; do
1750 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1751 eval ac_env_${ac_var}_value=\$${ac_var}
1752 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1753 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1754done
1755
1756#
1757# Report the --help message.
1758#
1759if test "$ac_init_help" = "long"; then
1760 # Omit some internal or obsolete options to make the list less imposing.
1761 # This message is too long to be a string in the A/UX 3.1 sh.
1762 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001763\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001764
1765Usage: $0 [OPTION]... [VAR=VALUE]...
1766
1767To assign environment variables (e.g., CC, CFLAGS...), specify them as
1768VAR=VALUE. See below for descriptions of some of the useful variables.
1769
1770Defaults for the options are specified in brackets.
1771
1772Configuration:
1773 -h, --help display this help and exit
1774 --help=short display options specific to this package
1775 --help=recursive display the short help of all the included packages
1776 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001777 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001778 --cache-file=FILE cache test results in FILE [disabled]
1779 -C, --config-cache alias for \`--cache-file=config.cache'
1780 -n, --no-create do not create output files
1781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1782
1783Installation directories:
1784 --prefix=PREFIX install architecture-independent files in PREFIX
1785 [$ac_default_prefix]
1786 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1787 [PREFIX]
1788
1789By default, \`make install' will install all the files in
1790\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1791an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1792for instance \`--prefix=\$HOME'.
1793
1794For better control, use the options below.
1795
1796Fine tuning of the installation directories:
1797 --bindir=DIR user executables [EPREFIX/bin]
1798 --sbindir=DIR system admin executables [EPREFIX/sbin]
1799 --libexecdir=DIR program executables [EPREFIX/libexec]
1800 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1801 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1802 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1803 --libdir=DIR object code libraries [EPREFIX/lib]
1804 --includedir=DIR C header files [PREFIX/include]
1805 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1806 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1807 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1808 --infodir=DIR info documentation [DATAROOTDIR/info]
1809 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1810 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001811 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001812 --htmldir=DIR html documentation [DOCDIR]
1813 --dvidir=DIR dvi documentation [DOCDIR]
1814 --pdfdir=DIR pdf documentation [DOCDIR]
1815 --psdir=DIR ps documentation [DOCDIR]
1816_ACEOF
1817
1818 cat <<\_ACEOF
1819
cristy73bd4a52010-10-05 11:24:23 +00001820Program names:
1821 --program-prefix=PREFIX prepend PREFIX to installed program names
1822 --program-suffix=SUFFIX append SUFFIX to installed program names
1823 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1824
cristy3ed852e2009-09-05 21:47:34 +00001825X features:
1826 --x-includes=DIR X include files are in DIR
1827 --x-libraries=DIR X library files are in DIR
1828
1829System types:
1830 --build=BUILD configure for building on BUILD [guessed]
1831 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1832 --target=TARGET configure for building compilers for TARGET [HOST]
1833_ACEOF
1834fi
1835
1836if test -n "$ac_init_help"; then
1837 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001838 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001839 esac
1840 cat <<\_ACEOF
1841
1842Optional Features:
1843 --disable-option-checking ignore unrecognized --enable/--with options
1844 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1845 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001846 --enable-silent-rules less verbose build output (undo: "make V=1")
1847 --disable-silent-rules verbose build output (undo: "make V=0")
1848 --enable-dependency-tracking
1849 do not reject slow dependency extractors
1850 --disable-dependency-tracking
1851 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001852 --enable-ld-version-script
1853 enable linker version script (default is enabled
1854 when possible)
cristya3824692012-03-30 17:22:07 +00001855 --enable-bounds-checking
1856 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001857 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001858 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001859 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001860 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001861 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001862 --enable-shared[=PKGS] build shared libraries [default=yes]
1863 --enable-static[=PKGS] build static libraries [default=yes]
1864 --enable-fast-install[=PKGS]
1865 optimize for fast installation [default=yes]
1866 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001867 --enable-delegate-build look for delegate libraries in build directory
1868 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001869 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001870 --disable-installed Formally install ImageMagick under PREFIX
1871 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001872 --enable-zero-configuration
1873 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001874 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001875 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001876 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001877 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001878 --enable-maintainer-mode
1879 enable make rules and dependencies not useful (and
1880 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001881 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001882 --enable-ccmalloc enable 'ccmalloc' memory debug support
1883 --enable-efence enable 'efence' memory debug support
1884 --enable-prof enable 'prof' profiling support
1885 --enable-gprof enable 'gprof' profiling support
1886 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001887 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001888 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001889
1890Optional Packages:
1891 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1892 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001893 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001894 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001895 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1896 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001897 --includearch-dir=DIR ARCH specific include directory
1898 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001899 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001900 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001901 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001902 both]
cristyda16f162011-02-19 23:52:17 +00001903 --with-sysroot=DIR Search for dependent libraries within DIR
1904 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001905 --with-modules enable building dynamically loadable modules
1906 --with-method-prefix=PREFIX
1907 prefix MagickCore API methods
1908 --with-quantum-depth=DEPTH
1909 number of bits in a pixel quantum (default 16)
1910 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1911 memory)
1912 --with-frozenpaths freeze delegate paths
1913 --without-magick-plus-plus
1914 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001915 --with-package-release-name=NAME
1916 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001917 --with-perl enable build/install of PerlMagick
1918 --with-perl-options=OPTIONS
1919 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001920 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001921 --with-umem enable umem memory allocation library support
1922 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1923 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001924 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001925 --without-zlib disable ZLIB support
1926 --with-autotrace enable autotrace support
1927 --without-dps disable Display Postscript support
1928 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001929 --with-dejavu-font-dir=DIR
1930 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001931 --without-fftw disable FFTW support
1932 --without-fpx disable FlashPIX support
1933 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001934 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001935 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001936 --with-fontpath=DIR prepend to default font search path
1937 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001938 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001939 --without-jbig disable JBIG support
1940 --without-jpeg disable JPEG support
1941 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001942 --without-lcms disable lcms (v1.1X) support
1943 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001944 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001945 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001946 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001947 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001948 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001949 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001950 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001951 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001952 --with-windows-font-dir=DIR
1953 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001954 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001955 --without-xml disable XML support
1956
1957Some influential environment variables:
1958 CC C compiler command
1959 CFLAGS C compiler flags
1960 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1961 nonstandard directory <lib dir>
1962 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001963 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001964 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001965 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001966 CXX C++ compiler command
1967 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001968 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001969 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001970 XMKMF Path to xmkmf, Makefile generator for X Window System
1971 AUTOTRACE_CFLAGS
1972 C compiler flags for AUTOTRACE, overriding pkg-config
1973 AUTOTRACE_LIBS
1974 linker flags for AUTOTRACE, overriding pkg-config
1975 FONTCONFIG_CFLAGS
1976 C compiler flags for FONTCONFIG, overriding pkg-config
1977 FONTCONFIG_LIBS
1978 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001979 FREETYPE_CFLAGS
1980 C compiler flags for FREETYPE, overriding pkg-config
1981 FREETYPE_LIBS
1982 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001983 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1984 GVC_LIBS linker flags for GVC, overriding pkg-config
1985 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1986 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001987 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1988 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001989 OPENEXR_CFLAGS
1990 C compiler flags for OPENEXR, overriding pkg-config
1991 OPENEXR_LIBS
1992 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001993 PANGO_CFLAGS
1994 C compiler flags for PANGO, overriding pkg-config
1995 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001996 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1997 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1998 CAIRO_SVG_CFLAGS
1999 C compiler flags for CAIRO_SVG, overriding pkg-config
2000 CAIRO_SVG_LIBS
2001 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002002
2003Use these variables to override the choices made by `configure' or to help
2004it to find libraries and programs with nonstandard names/locations.
2005
2006Report bugs to <http://www.imagemagick.org>.
2007_ACEOF
2008ac_status=$?
2009fi
2010
2011if test "$ac_init_help" = "recursive"; then
2012 # If there are subdirs, report their specific --help.
2013 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2014 test -d "$ac_dir" ||
2015 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2016 continue
2017 ac_builddir=.
2018
2019case "$ac_dir" in
2020.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2021*)
2022 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2023 # A ".." for each directory in $ac_dir_suffix.
2024 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2025 case $ac_top_builddir_sub in
2026 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2027 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2028 esac ;;
2029esac
2030ac_abs_top_builddir=$ac_pwd
2031ac_abs_builddir=$ac_pwd$ac_dir_suffix
2032# for backward compatibility:
2033ac_top_builddir=$ac_top_build_prefix
2034
2035case $srcdir in
2036 .) # We are building in place.
2037 ac_srcdir=.
2038 ac_top_srcdir=$ac_top_builddir_sub
2039 ac_abs_top_srcdir=$ac_pwd ;;
2040 [\\/]* | ?:[\\/]* ) # Absolute name.
2041 ac_srcdir=$srcdir$ac_dir_suffix;
2042 ac_top_srcdir=$srcdir
2043 ac_abs_top_srcdir=$srcdir ;;
2044 *) # Relative name.
2045 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2046 ac_top_srcdir=$ac_top_build_prefix$srcdir
2047 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2048esac
2049ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2050
2051 cd "$ac_dir" || { ac_status=$?; continue; }
2052 # Check for guested configure.
2053 if test -f "$ac_srcdir/configure.gnu"; then
2054 echo &&
2055 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2056 elif test -f "$ac_srcdir/configure"; then
2057 echo &&
2058 $SHELL "$ac_srcdir/configure" --help=recursive
2059 else
2060 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2061 fi || ac_status=$?
2062 cd "$ac_pwd" || { ac_status=$?; break; }
2063 done
2064fi
2065
2066test -n "$ac_init_help" && exit $ac_status
2067if $ac_init_version; then
2068 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002069ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002070generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002071
cristy14fefe52012-05-21 00:59:18 +00002072Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002073This configure script is free software; the Free Software Foundation
2074gives unlimited permission to copy, distribute and modify it.
2075_ACEOF
2076 exit
2077fi
cristy8b350f62009-11-15 23:12:43 +00002078
2079## ------------------------ ##
2080## Autoconf initialization. ##
2081## ------------------------ ##
2082
2083# ac_fn_c_try_compile LINENO
2084# --------------------------
2085# Try to compile conftest.$ac_ext, and return whether this succeeded.
2086ac_fn_c_try_compile ()
2087{
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 rm -f conftest.$ac_objext
2090 if { { ac_try="$ac_compile"
2091case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094esac
2095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096$as_echo "$ac_try_echo"; } >&5
2097 (eval "$ac_compile") 2>conftest.err
2098 ac_status=$?
2099 if test -s conftest.err; then
2100 grep -v '^ *+' conftest.err >conftest.er1
2101 cat conftest.er1 >&5
2102 mv -f conftest.er1 conftest.err
2103 fi
2104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105 test $ac_status = 0; } && {
2106 test -z "$ac_c_werror_flag" ||
2107 test ! -s conftest.err
2108 } && test -s conftest.$ac_objext; then :
2109 ac_retval=0
2110else
2111 $as_echo "$as_me: failed program was:" >&5
2112sed 's/^/| /' conftest.$ac_ext >&5
2113
2114 ac_retval=1
2115fi
cristyda16f162011-02-19 23:52:17 +00002116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002117 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002118
2119} # ac_fn_c_try_compile
2120
cristy95646052009-11-28 23:05:30 +00002121# ac_fn_c_try_cpp LINENO
2122# ----------------------
2123# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2124ac_fn_c_try_cpp ()
2125{
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 if { { ac_try="$ac_cpp conftest.$ac_ext"
2128case "(($ac_try" in
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2131esac
2132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133$as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2135 ac_status=$?
2136 if test -s conftest.err; then
2137 grep -v '^ *+' conftest.err >conftest.er1
2138 cat conftest.er1 >&5
2139 mv -f conftest.er1 conftest.err
2140 fi
2141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002142 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2144 test ! -s conftest.err
2145 }; then :
2146 ac_retval=0
2147else
2148 $as_echo "$as_me: failed program was:" >&5
2149sed 's/^/| /' conftest.$ac_ext >&5
2150
2151 ac_retval=1
2152fi
cristyda16f162011-02-19 23:52:17 +00002153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002154 as_fn_set_status $ac_retval
2155
2156} # ac_fn_c_try_cpp
2157
cristy8b350f62009-11-15 23:12:43 +00002158# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2159# -------------------------------------------------------
2160# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2161# the include files in INCLUDES and setting the cache variable VAR
2162# accordingly.
2163ac_fn_c_check_header_mongrel ()
2164{
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002166 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2168$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002169if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002170 $as_echo_n "(cached) " >&6
2171fi
2172eval ac_res=\$$3
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174$as_echo "$ac_res" >&6; }
2175else
2176 # Is the header compilable?
2177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2178$as_echo_n "checking $2 usability... " >&6; }
2179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$4
2182#include <$2>
2183_ACEOF
2184if ac_fn_c_try_compile "$LINENO"; then :
2185 ac_header_compiler=yes
2186else
2187 ac_header_compiler=no
2188fi
2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2191$as_echo "$ac_header_compiler" >&6; }
2192
2193# Is the header present?
2194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2195$as_echo_n "checking $2 presence... " >&6; }
2196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197/* end confdefs.h. */
2198#include <$2>
2199_ACEOF
2200if ac_fn_c_try_cpp "$LINENO"; then :
2201 ac_header_preproc=yes
2202else
2203 ac_header_preproc=no
2204fi
cristyda16f162011-02-19 23:52:17 +00002205rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2207$as_echo "$ac_header_preproc" >&6; }
2208
2209# So? What about this header?
2210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2211 yes:no: )
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2213$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2215$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2216 ;;
2217 no:yes:* )
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2219$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2221$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2223$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2225$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2227$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002228( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002229## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002230## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002231 ) | sed "s/^/$as_me: WARNING: /" >&2
2232 ;;
2233esac
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002236if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002237 $as_echo_n "(cached) " >&6
2238else
2239 eval "$3=\$ac_header_compiler"
2240fi
2241eval ac_res=\$$3
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243$as_echo "$ac_res" >&6; }
2244fi
cristyda16f162011-02-19 23:52:17 +00002245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002246
2247} # ac_fn_c_check_header_mongrel
2248
2249# ac_fn_c_try_run LINENO
2250# ----------------------
2251# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2252# that executables *can* be run.
2253ac_fn_c_try_run ()
2254{
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 if { { ac_try="$ac_link"
2257case "(($ac_try" in
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2260esac
2261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2262$as_echo "$ac_try_echo"; } >&5
2263 (eval "$ac_link") 2>&5
2264 ac_status=$?
2265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2266 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2267 { { case "(($ac_try" in
2268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269 *) ac_try_echo=$ac_try;;
2270esac
2271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2272$as_echo "$ac_try_echo"; } >&5
2273 (eval "$ac_try") 2>&5
2274 ac_status=$?
2275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2276 test $ac_status = 0; }; }; then :
2277 ac_retval=0
2278else
2279 $as_echo "$as_me: program exited with status $ac_status" >&5
2280 $as_echo "$as_me: failed program was:" >&5
2281sed 's/^/| /' conftest.$ac_ext >&5
2282
2283 ac_retval=$ac_status
2284fi
2285 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002287 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002288
2289} # ac_fn_c_try_run
2290
2291# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2292# -------------------------------------------------------
2293# Tests whether HEADER exists and can be compiled using the include files in
2294# INCLUDES, setting the cache variable VAR accordingly.
2295ac_fn_c_check_header_compile ()
2296{
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2299$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002300if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002301 $as_echo_n "(cached) " >&6
2302else
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304/* end confdefs.h. */
2305$4
2306#include <$2>
2307_ACEOF
2308if ac_fn_c_try_compile "$LINENO"; then :
2309 eval "$3=yes"
2310else
2311 eval "$3=no"
2312fi
2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314fi
2315eval ac_res=\$$3
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002319
2320} # ac_fn_c_check_header_compile
2321
cristya0b81c32010-01-22 02:54:33 +00002322# ac_fn_cxx_try_compile LINENO
2323# ----------------------------
2324# Try to compile conftest.$ac_ext, and return whether this succeeded.
2325ac_fn_cxx_try_compile ()
2326{
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 rm -f conftest.$ac_objext
2329 if { { ac_try="$ac_compile"
2330case "(($ac_try" in
2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332 *) ac_try_echo=$ac_try;;
2333esac
2334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2335$as_echo "$ac_try_echo"; } >&5
2336 (eval "$ac_compile") 2>conftest.err
2337 ac_status=$?
2338 if test -s conftest.err; then
2339 grep -v '^ *+' conftest.err >conftest.er1
2340 cat conftest.er1 >&5
2341 mv -f conftest.er1 conftest.err
2342 fi
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; } && {
2345 test -z "$ac_cxx_werror_flag" ||
2346 test ! -s conftest.err
2347 } && test -s conftest.$ac_objext; then :
2348 ac_retval=0
2349else
2350 $as_echo "$as_me: failed program was:" >&5
2351sed 's/^/| /' conftest.$ac_ext >&5
2352
2353 ac_retval=1
2354fi
cristyda16f162011-02-19 23:52:17 +00002355 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002356 as_fn_set_status $ac_retval
2357
2358} # ac_fn_cxx_try_compile
2359
cristy8b350f62009-11-15 23:12:43 +00002360# ac_fn_c_try_link LINENO
2361# -----------------------
2362# Try to link conftest.$ac_ext, and return whether this succeeded.
2363ac_fn_c_try_link ()
2364{
2365 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366 rm -f conftest.$ac_objext conftest$ac_exeext
2367 if { { ac_try="$ac_link"
2368case "(($ac_try" in
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2371esac
2372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2373$as_echo "$ac_try_echo"; } >&5
2374 (eval "$ac_link") 2>conftest.err
2375 ac_status=$?
2376 if test -s conftest.err; then
2377 grep -v '^ *+' conftest.err >conftest.er1
2378 cat conftest.er1 >&5
2379 mv -f conftest.er1 conftest.err
2380 fi
2381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2382 test $ac_status = 0; } && {
2383 test -z "$ac_c_werror_flag" ||
2384 test ! -s conftest.err
2385 } && test -s conftest$ac_exeext && {
2386 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002387 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002388 }; then :
2389 ac_retval=0
2390else
2391 $as_echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 ac_retval=1
2395fi
2396 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2397 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2398 # interfere with the next link command; also delete a directory that is
2399 # left behind by Apple's compiler. We do this before executing the actions.
2400 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002401 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002402 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002403
2404} # ac_fn_c_try_link
2405
cristy73bd4a52010-10-05 11:24:23 +00002406# ac_fn_c_check_func LINENO FUNC VAR
2407# ----------------------------------
2408# Tests whether FUNC exists, setting the cache variable VAR accordingly
2409ac_fn_c_check_func ()
2410{
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002414if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002415 $as_echo_n "(cached) " >&6
2416else
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418/* end confdefs.h. */
2419/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2421#define $2 innocuous_$2
2422
2423/* System header to define __stub macros and hopefully few prototypes,
2424 which can conflict with char $2 (); below.
2425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2426 <limits.h> exists even on freestanding compilers. */
2427
2428#ifdef __STDC__
2429# include <limits.h>
2430#else
2431# include <assert.h>
2432#endif
2433
2434#undef $2
2435
2436/* Override any GCC internal prototype to avoid an error.
2437 Use char because int might match the return type of a GCC
2438 builtin and then its argument prototype would still apply. */
2439#ifdef __cplusplus
2440extern "C"
2441#endif
2442char $2 ();
2443/* The GNU C library defines this for functions which it implements
2444 to always fail with ENOSYS. Some functions are actually named
2445 something starting with __ and the normal name is an alias. */
2446#if defined __stub_$2 || defined __stub___$2
2447choke me
2448#endif
2449
2450int
2451main ()
2452{
2453return $2 ();
2454 ;
2455 return 0;
2456}
2457_ACEOF
2458if ac_fn_c_try_link "$LINENO"; then :
2459 eval "$3=yes"
2460else
2461 eval "$3=no"
2462fi
2463rm -f core conftest.err conftest.$ac_objext \
2464 conftest$ac_exeext conftest.$ac_ext
2465fi
2466eval ac_res=\$$3
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2468$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002469 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002470
2471} # ac_fn_c_check_func
2472
2473# ac_fn_cxx_try_cpp LINENO
2474# ------------------------
2475# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2476ac_fn_cxx_try_cpp ()
2477{
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 if { { ac_try="$ac_cpp conftest.$ac_ext"
2480case "(($ac_try" in
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2483esac
2484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2485$as_echo "$ac_try_echo"; } >&5
2486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2487 ac_status=$?
2488 if test -s conftest.err; then
2489 grep -v '^ *+' conftest.err >conftest.er1
2490 cat conftest.er1 >&5
2491 mv -f conftest.er1 conftest.err
2492 fi
2493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002494 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002495 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2496 test ! -s conftest.err
2497 }; then :
2498 ac_retval=0
2499else
2500 $as_echo "$as_me: failed program was:" >&5
2501sed 's/^/| /' conftest.$ac_ext >&5
2502
2503 ac_retval=1
2504fi
cristyda16f162011-02-19 23:52:17 +00002505 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002506 as_fn_set_status $ac_retval
2507
2508} # ac_fn_cxx_try_cpp
2509
2510# ac_fn_cxx_try_link LINENO
2511# -------------------------
2512# Try to link conftest.$ac_ext, and return whether this succeeded.
2513ac_fn_cxx_try_link ()
2514{
2515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2516 rm -f conftest.$ac_objext conftest$ac_exeext
2517 if { { ac_try="$ac_link"
2518case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521esac
2522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2523$as_echo "$ac_try_echo"; } >&5
2524 (eval "$ac_link") 2>conftest.err
2525 ac_status=$?
2526 if test -s conftest.err; then
2527 grep -v '^ *+' conftest.err >conftest.er1
2528 cat conftest.er1 >&5
2529 mv -f conftest.er1 conftest.err
2530 fi
2531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2532 test $ac_status = 0; } && {
2533 test -z "$ac_cxx_werror_flag" ||
2534 test ! -s conftest.err
2535 } && test -s conftest$ac_exeext && {
2536 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002537 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002538 }; then :
2539 ac_retval=0
2540else
2541 $as_echo "$as_me: failed program was:" >&5
2542sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_retval=1
2545fi
2546 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2547 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2548 # interfere with the next link command; also delete a directory that is
2549 # left behind by Apple's compiler. We do this before executing the actions.
2550 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002552 as_fn_set_status $ac_retval
2553
2554} # ac_fn_cxx_try_link
2555
cristy8b350f62009-11-15 23:12:43 +00002556# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2557# -------------------------------------------
2558# Tests whether TYPE exists after having included INCLUDES, setting cache
2559# variable VAR accordingly.
2560ac_fn_c_check_type ()
2561{
2562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2564$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002565if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002566 $as_echo_n "(cached) " >&6
2567else
2568 eval "$3=no"
2569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570/* end confdefs.h. */
2571$4
2572int
2573main ()
2574{
2575if (sizeof ($2))
2576 return 0;
2577 ;
2578 return 0;
2579}
2580_ACEOF
2581if ac_fn_c_try_compile "$LINENO"; then :
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583/* end confdefs.h. */
2584$4
2585int
2586main ()
2587{
2588if (sizeof (($2)))
2589 return 0;
2590 ;
2591 return 0;
2592}
2593_ACEOF
2594if ac_fn_c_try_compile "$LINENO"; then :
2595
2596else
2597 eval "$3=yes"
2598fi
2599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600fi
2601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602fi
2603eval ac_res=\$$3
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002607
2608} # ac_fn_c_check_type
2609
cristy92703d82010-04-26 00:18:18 +00002610# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2611# ----------------------------------------------------
2612# Tries to find if the field MEMBER exists in type AGGR, after including
2613# INCLUDES, setting cache variable VAR accordingly.
2614ac_fn_c_check_member ()
2615{
2616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2618$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002619if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002620 $as_echo_n "(cached) " >&6
2621else
2622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2623/* end confdefs.h. */
2624$5
2625int
2626main ()
2627{
2628static $2 ac_aggr;
2629if (ac_aggr.$3)
2630return 0;
2631 ;
2632 return 0;
2633}
2634_ACEOF
2635if ac_fn_c_try_compile "$LINENO"; then :
2636 eval "$4=yes"
2637else
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639/* end confdefs.h. */
2640$5
2641int
2642main ()
2643{
2644static $2 ac_aggr;
2645if (sizeof ac_aggr.$3)
2646return 0;
2647 ;
2648 return 0;
2649}
2650_ACEOF
2651if ac_fn_c_try_compile "$LINENO"; then :
2652 eval "$4=yes"
2653else
2654 eval "$4=no"
2655fi
2656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657fi
2658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659fi
2660eval ac_res=\$$4
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2662$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002664
2665} # ac_fn_c_check_member
2666
cristy5eef09f2012-10-16 12:08:28 +00002667# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2668# ---------------------------------------------
2669# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2670# accordingly.
2671ac_fn_c_check_decl ()
2672{
2673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674 as_decl_name=`echo $2|sed 's/ *(.*//'`
2675 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2677$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2678if eval \${$3+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680else
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682/* end confdefs.h. */
2683$4
2684int
2685main ()
2686{
2687#ifndef $as_decl_name
2688#ifdef __cplusplus
2689 (void) $as_decl_use;
2690#else
2691 (void) $as_decl_name;
2692#endif
2693#endif
2694
2695 ;
2696 return 0;
2697}
2698_ACEOF
2699if ac_fn_c_try_compile "$LINENO"; then :
2700 eval "$3=yes"
2701else
2702 eval "$3=no"
2703fi
2704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705fi
2706eval ac_res=\$$3
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2708$as_echo "$ac_res" >&6; }
2709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2710
2711} # ac_fn_c_check_decl
2712
cristy501c8042011-05-26 17:46:28 +00002713# ac_fn_c_find_intX_t LINENO BITS VAR
2714# -----------------------------------
2715# Finds a signed integer type with width BITS, setting cache variable VAR
2716# accordingly.
2717ac_fn_c_find_intX_t ()
2718{
2719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2721$as_echo_n "checking for int$2_t... " >&6; }
2722if eval \${$3+:} false; then :
2723 $as_echo_n "(cached) " >&6
2724else
2725 eval "$3=no"
2726 # Order is important - never check a type that is potentially smaller
2727 # than half of the expected target width.
2728 for ac_type in int$2_t 'int' 'long int' \
2729 'long long int' 'short int' 'signed char'; do
2730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731/* end confdefs.h. */
2732$ac_includes_default
2733 enum { N = $2 / 2 - 1 };
2734int
2735main ()
2736{
2737static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002738test_array [0] = 0;
2739return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002740
2741 ;
2742 return 0;
2743}
2744_ACEOF
2745if ac_fn_c_try_compile "$LINENO"; then :
2746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2747/* end confdefs.h. */
2748$ac_includes_default
2749 enum { N = $2 / 2 - 1 };
2750int
2751main ()
2752{
2753static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2754 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002755test_array [0] = 0;
2756return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002757
2758 ;
2759 return 0;
2760}
2761_ACEOF
2762if ac_fn_c_try_compile "$LINENO"; then :
2763
2764else
2765 case $ac_type in #(
2766 int$2_t) :
2767 eval "$3=yes" ;; #(
2768 *) :
2769 eval "$3=\$ac_type" ;;
2770esac
2771fi
2772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773fi
2774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2775 if eval test \"x\$"$3"\" = x"no"; then :
2776
2777else
2778 break
2779fi
2780 done
2781fi
2782eval ac_res=\$$3
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2784$as_echo "$ac_res" >&6; }
2785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2786
2787} # ac_fn_c_find_intX_t
2788
2789# ac_fn_c_find_uintX_t LINENO BITS VAR
2790# ------------------------------------
2791# Finds an unsigned integer type with width BITS, setting cache variable VAR
2792# accordingly.
2793ac_fn_c_find_uintX_t ()
2794{
2795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2797$as_echo_n "checking for uint$2_t... " >&6; }
2798if eval \${$3+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800else
2801 eval "$3=no"
2802 # Order is important - never check a type that is potentially smaller
2803 # than half of the expected target width.
2804 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2805 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807/* end confdefs.h. */
2808$ac_includes_default
2809int
2810main ()
2811{
2812static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002813test_array [0] = 0;
2814return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002815
2816 ;
2817 return 0;
2818}
2819_ACEOF
2820if ac_fn_c_try_compile "$LINENO"; then :
2821 case $ac_type in #(
2822 uint$2_t) :
2823 eval "$3=yes" ;; #(
2824 *) :
2825 eval "$3=\$ac_type" ;;
2826esac
2827fi
2828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2829 if eval test \"x\$"$3"\" = x"no"; then :
2830
2831else
2832 break
2833fi
2834 done
2835fi
2836eval ac_res=\$$3
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2838$as_echo "$ac_res" >&6; }
2839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2840
2841} # ac_fn_c_find_uintX_t
2842
cristy8b350f62009-11-15 23:12:43 +00002843# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2844# --------------------------------------------
2845# Tries to find the compile-time value of EXPR in a program that includes
2846# INCLUDES, setting VAR accordingly. Returns whether the value could be
2847# computed
2848ac_fn_c_compute_int ()
2849{
2850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2851 if test "$cross_compiling" = yes; then
2852 # Depending upon the size, compute the lo and hi bounds.
2853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854/* end confdefs.h. */
2855$4
2856int
2857main ()
2858{
2859static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002860test_array [0] = 0;
2861return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002862
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867if ac_fn_c_try_compile "$LINENO"; then :
2868 ac_lo=0 ac_mid=0
2869 while :; do
2870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871/* end confdefs.h. */
2872$4
2873int
2874main ()
2875{
2876static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002877test_array [0] = 0;
2878return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002879
2880 ;
2881 return 0;
2882}
2883_ACEOF
2884if ac_fn_c_try_compile "$LINENO"; then :
2885 ac_hi=$ac_mid; break
2886else
2887 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2888 if test $ac_lo -le $ac_mid; then
2889 ac_lo= ac_hi=
2890 break
2891 fi
2892 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2893fi
2894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 done
2896else
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898/* end confdefs.h. */
2899$4
2900int
2901main ()
2902{
2903static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002904test_array [0] = 0;
2905return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002906
2907 ;
2908 return 0;
2909}
2910_ACEOF
2911if ac_fn_c_try_compile "$LINENO"; then :
2912 ac_hi=-1 ac_mid=-1
2913 while :; do
2914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915/* end confdefs.h. */
2916$4
2917int
2918main ()
2919{
2920static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002921test_array [0] = 0;
2922return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002923
2924 ;
2925 return 0;
2926}
2927_ACEOF
2928if ac_fn_c_try_compile "$LINENO"; then :
2929 ac_lo=$ac_mid; break
2930else
2931 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2932 if test $ac_mid -le $ac_hi; then
2933 ac_lo= ac_hi=
2934 break
2935 fi
2936 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2937fi
2938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2939 done
2940else
2941 ac_lo= ac_hi=
2942fi
2943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2944fi
2945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946# Binary search between lo and hi bounds.
2947while test "x$ac_lo" != "x$ac_hi"; do
2948 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950/* end confdefs.h. */
2951$4
2952int
2953main ()
2954{
2955static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002956test_array [0] = 0;
2957return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002958
2959 ;
2960 return 0;
2961}
2962_ACEOF
2963if ac_fn_c_try_compile "$LINENO"; then :
2964 ac_hi=$ac_mid
2965else
2966 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2967fi
2968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969done
2970case $ac_lo in #((
2971?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2972'') ac_retval=1 ;;
2973esac
2974 else
2975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2976/* end confdefs.h. */
2977$4
2978static long int longval () { return $2; }
2979static unsigned long int ulongval () { return $2; }
2980#include <stdio.h>
2981#include <stdlib.h>
2982int
2983main ()
2984{
2985
2986 FILE *f = fopen ("conftest.val", "w");
2987 if (! f)
2988 return 1;
2989 if (($2) < 0)
2990 {
2991 long int i = longval ();
2992 if (i != ($2))
2993 return 1;
2994 fprintf (f, "%ld", i);
2995 }
2996 else
2997 {
2998 unsigned long int i = ulongval ();
2999 if (i != ($2))
3000 return 1;
3001 fprintf (f, "%lu", i);
3002 }
3003 /* Do not output a trailing newline, as this causes \r\n confusion
3004 on some platforms. */
3005 return ferror (f) || fclose (f) != 0;
3006
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011if ac_fn_c_try_run "$LINENO"; then :
3012 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3013else
3014 ac_retval=1
3015fi
3016rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3017 conftest.$ac_objext conftest.beam conftest.$ac_ext
3018rm -f conftest.val
3019
3020 fi
cristyda16f162011-02-19 23:52:17 +00003021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003022 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003023
3024} # ac_fn_c_compute_int
3025
3026# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3027# ---------------------------------------------------------
3028# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3029# the include files in INCLUDES and setting the cache variable VAR
3030# accordingly.
3031ac_fn_cxx_check_header_mongrel ()
3032{
3033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003034 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3036$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003037if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003038 $as_echo_n "(cached) " >&6
3039fi
3040eval ac_res=\$$3
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3042$as_echo "$ac_res" >&6; }
3043else
3044 # Is the header compilable?
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3046$as_echo_n "checking $2 usability... " >&6; }
3047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048/* end confdefs.h. */
3049$4
3050#include <$2>
3051_ACEOF
3052if ac_fn_cxx_try_compile "$LINENO"; then :
3053 ac_header_compiler=yes
3054else
3055 ac_header_compiler=no
3056fi
3057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3059$as_echo "$ac_header_compiler" >&6; }
3060
3061# Is the header present?
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3063$as_echo_n "checking $2 presence... " >&6; }
3064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065/* end confdefs.h. */
3066#include <$2>
3067_ACEOF
3068if ac_fn_cxx_try_cpp "$LINENO"; then :
3069 ac_header_preproc=yes
3070else
3071 ac_header_preproc=no
3072fi
cristyda16f162011-02-19 23:52:17 +00003073rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3075$as_echo "$ac_header_preproc" >&6; }
3076
3077# So? What about this header?
3078case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3079 yes:no: )
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3081$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3083$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3084 ;;
3085 no:yes:* )
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3087$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3089$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3091$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3093$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3095$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003096( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003097## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003098## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003099 ) | sed "s/^/$as_me: WARNING: /" >&2
3100 ;;
3101esac
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3103$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003104if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003105 $as_echo_n "(cached) " >&6
3106else
3107 eval "$3=\$ac_header_compiler"
3108fi
3109eval ac_res=\$$3
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3111$as_echo "$ac_res" >&6; }
3112fi
cristyda16f162011-02-19 23:52:17 +00003113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003114
3115} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003116cat >config.log <<_ACEOF
3117This file contains any messages produced by compilers while
3118running configure, to aid debugging if configure makes a mistake.
3119
cristy29eb34e2011-10-16 00:46:08 +00003120It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003121generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003122
3123 $ $0 $@
3124
3125_ACEOF
3126exec 5>>config.log
3127{
3128cat <<_ASUNAME
3129## --------- ##
3130## Platform. ##
3131## --------- ##
3132
3133hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3134uname -m = `(uname -m) 2>/dev/null || echo unknown`
3135uname -r = `(uname -r) 2>/dev/null || echo unknown`
3136uname -s = `(uname -s) 2>/dev/null || echo unknown`
3137uname -v = `(uname -v) 2>/dev/null || echo unknown`
3138
3139/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3140/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3141
3142/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3143/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3144/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3145/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3146/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3147/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3148/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3149
3150_ASUNAME
3151
3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153for as_dir in $PATH
3154do
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003157 $as_echo "PATH: $as_dir"
3158 done
cristy3ed852e2009-09-05 21:47:34 +00003159IFS=$as_save_IFS
3160
3161} >&5
3162
3163cat >&5 <<_ACEOF
3164
3165
3166## ----------- ##
3167## Core tests. ##
3168## ----------- ##
3169
3170_ACEOF
3171
3172
3173# Keep a trace of the command line.
3174# Strip out --no-create and --no-recursion so they do not pile up.
3175# Strip out --silent because we don't want to record it for future runs.
3176# Also quote any args containing shell meta-characters.
3177# Make two passes to allow for proper duplicate-argument suppression.
3178ac_configure_args=
3179ac_configure_args0=
3180ac_configure_args1=
3181ac_must_keep_next=false
3182for ac_pass in 1 2
3183do
3184 for ac_arg
3185 do
3186 case $ac_arg in
3187 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3189 | -silent | --silent | --silen | --sile | --sil)
3190 continue ;;
3191 *\'*)
3192 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3193 esac
3194 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003195 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003196 2)
cristy8b350f62009-11-15 23:12:43 +00003197 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003198 if test $ac_must_keep_next = true; then
3199 ac_must_keep_next=false # Got value, back to normal.
3200 else
3201 case $ac_arg in
3202 *=* | --config-cache | -C | -disable-* | --disable-* \
3203 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3204 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3205 | -with-* | --with-* | -without-* | --without-* | --x)
3206 case "$ac_configure_args0 " in
3207 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3208 esac
3209 ;;
3210 -* ) ac_must_keep_next=true ;;
3211 esac
3212 fi
cristy8b350f62009-11-15 23:12:43 +00003213 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003214 ;;
3215 esac
3216 done
3217done
cristy8b350f62009-11-15 23:12:43 +00003218{ ac_configure_args0=; unset ac_configure_args0;}
3219{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003220
3221# When interrupted or exit'd, cleanup temporary files, and complete
3222# config.log. We remove comments because anyway the quotes in there
3223# would cause problems or look ugly.
3224# WARNING: Use '\'' to represent an apostrophe within the trap.
3225# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3226trap 'exit_status=$?
3227 # Save into config.log some information that might help in debugging.
3228 {
3229 echo
3230
cristy98dddb52010-11-04 00:30:15 +00003231 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003232## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003233## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003234 echo
3235 # The following way of writing the cache mishandles newlines in values,
3236(
3237 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3238 eval ac_val=\$$ac_var
3239 case $ac_val in #(
3240 *${as_nl}*)
3241 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003242 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003243$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3244 esac
3245 case $ac_var in #(
3246 _ | IFS | as_nl) ;; #(
3247 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003248 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003249 esac ;;
3250 esac
3251 done
3252 (set) 2>&1 |
3253 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3254 *${as_nl}ac_space=\ *)
3255 sed -n \
3256 "s/'\''/'\''\\\\'\'''\''/g;
3257 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3258 ;; #(
3259 *)
3260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3261 ;;
3262 esac |
3263 sort
3264)
3265 echo
3266
cristy98dddb52010-11-04 00:30:15 +00003267 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003268## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003269## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003270 echo
3271 for ac_var in $ac_subst_vars
3272 do
3273 eval ac_val=\$$ac_var
3274 case $ac_val in
3275 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3276 esac
3277 $as_echo "$ac_var='\''$ac_val'\''"
3278 done | sort
3279 echo
3280
3281 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003282 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003283## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003284## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003285 echo
3286 for ac_var in $ac_subst_files
3287 do
3288 eval ac_val=\$$ac_var
3289 case $ac_val in
3290 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3291 esac
3292 $as_echo "$ac_var='\''$ac_val'\''"
3293 done | sort
3294 echo
3295 fi
3296
3297 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003298 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003299## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003300## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003301 echo
3302 cat confdefs.h
3303 echo
3304 fi
3305 test "$ac_signal" != 0 &&
3306 $as_echo "$as_me: caught signal $ac_signal"
3307 $as_echo "$as_me: exit $exit_status"
3308 } >&5
3309 rm -f core *.core core.conftest.* &&
3310 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3311 exit $exit_status
3312' 0
3313for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003314 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003315done
3316ac_signal=0
3317
3318# confdefs.h avoids OS command line length limits that DEFS can exceed.
3319rm -f -r conftest* confdefs.h
3320
cristy8b350f62009-11-15 23:12:43 +00003321$as_echo "/* confdefs.h */" > confdefs.h
3322
cristy3ed852e2009-09-05 21:47:34 +00003323# Predefined preprocessor variables.
3324
3325cat >>confdefs.h <<_ACEOF
3326#define PACKAGE_NAME "$PACKAGE_NAME"
3327_ACEOF
3328
cristy3ed852e2009-09-05 21:47:34 +00003329cat >>confdefs.h <<_ACEOF
3330#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3331_ACEOF
3332
cristy3ed852e2009-09-05 21:47:34 +00003333cat >>confdefs.h <<_ACEOF
3334#define PACKAGE_VERSION "$PACKAGE_VERSION"
3335_ACEOF
3336
cristy3ed852e2009-09-05 21:47:34 +00003337cat >>confdefs.h <<_ACEOF
3338#define PACKAGE_STRING "$PACKAGE_STRING"
3339_ACEOF
3340
cristy3ed852e2009-09-05 21:47:34 +00003341cat >>confdefs.h <<_ACEOF
3342#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3343_ACEOF
3344
cristy8b350f62009-11-15 23:12:43 +00003345cat >>confdefs.h <<_ACEOF
3346#define PACKAGE_URL "$PACKAGE_URL"
3347_ACEOF
3348
cristy3ed852e2009-09-05 21:47:34 +00003349
3350# Let the site file select an alternate cache file if it wants to.
3351# Prefer an explicitly selected file to automatically selected ones.
3352ac_site_file1=NONE
3353ac_site_file2=NONE
3354if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003355 # We do not want a PATH search for config.site.
3356 case $CONFIG_SITE in #((
3357 -*) ac_site_file1=./$CONFIG_SITE;;
3358 */*) ac_site_file1=$CONFIG_SITE;;
3359 *) ac_site_file1=./$CONFIG_SITE;;
3360 esac
cristy3ed852e2009-09-05 21:47:34 +00003361elif test "x$prefix" != xNONE; then
3362 ac_site_file1=$prefix/share/config.site
3363 ac_site_file2=$prefix/etc/config.site
3364else
3365 ac_site_file1=$ac_default_prefix/share/config.site
3366 ac_site_file2=$ac_default_prefix/etc/config.site
3367fi
3368for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3369do
3370 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003371 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003372 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003373$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3374 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003375 . "$ac_site_file" \
3376 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378as_fn_error $? "failed to load site script $ac_site_file
3379See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003380 fi
3381done
3382
3383if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003384 # Some versions of bash will fail to source /dev/null (special files
3385 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3386 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003387 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003388$as_echo "$as_me: loading cache $cache_file" >&6;}
3389 case $cache_file in
3390 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3391 *) . "./$cache_file";;
3392 esac
3393 fi
3394else
cristy8b350f62009-11-15 23:12:43 +00003395 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003396$as_echo "$as_me: creating cache $cache_file" >&6;}
3397 >$cache_file
3398fi
3399
cristycd4c5312009-11-22 01:19:08 +00003400as_fn_append ac_header_list " stdlib.h"
3401as_fn_append ac_header_list " unistd.h"
3402as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003403# Check that the precious variables saved in the cache have kept the same
3404# value.
3405ac_cache_corrupted=false
3406for ac_var in $ac_precious_vars; do
3407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3408 eval ac_new_set=\$ac_env_${ac_var}_set
3409 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3410 eval ac_new_val=\$ac_env_${ac_var}_value
3411 case $ac_old_set,$ac_new_set in
3412 set,)
cristy8b350f62009-11-15 23:12:43 +00003413 { $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 +00003414$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3415 ac_cache_corrupted=: ;;
3416 ,set)
cristy8b350f62009-11-15 23:12:43 +00003417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003418$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3419 ac_cache_corrupted=: ;;
3420 ,);;
3421 *)
3422 if test "x$ac_old_val" != "x$ac_new_val"; then
3423 # differences in whitespace do not lead to failure.
3424 ac_old_val_w=`echo x $ac_old_val`
3425 ac_new_val_w=`echo x $ac_new_val`
3426 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003428$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3429 ac_cache_corrupted=:
3430 else
cristy8b350f62009-11-15 23:12:43 +00003431 { $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 +00003432$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3433 eval $ac_var=\$ac_old_val
3434 fi
cristy8b350f62009-11-15 23:12:43 +00003435 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003436$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003437 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003438$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3439 fi;;
3440 esac
3441 # Pass precious variables to config.status.
3442 if test "$ac_new_set" = set; then
3443 case $ac_new_val in
3444 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3445 *) ac_arg=$ac_var=$ac_new_val ;;
3446 esac
3447 case " $ac_configure_args " in
3448 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003449 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003450 esac
3451 fi
3452done
3453if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003457$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003458 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003459fi
cristy8b350f62009-11-15 23:12:43 +00003460## -------------------- ##
3461## Main body of script. ##
3462## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003463
3464ac_ext=c
3465ac_cpp='$CPP $CPPFLAGS'
3466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469
3470
3471
3472ac_aux_dir=
3473for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003474 if test -f "$ac_dir/install-sh"; then
3475 ac_aux_dir=$ac_dir
3476 ac_install_sh="$ac_aux_dir/install-sh -c"
3477 break
3478 elif test -f "$ac_dir/install.sh"; then
3479 ac_aux_dir=$ac_dir
3480 ac_install_sh="$ac_aux_dir/install.sh -c"
3481 break
3482 elif test -f "$ac_dir/shtool"; then
3483 ac_aux_dir=$ac_dir
3484 ac_install_sh="$ac_aux_dir/shtool install -c"
3485 break
3486 fi
cristy3ed852e2009-09-05 21:47:34 +00003487done
3488if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003489 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003490fi
3491
3492# These three variables are undocumented and unsupported,
3493# and are intended to be withdrawn in a future Autoconf release.
3494# They can cause serious problems if a builder's source tree is in a directory
3495# whose full name contains unusual characters.
3496ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3497ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3498ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3499
3500
3501
3502
3503ac_config_headers="$ac_config_headers config/config.h"
3504
cristy24fc1fe2010-10-23 21:13:01 +00003505
cristy01ff9f32012-12-01 18:15:29 +00003506ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003507
cristy8d0ff762013-03-10 20:33:28 +00003508ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003509
3510
3511#
3512# Save initial user-tunable values
3513#
3514USER_LIBS=$LIBS
3515for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3516 eval isset=\${$var+set}
3517 if test "$isset" = 'set'; then
3518 eval val=$`echo $var`
3519 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3520 fi
3521done
3522
3523
3524CONFIGURE_ARGS="$0 ${ac_configure_args}"
3525
3526
3527# Source file containing package/library versioning information.
3528. ${srcdir}/version.sh
3529
cristy15a88782010-01-31 23:24:49 +00003530echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003531# Make sure we can run config.sub.
3532$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003533 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003534
cristy8b350f62009-11-15 23:12:43 +00003535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003536$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003537if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003538 $as_echo_n "(cached) " >&6
3539else
3540 ac_build_alias=$build_alias
3541test "x$ac_build_alias" = x &&
3542 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3543test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003544 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003545ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003546 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003547
3548fi
cristy8b350f62009-11-15 23:12:43 +00003549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003550$as_echo "$ac_cv_build" >&6; }
3551case $ac_cv_build in
3552*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003553*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003554esac
3555build=$ac_cv_build
3556ac_save_IFS=$IFS; IFS='-'
3557set x $ac_cv_build
3558shift
3559build_cpu=$1
3560build_vendor=$2
3561shift; shift
3562# Remember, the first character of IFS is used to create $*,
3563# except with old shells:
3564build_os=$*
3565IFS=$ac_save_IFS
3566case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3567
3568
cristy8b350f62009-11-15 23:12:43 +00003569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003570$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003571if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003572 $as_echo_n "(cached) " >&6
3573else
3574 if test "x$host_alias" = x; then
3575 ac_cv_host=$ac_cv_build
3576else
3577 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003578 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003579fi
3580
3581fi
cristy8b350f62009-11-15 23:12:43 +00003582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003583$as_echo "$ac_cv_host" >&6; }
3584case $ac_cv_host in
3585*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003586*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003587esac
3588host=$ac_cv_host
3589ac_save_IFS=$IFS; IFS='-'
3590set x $ac_cv_host
3591shift
3592host_cpu=$1
3593host_vendor=$2
3594shift; shift
3595# Remember, the first character of IFS is used to create $*,
3596# except with old shells:
3597host_os=$*
3598IFS=$ac_save_IFS
3599case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3600
3601
cristy8b350f62009-11-15 23:12:43 +00003602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003603$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003604if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003605 $as_echo_n "(cached) " >&6
3606else
3607 if test "x$target_alias" = x; then
3608 ac_cv_target=$ac_cv_host
3609else
3610 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003611 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003612fi
3613
3614fi
cristy8b350f62009-11-15 23:12:43 +00003615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003616$as_echo "$ac_cv_target" >&6; }
3617case $ac_cv_target in
3618*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003619*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003620esac
3621target=$ac_cv_target
3622ac_save_IFS=$IFS; IFS='-'
3623set x $ac_cv_target
3624shift
3625target_cpu=$1
3626target_vendor=$2
3627shift; shift
3628# Remember, the first character of IFS is used to create $*,
3629# except with old shells:
3630target_os=$*
3631IFS=$ac_save_IFS
3632case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3633
3634
3635# The aliases save the names the user supplied, while $host etc.
3636# will get canonicalized.
3637test -n "$target_alias" &&
3638 test "$program_prefix$program_suffix$program_transform_name" = \
3639 NONENONEs,x,x, &&
3640 program_prefix=${target_alias}-
3641
cristy837d6dc2010-02-27 01:16:57 +00003642
3643
3644
cristy8be34142012-06-17 14:07:18 +00003645
cristy19615b82011-04-13 20:02:01 +00003646MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003647
3648
cristy27d53d62012-07-29 23:30:07 +00003649cat >>confdefs.h <<_ACEOF
3650#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3651_ACEOF
3652
3653
cristy19615b82011-04-13 20:02:01 +00003654MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003655
3656
cristy27d53d62012-07-29 23:30:07 +00003657cat >>confdefs.h <<_ACEOF
3658#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3659_ACEOF
3660
3661
cristy19615b82011-04-13 20:02:01 +00003662MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003663
3664
cristy27d53d62012-07-29 23:30:07 +00003665cat >>confdefs.h <<_ACEOF
3666#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3667_ACEOF
3668
3669
cristy37442762013-02-10 21:07:23 +00003670
3671# Substitute versioning
3672MAGICK_MAJOR_VERSION=7
3673
3674MAGICK_MINOR_VERSION=0
3675
3676MAGICK_MICRO_VERSION=0
3677
3678MAGICK_PATCHLEVEL_VERSION=0
3679
3680MAGICK_VERSION=7.0.0-0
3681
cristy80e870e2013-05-07 12:23:02 +00003682MAGICK_SVN_REVISION=12202:12205M
cristy37442762013-02-10 21:07:23 +00003683
3684
cristy3ed852e2009-09-05 21:47:34 +00003685# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003686MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3687
3688MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3689
cristy37442762013-02-10 21:07:23 +00003690
cristyd694ca32011-03-27 21:42:54 +00003691
cristy3ed852e2009-09-05 21:47:34 +00003692# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3694$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003695# Reject unsafe characters in $srcdir or the absolute working directory
3696# name. Accept space and tab only in the latter.
3697am_lf='
3698'
3699case `pwd` in
3700 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003701 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003702esac
3703case $srcdir in
3704 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003705 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003706esac
cristy3ed852e2009-09-05 21:47:34 +00003707
cristyc0890a62012-07-19 00:18:20 +00003708# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003709# arguments. Must try -L first in case configure is actually a
3710# symlink; some systems play weird games with the mod time of symlinks
3711# (eg FreeBSD returns the mod time of the symlink's containing
3712# directory).
3713if (
cristyc0890a62012-07-19 00:18:20 +00003714 am_has_slept=no
3715 for am_try in 1 2; do
3716 echo "timestamp, slept: $am_has_slept" > conftest.file
3717 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3718 if test "$*" = "X"; then
3719 # -L didn't work.
3720 set X `ls -t "$srcdir/configure" conftest.file`
3721 fi
3722 if test "$*" != "X $srcdir/configure conftest.file" \
3723 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003724
cristyc0890a62012-07-19 00:18:20 +00003725 # If neither matched, then we have a broken ls. This can happen
3726 # if, for instance, CONFIG_SHELL is bash and it inherits a
3727 # broken ls alias from the environment. This has actually
3728 # happened. Such a system could not be considered "sane".
3729 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3730 alias in your environment" "$LINENO" 5
3731 fi
3732 if test "$2" = conftest.file || test $am_try -eq 2; then
3733 break
3734 fi
3735 # Just in case.
3736 sleep 1
3737 am_has_slept=yes
3738 done
cristy73bd4a52010-10-05 11:24:23 +00003739 test "$2" = conftest.file
3740 )
3741then
3742 # Ok.
3743 :
3744else
cristy98dddb52010-11-04 00:30:15 +00003745 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003746Check your system clock" "$LINENO" 5
3747fi
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3749$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003750# If we didn't sleep, we still need to ensure time stamps of config.status and
3751# generated files are strictly newer.
3752am_sleep_pid=
3753if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3754 ( sleep 1 ) &
3755 am_sleep_pid=$!
3756fi
cristy73bd4a52010-10-05 11:24:23 +00003757
cristyc0890a62012-07-19 00:18:20 +00003758rm -f conftest.file
3759
3760
cristy58d34aa2013-01-24 15:11:54 +00003761am__api_version='1.13'
cristy73bd4a52010-10-05 11:24:23 +00003762
3763# Find a good install program. We prefer a C program (faster),
3764# so one script is as good as another. But avoid the broken or
3765# incompatible versions:
3766# SysV /etc/install, /usr/sbin/install
3767# SunOS /usr/etc/install
3768# IRIX /sbin/install
3769# AIX /bin/install
3770# AmigaOS /C/install, which installs bootblocks on floppy discs
3771# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3772# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3773# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3774# OS/2's system install, which has a completely different semantic
3775# ./install, which can be erroneously created by make from ./install.sh.
3776# Reject install programs that cannot install multiple files.
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3778$as_echo_n "checking for a BSD-compatible install... " >&6; }
3779if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003780if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003781 $as_echo_n "(cached) " >&6
3782else
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH
3785do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 # Account for people who put trailing slashes in PATH elements.
3789case $as_dir/ in #((
3790 ./ | .// | /[cC]/* | \
3791 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3792 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3793 /usr/ucb/* ) ;;
3794 *)
3795 # OSF1 and SCO ODT 3.0 have their own names for install.
3796 # Don't use installbsd from OSF since it installs stuff as root
3797 # by default.
3798 for ac_prog in ginstall scoinst install; do
3799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003800 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003801 if test $ac_prog = install &&
3802 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3803 # AIX install. It has an incompatible calling convention.
3804 :
3805 elif test $ac_prog = install &&
3806 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3807 # program-specific install script used by HP pwplus--don't use.
3808 :
3809 else
3810 rm -rf conftest.one conftest.two conftest.dir
3811 echo one > conftest.one
3812 echo two > conftest.two
3813 mkdir conftest.dir
3814 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3815 test -s conftest.one && test -s conftest.two &&
3816 test -s conftest.dir/conftest.one &&
3817 test -s conftest.dir/conftest.two
3818 then
3819 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3820 break 3
3821 fi
3822 fi
3823 fi
3824 done
3825 done
3826 ;;
3827esac
3828
3829 done
3830IFS=$as_save_IFS
3831
3832rm -rf conftest.one conftest.two conftest.dir
3833
3834fi
3835 if test "${ac_cv_path_install+set}" = set; then
3836 INSTALL=$ac_cv_path_install
3837 else
3838 # As a last resort, use the slow shell script. Don't cache a
3839 # value for INSTALL within a source directory, because that will
3840 # break other packages using the cache if that directory is
3841 # removed, or if the value is a relative name.
3842 INSTALL=$ac_install_sh
3843 fi
3844fi
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3846$as_echo "$INSTALL" >&6; }
3847
3848# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3849# It thinks the first close brace ends the variable substitution.
3850test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3851
3852test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3853
3854test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3855
3856test "$program_prefix" != NONE &&
3857 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3858# Use a double $ so make ignores it.
3859test "$program_suffix" != NONE &&
3860 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3861# Double any \ or $.
3862# By default was `s,x,x', remove it if useless.
3863ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3864program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3865
3866# expand $ac_aux_dir to an absolute path
3867am_aux_dir=`cd $ac_aux_dir && pwd`
3868
3869if test x"${MISSING+set}" != xset; then
3870 case $am_aux_dir in
3871 *\ * | *\ *)
3872 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3873 *)
3874 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3875 esac
3876fi
3877# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003878if eval "$MISSING --is-lightweight"; then
3879 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003880else
3881 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3883$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003884fi
3885
3886if test x"${install_sh}" != xset; then
3887 case $am_aux_dir in
3888 *\ * | *\ *)
3889 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3890 *)
3891 install_sh="\${SHELL} $am_aux_dir/install-sh"
3892 esac
3893fi
3894
cristyc0890a62012-07-19 00:18:20 +00003895# Installed binaries are usually stripped using 'strip' when the user
3896# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003897# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003898# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003899if test "$cross_compiling" != no; then
3900 if test -n "$ac_tool_prefix"; then
3901 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3902set dummy ${ac_tool_prefix}strip; ac_word=$2
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003905if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003906 $as_echo_n "(cached) " >&6
3907else
3908 if test -n "$STRIP"; then
3909 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3910else
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003918 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 break 2
3921 fi
3922done
3923 done
3924IFS=$as_save_IFS
3925
3926fi
3927fi
3928STRIP=$ac_cv_prog_STRIP
3929if test -n "$STRIP"; then
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3931$as_echo "$STRIP" >&6; }
3932else
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934$as_echo "no" >&6; }
3935fi
3936
3937
3938fi
3939if test -z "$ac_cv_prog_STRIP"; then
3940 ac_ct_STRIP=$STRIP
3941 # Extract the first word of "strip", so it can be a program name with args.
3942set dummy strip; ac_word=$2
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003945if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003946 $as_echo_n "(cached) " >&6
3947else
3948 if test -n "$ac_ct_STRIP"; then
3949 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3950else
3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952for as_dir in $PATH
3953do
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003958 ac_cv_prog_ac_ct_STRIP="strip"
3959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 break 2
3961 fi
3962done
3963 done
3964IFS=$as_save_IFS
3965
3966fi
3967fi
3968ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3969if test -n "$ac_ct_STRIP"; then
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3971$as_echo "$ac_ct_STRIP" >&6; }
3972else
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974$as_echo "no" >&6; }
3975fi
3976
3977 if test "x$ac_ct_STRIP" = x; then
3978 STRIP=":"
3979 else
3980 case $cross_compiling:$ac_tool_warned in
3981yes:)
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3984ac_tool_warned=yes ;;
3985esac
3986 STRIP=$ac_ct_STRIP
3987 fi
3988else
3989 STRIP="$ac_cv_prog_STRIP"
3990fi
3991
3992fi
3993INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3994
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3996$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3997if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003998 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003999 $as_echo_n "(cached) " >&6
4000else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4003do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_prog in mkdir gmkdir; do
4007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004008 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004009 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4010 'mkdir (GNU coreutils) '* | \
4011 'mkdir (coreutils) '* | \
4012 'mkdir (fileutils) '4.1*)
4013 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4014 break 3;;
4015 esac
4016 done
4017 done
4018 done
4019IFS=$as_save_IFS
4020
4021fi
4022
4023 test -d ./--version && rmdir ./--version
4024 if test "${ac_cv_path_mkdir+set}" = set; then
4025 MKDIR_P="$ac_cv_path_mkdir -p"
4026 else
4027 # As a last resort, use the slow shell script. Don't cache a
4028 # value for MKDIR_P within a source directory, because that will
4029 # break other packages using the cache if that directory is
4030 # removed, or if the value is a relative name.
4031 MKDIR_P="$ac_install_sh -d"
4032 fi
4033fi
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4035$as_echo "$MKDIR_P" >&6; }
4036
cristy73bd4a52010-10-05 11:24:23 +00004037for ac_prog in gawk mawk nawk awk
4038do
4039 # Extract the first word of "$ac_prog", so it can be a program name with args.
4040set dummy $ac_prog; ac_word=$2
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004043if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004044 $as_echo_n "(cached) " >&6
4045else
4046 if test -n "$AWK"; then
4047 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004056 ac_cv_prog_AWK="$ac_prog"
4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 break 2
4059 fi
4060done
4061 done
4062IFS=$as_save_IFS
4063
4064fi
4065fi
4066AWK=$ac_cv_prog_AWK
4067if test -n "$AWK"; then
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4069$as_echo "$AWK" >&6; }
4070else
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072$as_echo "no" >&6; }
4073fi
4074
4075
4076 test -n "$AWK" && break
4077done
4078
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4080$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4081set x ${MAKE-make}
4082ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004083if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004084 $as_echo_n "(cached) " >&6
4085else
4086 cat >conftest.make <<\_ACEOF
4087SHELL = /bin/sh
4088all:
4089 @echo '@@@%%%=$(MAKE)=@@@%%%'
4090_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004091# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004092case `${MAKE-make} -f conftest.make 2>/dev/null` in
4093 *@@@%%%=?*=@@@%%%*)
4094 eval ac_cv_prog_make_${ac_make}_set=yes;;
4095 *)
4096 eval ac_cv_prog_make_${ac_make}_set=no;;
4097esac
4098rm -f conftest.make
4099fi
4100if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4102$as_echo "yes" >&6; }
4103 SET_MAKE=
4104else
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106$as_echo "no" >&6; }
4107 SET_MAKE="MAKE=${MAKE-make}"
4108fi
4109
4110rm -rf .tst 2>/dev/null
4111mkdir .tst 2>/dev/null
4112if test -d .tst; then
4113 am__leading_dot=.
4114else
4115 am__leading_dot=_
4116fi
4117rmdir .tst 2>/dev/null
4118
cristya448bd22011-10-14 12:38:13 +00004119# Check whether --enable-silent-rules was given.
4120if test "${enable_silent_rules+set}" = set; then :
4121 enableval=$enable_silent_rules;
4122fi
4123
cristyc0890a62012-07-19 00:18:20 +00004124case $enable_silent_rules in # (((
4125 yes) AM_DEFAULT_VERBOSITY=0;;
4126 no) AM_DEFAULT_VERBOSITY=1;;
4127 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004128esac
cristyc3fb77b2012-02-06 01:49:41 +00004129am_make=${MAKE-make}
4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4131$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4132if ${am_cv_make_support_nested_variables+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134else
4135 if $as_echo 'TRUE=$(BAR$(V))
4136BAR0=false
4137BAR1=true
4138V=1
4139am__doit:
4140 @$(TRUE)
4141.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4142 am_cv_make_support_nested_variables=yes
4143else
4144 am_cv_make_support_nested_variables=no
4145fi
4146fi
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4148$as_echo "$am_cv_make_support_nested_variables" >&6; }
4149if test $am_cv_make_support_nested_variables = yes; then
4150 AM_V='$(V)'
4151 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4152else
4153 AM_V=$AM_DEFAULT_VERBOSITY
4154 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4155fi
cristya448bd22011-10-14 12:38:13 +00004156AM_BACKSLASH='\'
4157
cristy73bd4a52010-10-05 11:24:23 +00004158if test "`cd $srcdir && pwd`" != "`pwd`"; then
4159 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4160 # is not polluted with repeated "-I."
4161 am__isrc=' -I$(srcdir)'
4162 # test to see if srcdir already configured
4163 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004164 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004165 fi
4166fi
4167
4168# test whether we have cygpath
4169if test -z "$CYGPATH_W"; then
4170 if (cygpath --version) >/dev/null 2>/dev/null; then
4171 CYGPATH_W='cygpath -w'
4172 else
4173 CYGPATH_W=echo
4174 fi
4175fi
4176
4177
4178# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004179 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004180 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004181
4182
cristya448bd22011-10-14 12:38:13 +00004183cat >>confdefs.h <<_ACEOF
4184#define PACKAGE "$PACKAGE"
4185_ACEOF
4186
4187
4188cat >>confdefs.h <<_ACEOF
4189#define VERSION "$VERSION"
4190_ACEOF
4191
cristy73bd4a52010-10-05 11:24:23 +00004192# Some tools Automake needs.
4193
4194ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4195
4196
4197AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4198
4199
4200AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4201
4202
4203AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4204
4205
4206MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4207
cristyc0890a62012-07-19 00:18:20 +00004208# For better backward compatibility. To be removed once Automake 1.9.x
4209# dies out for good. For more background, see:
4210# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4211# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4212mkdir_p='$(MKDIR_P)'
4213
cristy73bd4a52010-10-05 11:24:23 +00004214# We need awk for the "check" target. The system "awk" is bad on
4215# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004216# Always define AMTAR for backward compatibility. Yes, it's still used
4217# in the wild :-( We should find a proper way to deprecate it ...
4218AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004219
cristye69bdbe2013-05-03 21:40:44 +00004220
4221# We'll loop over all known methods to create a tar archive until one works.
4222_am_tools='gnutar pax cpio none'
4223
cristyc3fb77b2012-02-06 01:49:41 +00004224am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004225
4226
4227
4228
4229
cristy3ed852e2009-09-05 21:47:34 +00004230
cristye69bdbe2013-05-03 21:40:44 +00004231
cristy3ed852e2009-09-05 21:47:34 +00004232# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004233# Check whether --enable-silent-rules was given.
4234if test "${enable_silent_rules+set}" = set; then :
4235 enableval=$enable_silent_rules;
4236fi
4237
cristyc0890a62012-07-19 00:18:20 +00004238case $enable_silent_rules in # (((
4239 yes) AM_DEFAULT_VERBOSITY=0;;
4240 no) AM_DEFAULT_VERBOSITY=1;;
4241 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004242esac
cristyc3fb77b2012-02-06 01:49:41 +00004243am_make=${MAKE-make}
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4245$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4246if ${am_cv_make_support_nested_variables+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248else
4249 if $as_echo 'TRUE=$(BAR$(V))
4250BAR0=false
4251BAR1=true
4252V=1
4253am__doit:
4254 @$(TRUE)
4255.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4256 am_cv_make_support_nested_variables=yes
4257else
4258 am_cv_make_support_nested_variables=no
4259fi
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4262$as_echo "$am_cv_make_support_nested_variables" >&6; }
4263if test $am_cv_make_support_nested_variables = yes; then
4264 AM_V='$(V)'
4265 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4266else
4267 AM_V=$AM_DEFAULT_VERBOSITY
4268 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4269fi
cristy73bd4a52010-10-05 11:24:23 +00004270AM_BACKSLASH='\'
4271
cristy3ed852e2009-09-05 21:47:34 +00004272
4273MAGICK_LIB_VERSION="0x"
4274if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4275 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4276fi
4277MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4278if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4279 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4280fi
4281MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4282if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4283 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4284fi
4285MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4286
4287
4288# Definition used to define MagickLibVersionText in version.h
4289MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4290
4291
4292# Definition used to define MagickLibVersionNumber in version.h
4293MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4294
4295
4296# Regenerate config.status if ChangeLog or version.sh is updated.
4297CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4298
4299
4300PERLMAINCC=$CC
4301
4302MAGICK_CFLAGS=''
4303MAGICK_CPPFLAGS=$CPPFLAGS_USER
4304MAGICK_PCFLAGS=$CPPFLAGS_USER
4305MAGICK_LDFLAGS=''
4306MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004307MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004308
4309#
4310# Evaluate shell variable equivalents to Makefile directory variables
4311#
4312if test "x$prefix" = xNONE; then
4313 prefix=$ac_default_prefix
4314fi
4315# Let make expand exec_prefix.
4316if test "x$exec_prefix" = xNONE; then
4317 exec_prefix='${prefix}'
4318fi
4319
4320#
4321eval "eval PREFIX_DIR=${prefix}"
4322
4323eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4324
4325eval "eval BIN_DIR=$bindir"
4326
4327eval "eval SBIN_DIR=$sbindir"
4328
4329eval "eval LIBEXEC_DIR=$libexecdir"
4330
4331eval "eval DATA_DIR=$datadir"
4332
cristy4e65ec22012-04-08 01:33:27 +00004333eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004334
cristy3ed852e2009-09-05 21:47:34 +00004335eval "eval SYSCONF_DIR=$sysconfdir"
4336
4337eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4338
4339eval "eval LOCALSTATE_DIR=$localstatedir"
4340
4341eval "eval LIB_DIR=$libdir"
4342
4343eval "eval INCLUDE_DIR=$includedir"
4344
4345eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4346
4347eval "eval INFO_DIR=$infodir"
4348
4349eval "eval MAN_DIR=$mandir"
4350
4351
4352# Get full paths to source and build directories
4353srcdirfull="`cd $srcdir && pwd`"
4354builddir="`pwd`"
4355
4356#
4357# Compute variables useful for running uninstalled software.
4358#
4359MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4360MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4361MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4362MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4363DIRSEP=':'
4364case "${build_os}" in
4365 mingw* )
4366 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4367 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4368 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4369 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4370 DIRSEP=';'
4371 ;;
4372esac
4373case "${host_os}" in
4374 mingw* )
4375 DIRSEP=';'
4376 ;;
4377esac
4378
4379
4380
4381
4382
4383
cristya0b81c32010-01-22 02:54:33 +00004384
4385#
4386# Enable OS features.
4387#
cristy73bd4a52010-10-05 11:24:23 +00004388DEPDIR="${am__leading_dot}deps"
4389
4390ac_config_commands="$ac_config_commands depfiles"
4391
4392
4393am_make=${MAKE-make}
4394cat > confinc << 'END'
4395am__doit:
4396 @echo this is the am__doit target
4397.PHONY: am__doit
4398END
4399# If we don't find an include directive, just comment out the code.
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4401$as_echo_n "checking for style of include used by $am_make... " >&6; }
4402am__include="#"
4403am__quote=
4404_am_result=none
4405# First try GNU make style include.
4406echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004407# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004408case `$am_make -s -f confmf 2> /dev/null` in #(
4409*the\ am__doit\ target*)
4410 am__include=include
4411 am__quote=
4412 _am_result=GNU
4413 ;;
4414esac
4415# Now try BSD make style include.
4416if test "$am__include" = "#"; then
4417 echo '.include "confinc"' > confmf
4418 case `$am_make -s -f confmf 2> /dev/null` in #(
4419 *the\ am__doit\ target*)
4420 am__include=.include
4421 am__quote="\""
4422 _am_result=BSD
4423 ;;
4424 esac
4425fi
4426
4427
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4429$as_echo "$_am_result" >&6; }
4430rm -f confinc confmf
4431
4432# Check whether --enable-dependency-tracking was given.
4433if test "${enable_dependency_tracking+set}" = set; then :
4434 enableval=$enable_dependency_tracking;
4435fi
4436
4437if test "x$enable_dependency_tracking" != xno; then
4438 am_depcomp="$ac_aux_dir/depcomp"
4439 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004440 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004441fi
4442 if test "x$enable_dependency_tracking" != xno; then
4443 AMDEP_TRUE=
4444 AMDEP_FALSE='#'
4445else
4446 AMDEP_TRUE='#'
4447 AMDEP_FALSE=
4448fi
4449
4450
cristy3ed852e2009-09-05 21:47:34 +00004451ac_ext=c
4452ac_cpp='$CPP $CPPFLAGS'
4453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456if test -n "$ac_tool_prefix"; then
4457 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4458set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004460$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004461if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004462 $as_echo_n "(cached) " >&6
4463else
4464 if test -n "$CC"; then
4465 ac_cv_prog_CC="$CC" # Let the user override the test.
4466else
4467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH
4469do
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004472 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004474 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004476 break 2
4477 fi
4478done
cristy8b350f62009-11-15 23:12:43 +00004479 done
cristy3ed852e2009-09-05 21:47:34 +00004480IFS=$as_save_IFS
4481
4482fi
4483fi
4484CC=$ac_cv_prog_CC
4485if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004487$as_echo "$CC" >&6; }
4488else
cristy8b350f62009-11-15 23:12:43 +00004489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004490$as_echo "no" >&6; }
4491fi
4492
4493
4494fi
4495if test -z "$ac_cv_prog_CC"; then
4496 ac_ct_CC=$CC
4497 # Extract the first word of "gcc", so it can be a program name with args.
4498set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004500$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004501if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004502 $as_echo_n "(cached) " >&6
4503else
4504 if test -n "$ac_ct_CC"; then
4505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4506else
4507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH
4509do
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004512 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004514 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004516 break 2
4517 fi
4518done
cristy8b350f62009-11-15 23:12:43 +00004519 done
cristy3ed852e2009-09-05 21:47:34 +00004520IFS=$as_save_IFS
4521
4522fi
4523fi
4524ac_ct_CC=$ac_cv_prog_ac_ct_CC
4525if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004527$as_echo "$ac_ct_CC" >&6; }
4528else
cristy8b350f62009-11-15 23:12:43 +00004529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004530$as_echo "no" >&6; }
4531fi
4532
4533 if test "x$ac_ct_CC" = x; then
4534 CC=""
4535 else
4536 case $cross_compiling:$ac_tool_warned in
4537yes:)
cristy8b350f62009-11-15 23:12:43 +00004538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4540ac_tool_warned=yes ;;
4541esac
4542 CC=$ac_ct_CC
4543 fi
4544else
4545 CC="$ac_cv_prog_CC"
4546fi
4547
4548if test -z "$CC"; then
4549 if test -n "$ac_tool_prefix"; then
4550 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4551set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004553$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004554if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004555 $as_echo_n "(cached) " >&6
4556else
4557 if test -n "$CC"; then
4558 ac_cv_prog_CC="$CC" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004565 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004567 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004569 break 2
4570 fi
4571done
cristy8b350f62009-11-15 23:12:43 +00004572 done
cristy3ed852e2009-09-05 21:47:34 +00004573IFS=$as_save_IFS
4574
4575fi
4576fi
4577CC=$ac_cv_prog_CC
4578if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004580$as_echo "$CC" >&6; }
4581else
cristy8b350f62009-11-15 23:12:43 +00004582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004583$as_echo "no" >&6; }
4584fi
4585
4586
4587 fi
4588fi
4589if test -z "$CC"; then
4590 # Extract the first word of "cc", so it can be a program name with args.
4591set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004594if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004595 $as_echo_n "(cached) " >&6
4596else
4597 if test -n "$CC"; then
4598 ac_cv_prog_CC="$CC" # Let the user override the test.
4599else
4600 ac_prog_rejected=no
4601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602for as_dir in $PATH
4603do
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004606 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004608 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4609 ac_prog_rejected=yes
4610 continue
4611 fi
4612 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004614 break 2
4615 fi
4616done
cristy8b350f62009-11-15 23:12:43 +00004617 done
cristy3ed852e2009-09-05 21:47:34 +00004618IFS=$as_save_IFS
4619
4620if test $ac_prog_rejected = yes; then
4621 # We found a bogon in the path, so make sure we never use it.
4622 set dummy $ac_cv_prog_CC
4623 shift
4624 if test $# != 0; then
4625 # We chose a different compiler from the bogus one.
4626 # However, it has the same basename, so the bogon will be chosen
4627 # first if we set CC to just the basename; use the full file name.
4628 shift
4629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4630 fi
4631fi
4632fi
4633fi
4634CC=$ac_cv_prog_CC
4635if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004637$as_echo "$CC" >&6; }
4638else
cristy8b350f62009-11-15 23:12:43 +00004639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004640$as_echo "no" >&6; }
4641fi
4642
4643
4644fi
4645if test -z "$CC"; then
4646 if test -n "$ac_tool_prefix"; then
4647 for ac_prog in cl.exe
4648 do
4649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4650set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004652$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004653if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004654 $as_echo_n "(cached) " >&6
4655else
4656 if test -n "$CC"; then
4657 ac_cv_prog_CC="$CC" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004668 break 2
4669 fi
4670done
cristy8b350f62009-11-15 23:12:43 +00004671 done
cristy3ed852e2009-09-05 21:47:34 +00004672IFS=$as_save_IFS
4673
4674fi
4675fi
4676CC=$ac_cv_prog_CC
4677if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004679$as_echo "$CC" >&6; }
4680else
cristy8b350f62009-11-15 23:12:43 +00004681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo "no" >&6; }
4683fi
4684
4685
4686 test -n "$CC" && break
4687 done
4688fi
4689if test -z "$CC"; then
4690 ac_ct_CC=$CC
4691 for ac_prog in cl.exe
4692do
4693 # Extract the first word of "$ac_prog", so it can be a program name with args.
4694set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004696$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004697if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004698 $as_echo_n "(cached) " >&6
4699else
4700 if test -n "$ac_ct_CC"; then
4701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4702else
4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004708 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004710 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004712 break 2
4713 fi
4714done
cristy8b350f62009-11-15 23:12:43 +00004715 done
cristy3ed852e2009-09-05 21:47:34 +00004716IFS=$as_save_IFS
4717
4718fi
4719fi
4720ac_ct_CC=$ac_cv_prog_ac_ct_CC
4721if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004723$as_echo "$ac_ct_CC" >&6; }
4724else
cristy8b350f62009-11-15 23:12:43 +00004725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004726$as_echo "no" >&6; }
4727fi
4728
4729
4730 test -n "$ac_ct_CC" && break
4731done
4732
4733 if test "x$ac_ct_CC" = x; then
4734 CC=""
4735 else
4736 case $cross_compiling:$ac_tool_warned in
4737yes:)
cristy8b350f62009-11-15 23:12:43 +00004738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4740ac_tool_warned=yes ;;
4741esac
4742 CC=$ac_ct_CC
4743 fi
4744fi
4745
4746fi
4747
4748
cristy8b350f62009-11-15 23:12:43 +00004749test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004751as_fn_error $? "no acceptable C compiler found in \$PATH
4752See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004753
4754# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004755$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004756set X $ac_compile
4757ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004758for ac_option in --version -v -V -qversion; do
4759 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004760case "(($ac_try" in
4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762 *) ac_try_echo=$ac_try;;
4763esac
cristy8b350f62009-11-15 23:12:43 +00004764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4765$as_echo "$ac_try_echo"; } >&5
4766 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004767 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004768 if test -s conftest.err; then
4769 sed '10a\
4770... rest of stderr output deleted ...
4771 10q' conftest.err >conftest.er1
4772 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004773 fi
cristycd4c5312009-11-22 01:19:08 +00004774 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4776 test $ac_status = 0; }
4777done
cristy3ed852e2009-09-05 21:47:34 +00004778
cristy8b350f62009-11-15 23:12:43 +00004779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004780/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004781
cristy3ed852e2009-09-05 21:47:34 +00004782int
4783main ()
4784{
4785
4786 ;
4787 return 0;
4788}
4789_ACEOF
4790ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004791ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004792# Try to create an executable without -o first, disregard a.out.
4793# It will help us diagnose broken compilers, and finding out an intuition
4794# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4796$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004797ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4798
4799# The possible output files:
4800ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4801
4802ac_rmfiles=
4803for ac_file in $ac_files
4804do
4805 case $ac_file in
4806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4807 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4808 esac
4809done
4810rm -f $ac_rmfiles
4811
cristy8b350f62009-11-15 23:12:43 +00004812if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004813case "(($ac_try" in
4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4816esac
cristy8b350f62009-11-15 23:12:43 +00004817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4818$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004819 (eval "$ac_link_default") 2>&5
4820 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4822 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004823 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4824# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4825# in a Makefile. We should not override ac_cv_exeext if it was cached,
4826# so that the user can short-circuit this test for compilers unknown to
4827# Autoconf.
4828for ac_file in $ac_files ''
4829do
4830 test -f "$ac_file" || continue
4831 case $ac_file in
4832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4833 ;;
4834 [ab].out )
4835 # We found the default executable, but exeext='' is most
4836 # certainly right.
4837 break;;
4838 *.* )
cristy8b350f62009-11-15 23:12:43 +00004839 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004840 then :; else
4841 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4842 fi
4843 # We set ac_cv_exeext here because the later test for it is not
4844 # safe: cross compilers may not add the suffix if given an `-o'
4845 # argument, so we may need to know it at that point already.
4846 # Even if this section looks crufty: it has the advantage of
4847 # actually working.
4848 break;;
4849 * )
4850 break;;
4851 esac
4852done
4853test "$ac_cv_exeext" = no && ac_cv_exeext=
4854
4855else
4856 ac_file=''
4857fi
cristy8b350f62009-11-15 23:12:43 +00004858if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860$as_echo "no" >&6; }
4861$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004862sed 's/^/| /' conftest.$ac_ext >&5
4863
cristy8b350f62009-11-15 23:12:43 +00004864{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004866as_fn_error 77 "C compiler cannot create executables
4867See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004868else
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4870$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004871fi
cristycd4c5312009-11-22 01:19:08 +00004872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4873$as_echo_n "checking for C compiler default output file name... " >&6; }
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4875$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004876ac_exeext=$ac_cv_exeext
4877
cristycd4c5312009-11-22 01:19:08 +00004878rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004879ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004881$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004882if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004883case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886esac
cristy8b350f62009-11-15 23:12:43 +00004887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4888$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004889 (eval "$ac_link") 2>&5
4890 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4892 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4894# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4895# work properly (i.e., refer to `conftest.exe'), while it won't with
4896# `rm'.
4897for ac_file in conftest.exe conftest conftest.*; do
4898 test -f "$ac_file" || continue
4899 case $ac_file in
4900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4902 break;;
4903 * ) break;;
4904 esac
4905done
4906else
cristy8b350f62009-11-15 23:12:43 +00004907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004909as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4910See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004911fi
cristycd4c5312009-11-22 01:19:08 +00004912rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004914$as_echo "$ac_cv_exeext" >&6; }
4915
4916rm -f conftest.$ac_ext
4917EXEEXT=$ac_cv_exeext
4918ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920/* end confdefs.h. */
4921#include <stdio.h>
4922int
4923main ()
4924{
4925FILE *f = fopen ("conftest.out", "w");
4926 return ferror (f) || fclose (f) != 0;
4927
4928 ;
4929 return 0;
4930}
4931_ACEOF
4932ac_clean_files="$ac_clean_files conftest.out"
4933# Check that the compiler produces executables we can run. If not, either
4934# the compiler is broken, or we cross compile.
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4936$as_echo_n "checking whether we are cross compiling... " >&6; }
4937if test "$cross_compiling" != yes; then
4938 { { ac_try="$ac_link"
4939case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4942esac
4943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4944$as_echo "$ac_try_echo"; } >&5
4945 (eval "$ac_link") 2>&5
4946 ac_status=$?
4947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4948 test $ac_status = 0; }
4949 if { ac_try='./conftest$ac_cv_exeext'
4950 { { case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4953esac
4954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4955$as_echo "$ac_try_echo"; } >&5
4956 (eval "$ac_try") 2>&5
4957 ac_status=$?
4958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4959 test $ac_status = 0; }; }; then
4960 cross_compiling=no
4961 else
4962 if test "$cross_compiling" = maybe; then
4963 cross_compiling=yes
4964 else
4965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004967as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004968If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004969See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004970 fi
4971 fi
4972fi
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4974$as_echo "$cross_compiling" >&6; }
4975
4976rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4977ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004979$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004980if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004981 $as_echo_n "(cached) " >&6
4982else
cristy8b350f62009-11-15 23:12:43 +00004983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004984/* end confdefs.h. */
4985
4986int
4987main ()
4988{
4989
4990 ;
4991 return 0;
4992}
4993_ACEOF
4994rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004995if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004996case "(($ac_try" in
4997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4998 *) ac_try_echo=$ac_try;;
4999esac
cristy8b350f62009-11-15 23:12:43 +00005000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5001$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005002 (eval "$ac_compile") 2>&5
5003 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5005 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005006 for ac_file in conftest.o conftest.obj conftest.*; do
5007 test -f "$ac_file" || continue;
5008 case $ac_file in
5009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5010 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5011 break;;
5012 esac
5013done
5014else
5015 $as_echo "$as_me: failed program was:" >&5
5016sed 's/^/| /' conftest.$ac_ext >&5
5017
cristy8b350f62009-11-15 23:12:43 +00005018{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005020as_fn_error $? "cannot compute suffix of object files: cannot compile
5021See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005022fi
cristy3ed852e2009-09-05 21:47:34 +00005023rm -f conftest.$ac_cv_objext conftest.$ac_ext
5024fi
cristy8b350f62009-11-15 23:12:43 +00005025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005026$as_echo "$ac_cv_objext" >&6; }
5027OBJEXT=$ac_cv_objext
5028ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005030$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005031if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005032 $as_echo_n "(cached) " >&6
5033else
cristy8b350f62009-11-15 23:12:43 +00005034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005035/* end confdefs.h. */
5036
5037int
5038main ()
5039{
5040#ifndef __GNUC__
5041 choke me
5042#endif
5043
5044 ;
5045 return 0;
5046}
5047_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005048if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005049 ac_compiler_gnu=yes
5050else
cristy8b350f62009-11-15 23:12:43 +00005051 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005052fi
cristy3ed852e2009-09-05 21:47:34 +00005053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054ac_cv_c_compiler_gnu=$ac_compiler_gnu
5055
5056fi
cristy8b350f62009-11-15 23:12:43 +00005057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005058$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5059if test $ac_compiler_gnu = yes; then
5060 GCC=yes
5061else
5062 GCC=
5063fi
5064ac_test_CFLAGS=${CFLAGS+set}
5065ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005067$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005068if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005069 $as_echo_n "(cached) " >&6
5070else
5071 ac_save_c_werror_flag=$ac_c_werror_flag
5072 ac_c_werror_flag=yes
5073 ac_cv_prog_cc_g=no
5074 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005076/* end confdefs.h. */
5077
5078int
5079main ()
5080{
5081
5082 ;
5083 return 0;
5084}
5085_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005086if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005087 ac_cv_prog_cc_g=yes
5088else
cristy8b350f62009-11-15 23:12:43 +00005089 CFLAGS=""
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005091/* end confdefs.h. */
5092
5093int
5094main ()
5095{
5096
5097 ;
5098 return 0;
5099}
5100_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005101if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005102
cristy8b350f62009-11-15 23:12:43 +00005103else
5104 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005105 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005107/* end confdefs.h. */
5108
5109int
5110main ()
5111{
5112
5113 ;
5114 return 0;
5115}
5116_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005117if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005118 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005119fi
cristy3ed852e2009-09-05 21:47:34 +00005120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121fi
cristy3ed852e2009-09-05 21:47:34 +00005122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123fi
cristy3ed852e2009-09-05 21:47:34 +00005124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125 ac_c_werror_flag=$ac_save_c_werror_flag
5126fi
cristy8b350f62009-11-15 23:12:43 +00005127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005128$as_echo "$ac_cv_prog_cc_g" >&6; }
5129if test "$ac_test_CFLAGS" = set; then
5130 CFLAGS=$ac_save_CFLAGS
5131elif test $ac_cv_prog_cc_g = yes; then
5132 if test "$GCC" = yes; then
5133 CFLAGS="-g -O2"
5134 else
5135 CFLAGS="-g"
5136 fi
5137else
5138 if test "$GCC" = yes; then
5139 CFLAGS="-O2"
5140 else
5141 CFLAGS=
5142 fi
5143fi
cristy8b350f62009-11-15 23:12:43 +00005144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005145$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005146if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005147 $as_echo_n "(cached) " >&6
5148else
5149 ac_cv_prog_cc_c89=no
5150ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005152/* end confdefs.h. */
5153#include <stdarg.h>
5154#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005155struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005156/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5157struct buf { int x; };
5158FILE * (*rcsopen) (struct buf *, struct stat *, int);
5159static char *e (p, i)
5160 char **p;
5161 int i;
5162{
5163 return p[i];
5164}
5165static char *f (char * (*g) (char **, int), char **p, ...)
5166{
5167 char *s;
5168 va_list v;
5169 va_start (v,p);
5170 s = g (p, va_arg (v,int));
5171 va_end (v);
5172 return s;
5173}
5174
5175/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5176 function prototypes and stuff, but not '\xHH' hex character constants.
5177 These don't provoke an error unfortunately, instead are silently treated
5178 as 'x'. The following induces an error, until -std is added to get
5179 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5180 array size at least. It's necessary to write '\x00'==0 to get something
5181 that's true only with -std. */
5182int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5183
5184/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5185 inside strings and character constants. */
5186#define FOO(x) 'x'
5187int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5188
5189int test (int i, double x);
5190struct s1 {int (*f) (int a);};
5191struct s2 {int (*f) (double a);};
5192int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5193int argc;
5194char **argv;
5195int
5196main ()
5197{
5198return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5199 ;
5200 return 0;
5201}
5202_ACEOF
5203for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5204 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5205do
5206 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005207 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005208 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005209fi
cristy3ed852e2009-09-05 21:47:34 +00005210rm -f core conftest.err conftest.$ac_objext
5211 test "x$ac_cv_prog_cc_c89" != "xno" && break
5212done
5213rm -f conftest.$ac_ext
5214CC=$ac_save_CC
5215
5216fi
5217# AC_CACHE_VAL
5218case "x$ac_cv_prog_cc_c89" in
5219 x)
cristy8b350f62009-11-15 23:12:43 +00005220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005221$as_echo "none needed" >&6; } ;;
5222 xno)
cristy8b350f62009-11-15 23:12:43 +00005223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005224$as_echo "unsupported" >&6; } ;;
5225 *)
5226 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005228$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5229esac
cristy8b350f62009-11-15 23:12:43 +00005230if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005231
cristy8b350f62009-11-15 23:12:43 +00005232fi
cristy3ed852e2009-09-05 21:47:34 +00005233
5234ac_ext=c
5235ac_cpp='$CPP $CPPFLAGS'
5236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005239
cristy73bd4a52010-10-05 11:24:23 +00005240depcc="$CC" am_compiler_list=
5241
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5243$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005244if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005245 $as_echo_n "(cached) " >&6
5246else
5247 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5248 # We make a subdir and do the tests there. Otherwise we can end up
5249 # making bogus files that we don't know about and never remove. For
5250 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005251 # making a dummy file named 'D' -- because '-MD' means "put the output
5252 # in D".
cristy7247bba2012-02-05 16:37:27 +00005253 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005254 mkdir conftest.dir
5255 # Copy depcomp to subdir because otherwise we won't find it if we're
5256 # using a relative directory.
5257 cp "$am_depcomp" conftest.dir
5258 cd conftest.dir
5259 # We will build objects and dependencies in a subdirectory because
5260 # it helps to detect inapplicable dependency modes. For instance
5261 # both Tru64's cc and ICC support -MD to output dependencies as a
5262 # side effect of compilation, but ICC will put the dependencies in
5263 # the current directory while Tru64 will put them in the object
5264 # directory.
5265 mkdir sub
5266
5267 am_cv_CC_dependencies_compiler_type=none
5268 if test "$am_compiler_list" = ""; then
5269 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5270 fi
5271 am__universal=false
5272 case " $depcc " in #(
5273 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5274 esac
5275
5276 for depmode in $am_compiler_list; do
5277 # Setup a source with many dependencies, because some compilers
5278 # like to wrap large dependency lists on column 80 (with \), and
5279 # we should not choose a depcomp mode which is confused by this.
5280 #
5281 # We need to recreate these files for each test, as the compiler may
5282 # overwrite some of them when testing with obscure command lines.
5283 # This happens at least with the AIX C compiler.
5284 : > sub/conftest.c
5285 for i in 1 2 3 4 5 6; do
5286 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005287 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5288 # Solaris 10 /bin/sh.
5289 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005290 done
5291 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5292
cristyc0890a62012-07-19 00:18:20 +00005293 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005294 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005295 # handle '-M -o', and we need to detect this. Also, some Intel
5296 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005297 am__obj=sub/conftest.${OBJEXT-o}
5298 am__minus_obj="-o $am__obj"
5299 case $depmode in
5300 gcc)
5301 # This depmode causes a compiler race in universal mode.
5302 test "$am__universal" = false || continue
5303 ;;
5304 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005305 # After this tag, mechanisms are not by side-effect, so they'll
5306 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005307 if test "x$enable_dependency_tracking" = xyes; then
5308 continue
5309 else
5310 break
5311 fi
5312 ;;
cristy7247bba2012-02-05 16:37:27 +00005313 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005314 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005315 # not run yet. These depmodes are late enough in the game, and
5316 # so weak that their functioning should not be impacted.
5317 am__obj=conftest.${OBJEXT-o}
5318 am__minus_obj=
5319 ;;
5320 none) break ;;
5321 esac
5322 if depmode=$depmode \
5323 source=sub/conftest.c object=$am__obj \
5324 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5325 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5326 >/dev/null 2>conftest.err &&
5327 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5328 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5329 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5330 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5331 # icc doesn't choke on unknown options, it will just issue warnings
5332 # or remarks (even with -Werror). So we grep stderr for any message
5333 # that says an option was ignored or not supported.
5334 # When given -MP, icc 7.0 and 7.1 complain thusly:
5335 # icc: Command line warning: ignoring option '-M'; no argument required
5336 # The diagnosis changed in icc 8.0:
5337 # icc: Command line remark: option '-MP' not supported
5338 if (grep 'ignoring option' conftest.err ||
5339 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5340 am_cv_CC_dependencies_compiler_type=$depmode
5341 break
5342 fi
5343 fi
5344 done
5345
5346 cd ..
5347 rm -rf conftest.dir
5348else
5349 am_cv_CC_dependencies_compiler_type=none
5350fi
5351
5352fi
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5354$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5355CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5356
5357 if
5358 test "x$enable_dependency_tracking" != xno \
5359 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5360 am__fastdepCC_TRUE=
5361 am__fastdepCC_FALSE='#'
5362else
5363 am__fastdepCC_TRUE='#'
5364 am__fastdepCC_FALSE=
5365fi
5366
5367
cristy3ed852e2009-09-05 21:47:34 +00005368
cristya0b81c32010-01-22 02:54:33 +00005369ac_ext=c
5370ac_cpp='$CPP $CPPFLAGS'
5371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5373ac_compiler_gnu=$ac_cv_c_compiler_gnu
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5375$as_echo_n "checking how to run the C preprocessor... " >&6; }
5376# On Suns, sometimes $CPP names a directory.
5377if test -n "$CPP" && test -d "$CPP"; then
5378 CPP=
5379fi
5380if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005381 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005382 $as_echo_n "(cached) " >&6
5383else
5384 # Double quotes because CPP needs to be expanded
5385 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5386 do
5387 ac_preproc_ok=false
5388for ac_c_preproc_warn_flag in '' yes
5389do
5390 # Use a header file that comes with gcc, so configuring glibc
5391 # with a fresh cross-compiler works.
5392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5393 # <limits.h> exists even on freestanding compilers.
5394 # On the NeXT, cc -E runs the code through the compiler's parser,
5395 # not just through cpp. "Syntax error" is here to catch this case.
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h. */
5398#ifdef __STDC__
5399# include <limits.h>
5400#else
5401# include <assert.h>
5402#endif
5403 Syntax error
5404_ACEOF
5405if ac_fn_c_try_cpp "$LINENO"; then :
5406
5407else
5408 # Broken: fails on valid input.
5409continue
5410fi
cristyda16f162011-02-19 23:52:17 +00005411rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005412
5413 # OK, works on sane cases. Now check whether nonexistent headers
5414 # can be detected and how.
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416/* end confdefs.h. */
5417#include <ac_nonexistent.h>
5418_ACEOF
5419if ac_fn_c_try_cpp "$LINENO"; then :
5420 # Broken: success on invalid input.
5421continue
5422else
5423 # Passes both tests.
5424ac_preproc_ok=:
5425break
5426fi
cristyda16f162011-02-19 23:52:17 +00005427rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005428
5429done
5430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005431rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005432if $ac_preproc_ok; then :
5433 break
5434fi
5435
5436 done
5437 ac_cv_prog_CPP=$CPP
5438
5439fi
5440 CPP=$ac_cv_prog_CPP
5441else
5442 ac_cv_prog_CPP=$CPP
5443fi
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5445$as_echo "$CPP" >&6; }
5446ac_preproc_ok=false
5447for ac_c_preproc_warn_flag in '' yes
5448do
5449 # Use a header file that comes with gcc, so configuring glibc
5450 # with a fresh cross-compiler works.
5451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5452 # <limits.h> exists even on freestanding compilers.
5453 # On the NeXT, cc -E runs the code through the compiler's parser,
5454 # not just through cpp. "Syntax error" is here to catch this case.
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456/* end confdefs.h. */
5457#ifdef __STDC__
5458# include <limits.h>
5459#else
5460# include <assert.h>
5461#endif
5462 Syntax error
5463_ACEOF
5464if ac_fn_c_try_cpp "$LINENO"; then :
5465
5466else
5467 # Broken: fails on valid input.
5468continue
5469fi
cristyda16f162011-02-19 23:52:17 +00005470rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005471
5472 # OK, works on sane cases. Now check whether nonexistent headers
5473 # can be detected and how.
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475/* end confdefs.h. */
5476#include <ac_nonexistent.h>
5477_ACEOF
5478if ac_fn_c_try_cpp "$LINENO"; then :
5479 # Broken: success on invalid input.
5480continue
5481else
5482 # Passes both tests.
5483ac_preproc_ok=:
5484break
5485fi
cristyda16f162011-02-19 23:52:17 +00005486rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005487
5488done
5489# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005490rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005491if $ac_preproc_ok; then :
5492
5493else
5494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005496as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5497See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005498fi
5499
5500ac_ext=c
5501ac_cpp='$CPP $CPPFLAGS'
5502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5504ac_compiler_gnu=$ac_cv_c_compiler_gnu
5505
5506
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5508$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005509if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005510 $as_echo_n "(cached) " >&6
5511else
5512 if test -z "$GREP"; then
5513 ac_path_GREP_found=false
5514 # Loop through the user's path and test for each of PROGNAME-LIST
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5517do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_prog in grep ggrep; do
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005523 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005524# Check for GNU ac_path_GREP and select it if it is found.
5525 # Check for GNU $ac_path_GREP
5526case `"$ac_path_GREP" --version 2>&1` in
5527*GNU*)
5528 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5529*)
5530 ac_count=0
5531 $as_echo_n 0123456789 >"conftest.in"
5532 while :
5533 do
5534 cat "conftest.in" "conftest.in" >"conftest.tmp"
5535 mv "conftest.tmp" "conftest.in"
5536 cp "conftest.in" "conftest.nl"
5537 $as_echo 'GREP' >> "conftest.nl"
5538 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5539 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5540 as_fn_arith $ac_count + 1 && ac_count=$as_val
5541 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5542 # Best one so far, save it but keep looking for a better one
5543 ac_cv_path_GREP="$ac_path_GREP"
5544 ac_path_GREP_max=$ac_count
5545 fi
5546 # 10*(2^10) chars as input seems more than enough
5547 test $ac_count -gt 10 && break
5548 done
5549 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5550esac
5551
5552 $ac_path_GREP_found && break 3
5553 done
5554 done
5555 done
5556IFS=$as_save_IFS
5557 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005558 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005559 fi
5560else
5561 ac_cv_path_GREP=$GREP
5562fi
5563
5564fi
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5566$as_echo "$ac_cv_path_GREP" >&6; }
5567 GREP="$ac_cv_path_GREP"
5568
5569
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5571$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005572if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005573 $as_echo_n "(cached) " >&6
5574else
5575 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5576 then ac_cv_path_EGREP="$GREP -E"
5577 else
5578 if test -z "$EGREP"; then
5579 ac_path_EGREP_found=false
5580 # Loop through the user's path and test for each of PROGNAME-LIST
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5583do
5584 IFS=$as_save_IFS
5585 test -z "$as_dir" && as_dir=.
5586 for ac_prog in egrep; do
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005589 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005590# Check for GNU ac_path_EGREP and select it if it is found.
5591 # Check for GNU $ac_path_EGREP
5592case `"$ac_path_EGREP" --version 2>&1` in
5593*GNU*)
5594 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5595*)
5596 ac_count=0
5597 $as_echo_n 0123456789 >"conftest.in"
5598 while :
5599 do
5600 cat "conftest.in" "conftest.in" >"conftest.tmp"
5601 mv "conftest.tmp" "conftest.in"
5602 cp "conftest.in" "conftest.nl"
5603 $as_echo 'EGREP' >> "conftest.nl"
5604 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5606 as_fn_arith $ac_count + 1 && ac_count=$as_val
5607 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5608 # Best one so far, save it but keep looking for a better one
5609 ac_cv_path_EGREP="$ac_path_EGREP"
5610 ac_path_EGREP_max=$ac_count
5611 fi
5612 # 10*(2^10) chars as input seems more than enough
5613 test $ac_count -gt 10 && break
5614 done
5615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5616esac
5617
5618 $ac_path_EGREP_found && break 3
5619 done
5620 done
5621 done
5622IFS=$as_save_IFS
5623 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005624 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005625 fi
5626else
5627 ac_cv_path_EGREP=$EGREP
5628fi
5629
5630 fi
5631fi
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5633$as_echo "$ac_cv_path_EGREP" >&6; }
5634 EGREP="$ac_cv_path_EGREP"
5635
5636
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5638$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005639if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005640 $as_echo_n "(cached) " >&6
5641else
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h. */
5644#include <stdlib.h>
5645#include <stdarg.h>
5646#include <string.h>
5647#include <float.h>
5648
5649int
5650main ()
5651{
5652
5653 ;
5654 return 0;
5655}
5656_ACEOF
5657if ac_fn_c_try_compile "$LINENO"; then :
5658 ac_cv_header_stdc=yes
5659else
5660 ac_cv_header_stdc=no
5661fi
5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663
5664if test $ac_cv_header_stdc = yes; then
5665 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667/* end confdefs.h. */
5668#include <string.h>
5669
5670_ACEOF
5671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5672 $EGREP "memchr" >/dev/null 2>&1; then :
5673
5674else
5675 ac_cv_header_stdc=no
5676fi
5677rm -f conftest*
5678
5679fi
5680
5681if test $ac_cv_header_stdc = yes; then
5682 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h. */
5685#include <stdlib.h>
5686
5687_ACEOF
5688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5689 $EGREP "free" >/dev/null 2>&1; then :
5690
5691else
5692 ac_cv_header_stdc=no
5693fi
5694rm -f conftest*
5695
5696fi
5697
5698if test $ac_cv_header_stdc = yes; then
5699 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5700 if test "$cross_compiling" = yes; then :
5701 :
5702else
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704/* end confdefs.h. */
5705#include <ctype.h>
5706#include <stdlib.h>
5707#if ((' ' & 0x0FF) == 0x020)
5708# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5709# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5710#else
5711# define ISLOWER(c) \
5712 (('a' <= (c) && (c) <= 'i') \
5713 || ('j' <= (c) && (c) <= 'r') \
5714 || ('s' <= (c) && (c) <= 'z'))
5715# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5716#endif
5717
5718#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5719int
5720main ()
5721{
5722 int i;
5723 for (i = 0; i < 256; i++)
5724 if (XOR (islower (i), ISLOWER (i))
5725 || toupper (i) != TOUPPER (i))
5726 return 2;
5727 return 0;
5728}
5729_ACEOF
5730if ac_fn_c_try_run "$LINENO"; then :
5731
5732else
5733 ac_cv_header_stdc=no
5734fi
5735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5736 conftest.$ac_objext conftest.beam conftest.$ac_ext
5737fi
5738
5739fi
5740fi
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5742$as_echo "$ac_cv_header_stdc" >&6; }
5743if test $ac_cv_header_stdc = yes; then
5744
5745$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5746
5747fi
5748
5749# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5750for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5751 inttypes.h stdint.h unistd.h
5752do :
5753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5754ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5755"
cristy98dddb52010-11-04 00:30:15 +00005756if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005757 cat >>confdefs.h <<_ACEOF
5758#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5759_ACEOF
5760
5761fi
5762
5763done
5764
5765
5766
5767 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 +00005768if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005769 MINIX=yes
5770else
5771 MINIX=
5772fi
5773
5774
5775 if test "$MINIX" = yes; then
5776
5777$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5778
5779
5780$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5781
5782
5783$as_echo "#define _MINIX 1" >>confdefs.h
5784
5785 fi
5786
5787
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5789$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005790if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005791 $as_echo_n "(cached) " >&6
5792else
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794/* end confdefs.h. */
5795
cristy14fefe52012-05-21 00:59:18 +00005796# define __EXTENSIONS__ 1
5797 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005798int
5799main ()
5800{
5801
5802 ;
5803 return 0;
5804}
5805_ACEOF
5806if ac_fn_c_try_compile "$LINENO"; then :
5807 ac_cv_safe_to_define___extensions__=yes
5808else
5809 ac_cv_safe_to_define___extensions__=no
5810fi
5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812fi
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5814$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5815 test $ac_cv_safe_to_define___extensions__ = yes &&
5816 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5817
5818 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5819
5820 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5821
5822 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5823
5824 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5825
5826
5827
5828# Check for programs
5829ac_ext=c
5830ac_cpp='$CPP $CPPFLAGS'
5831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833ac_compiler_gnu=$ac_cv_c_compiler_gnu
5834if test -n "$ac_tool_prefix"; then
5835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5836set dummy ${ac_tool_prefix}gcc; ac_word=$2
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005839if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005840 $as_echo_n "(cached) " >&6
5841else
5842 if test -n "$CC"; then
5843 ac_cv_prog_CC="$CC" # Let the user override the test.
5844else
5845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005852 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 break 2
5855 fi
5856done
5857 done
5858IFS=$as_save_IFS
5859
5860fi
5861fi
5862CC=$ac_cv_prog_CC
5863if test -n "$CC"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5865$as_echo "$CC" >&6; }
5866else
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868$as_echo "no" >&6; }
5869fi
5870
5871
5872fi
5873if test -z "$ac_cv_prog_CC"; then
5874 ac_ct_CC=$CC
5875 # Extract the first word of "gcc", so it can be a program name with args.
5876set dummy gcc; ac_word=$2
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5878$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005879if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005880 $as_echo_n "(cached) " >&6
5881else
5882 if test -n "$ac_ct_CC"; then
5883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5884else
5885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886for as_dir in $PATH
5887do
5888 IFS=$as_save_IFS
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005892 ac_cv_prog_ac_ct_CC="gcc"
5893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 break 2
5895 fi
5896done
5897 done
5898IFS=$as_save_IFS
5899
5900fi
5901fi
5902ac_ct_CC=$ac_cv_prog_ac_ct_CC
5903if test -n "$ac_ct_CC"; then
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5905$as_echo "$ac_ct_CC" >&6; }
5906else
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908$as_echo "no" >&6; }
5909fi
5910
5911 if test "x$ac_ct_CC" = x; then
5912 CC=""
5913 else
5914 case $cross_compiling:$ac_tool_warned in
5915yes:)
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5918ac_tool_warned=yes ;;
5919esac
5920 CC=$ac_ct_CC
5921 fi
5922else
5923 CC="$ac_cv_prog_CC"
5924fi
5925
5926if test -z "$CC"; then
5927 if test -n "$ac_tool_prefix"; then
5928 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5929set dummy ${ac_tool_prefix}cc; ac_word=$2
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005932if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005933 $as_echo_n "(cached) " >&6
5934else
5935 if test -n "$CC"; then
5936 ac_cv_prog_CC="$CC" # Let the user override the test.
5937else
5938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939for as_dir in $PATH
5940do
5941 IFS=$as_save_IFS
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005945 ac_cv_prog_CC="${ac_tool_prefix}cc"
5946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 break 2
5948 fi
5949done
5950 done
5951IFS=$as_save_IFS
5952
5953fi
5954fi
5955CC=$ac_cv_prog_CC
5956if test -n "$CC"; then
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5958$as_echo "$CC" >&6; }
5959else
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961$as_echo "no" >&6; }
5962fi
5963
5964
5965 fi
5966fi
5967if test -z "$CC"; then
5968 # Extract the first word of "cc", so it can be a program name with args.
5969set dummy cc; ac_word=$2
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005972if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005973 $as_echo_n "(cached) " >&6
5974else
5975 if test -n "$CC"; then
5976 ac_cv_prog_CC="$CC" # Let the user override the test.
5977else
5978 ac_prog_rejected=no
5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980for as_dir in $PATH
5981do
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005986 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5987 ac_prog_rejected=yes
5988 continue
5989 fi
5990 ac_cv_prog_CC="cc"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5993 fi
5994done
5995 done
5996IFS=$as_save_IFS
5997
5998if test $ac_prog_rejected = yes; then
5999 # We found a bogon in the path, so make sure we never use it.
6000 set dummy $ac_cv_prog_CC
6001 shift
6002 if test $# != 0; then
6003 # We chose a different compiler from the bogus one.
6004 # However, it has the same basename, so the bogon will be chosen
6005 # first if we set CC to just the basename; use the full file name.
6006 shift
6007 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6008 fi
6009fi
6010fi
6011fi
6012CC=$ac_cv_prog_CC
6013if test -n "$CC"; then
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6015$as_echo "$CC" >&6; }
6016else
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018$as_echo "no" >&6; }
6019fi
6020
6021
6022fi
6023if test -z "$CC"; then
6024 if test -n "$ac_tool_prefix"; then
6025 for ac_prog in cl.exe
6026 do
6027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6028set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006031if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006032 $as_echo_n "(cached) " >&6
6033else
6034 if test -n "$CC"; then
6035 ac_cv_prog_CC="$CC" # Let the user override the test.
6036else
6037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038for as_dir in $PATH
6039do
6040 IFS=$as_save_IFS
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 break 2
6047 fi
6048done
6049 done
6050IFS=$as_save_IFS
6051
6052fi
6053fi
6054CC=$ac_cv_prog_CC
6055if test -n "$CC"; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6057$as_echo "$CC" >&6; }
6058else
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060$as_echo "no" >&6; }
6061fi
6062
6063
6064 test -n "$CC" && break
6065 done
6066fi
6067if test -z "$CC"; then
6068 ac_ct_CC=$CC
6069 for ac_prog in cl.exe
6070do
6071 # Extract the first word of "$ac_prog", so it can be a program name with args.
6072set dummy $ac_prog; ac_word=$2
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006075if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006076 $as_echo_n "(cached) " >&6
6077else
6078 if test -n "$ac_ct_CC"; then
6079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6080else
6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082for as_dir in $PATH
6083do
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006088 ac_cv_prog_ac_ct_CC="$ac_prog"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6091 fi
6092done
6093 done
6094IFS=$as_save_IFS
6095
6096fi
6097fi
6098ac_ct_CC=$ac_cv_prog_ac_ct_CC
6099if test -n "$ac_ct_CC"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6101$as_echo "$ac_ct_CC" >&6; }
6102else
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104$as_echo "no" >&6; }
6105fi
6106
6107
6108 test -n "$ac_ct_CC" && break
6109done
6110
6111 if test "x$ac_ct_CC" = x; then
6112 CC=""
6113 else
6114 case $cross_compiling:$ac_tool_warned in
6115yes:)
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118ac_tool_warned=yes ;;
6119esac
6120 CC=$ac_ct_CC
6121 fi
6122fi
6123
6124fi
6125
6126
6127test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006129as_fn_error $? "no acceptable C compiler found in \$PATH
6130See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006131
6132# Provide some information about the compiler.
6133$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6134set X $ac_compile
6135ac_compiler=$2
6136for ac_option in --version -v -V -qversion; do
6137 { { ac_try="$ac_compiler $ac_option >&5"
6138case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141esac
6142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6143$as_echo "$ac_try_echo"; } >&5
6144 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6145 ac_status=$?
6146 if test -s conftest.err; then
6147 sed '10a\
6148... rest of stderr output deleted ...
6149 10q' conftest.err >conftest.er1
6150 cat conftest.er1 >&5
6151 fi
6152 rm -f conftest.er1 conftest.err
6153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154 test $ac_status = 0; }
6155done
6156
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6158$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006159if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006160 $as_echo_n "(cached) " >&6
6161else
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163/* end confdefs.h. */
6164
6165int
6166main ()
6167{
6168#ifndef __GNUC__
6169 choke me
6170#endif
6171
6172 ;
6173 return 0;
6174}
6175_ACEOF
6176if ac_fn_c_try_compile "$LINENO"; then :
6177 ac_compiler_gnu=yes
6178else
6179 ac_compiler_gnu=no
6180fi
6181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182ac_cv_c_compiler_gnu=$ac_compiler_gnu
6183
6184fi
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6186$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6187if test $ac_compiler_gnu = yes; then
6188 GCC=yes
6189else
6190 GCC=
6191fi
6192ac_test_CFLAGS=${CFLAGS+set}
6193ac_save_CFLAGS=$CFLAGS
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6195$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006196if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006197 $as_echo_n "(cached) " >&6
6198else
6199 ac_save_c_werror_flag=$ac_c_werror_flag
6200 ac_c_werror_flag=yes
6201 ac_cv_prog_cc_g=no
6202 CFLAGS="-g"
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204/* end confdefs.h. */
6205
6206int
6207main ()
6208{
6209
6210 ;
6211 return 0;
6212}
6213_ACEOF
6214if ac_fn_c_try_compile "$LINENO"; then :
6215 ac_cv_prog_cc_g=yes
6216else
6217 CFLAGS=""
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219/* end confdefs.h. */
6220
6221int
6222main ()
6223{
6224
6225 ;
6226 return 0;
6227}
6228_ACEOF
6229if ac_fn_c_try_compile "$LINENO"; then :
6230
6231else
6232 ac_c_werror_flag=$ac_save_c_werror_flag
6233 CFLAGS="-g"
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235/* end confdefs.h. */
6236
6237int
6238main ()
6239{
6240
6241 ;
6242 return 0;
6243}
6244_ACEOF
6245if ac_fn_c_try_compile "$LINENO"; then :
6246 ac_cv_prog_cc_g=yes
6247fi
6248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249fi
6250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251fi
6252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253 ac_c_werror_flag=$ac_save_c_werror_flag
6254fi
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6256$as_echo "$ac_cv_prog_cc_g" >&6; }
6257if test "$ac_test_CFLAGS" = set; then
6258 CFLAGS=$ac_save_CFLAGS
6259elif test $ac_cv_prog_cc_g = yes; then
6260 if test "$GCC" = yes; then
6261 CFLAGS="-g -O2"
6262 else
6263 CFLAGS="-g"
6264 fi
6265else
6266 if test "$GCC" = yes; then
6267 CFLAGS="-O2"
6268 else
6269 CFLAGS=
6270 fi
6271fi
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6273$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006274if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006275 $as_echo_n "(cached) " >&6
6276else
6277 ac_cv_prog_cc_c89=no
6278ac_save_CC=$CC
6279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280/* end confdefs.h. */
6281#include <stdarg.h>
6282#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006283struct stat;
cristya0b81c32010-01-22 02:54:33 +00006284/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6285struct buf { int x; };
6286FILE * (*rcsopen) (struct buf *, struct stat *, int);
6287static char *e (p, i)
6288 char **p;
6289 int i;
6290{
6291 return p[i];
6292}
6293static char *f (char * (*g) (char **, int), char **p, ...)
6294{
6295 char *s;
6296 va_list v;
6297 va_start (v,p);
6298 s = g (p, va_arg (v,int));
6299 va_end (v);
6300 return s;
6301}
6302
6303/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6304 function prototypes and stuff, but not '\xHH' hex character constants.
6305 These don't provoke an error unfortunately, instead are silently treated
6306 as 'x'. The following induces an error, until -std is added to get
6307 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6308 array size at least. It's necessary to write '\x00'==0 to get something
6309 that's true only with -std. */
6310int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6311
6312/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6313 inside strings and character constants. */
6314#define FOO(x) 'x'
6315int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6316
6317int test (int i, double x);
6318struct s1 {int (*f) (int a);};
6319struct s2 {int (*f) (double a);};
6320int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6321int argc;
6322char **argv;
6323int
6324main ()
6325{
6326return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6327 ;
6328 return 0;
6329}
6330_ACEOF
6331for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6332 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6333do
6334 CC="$ac_save_CC $ac_arg"
6335 if ac_fn_c_try_compile "$LINENO"; then :
6336 ac_cv_prog_cc_c89=$ac_arg
6337fi
6338rm -f core conftest.err conftest.$ac_objext
6339 test "x$ac_cv_prog_cc_c89" != "xno" && break
6340done
6341rm -f conftest.$ac_ext
6342CC=$ac_save_CC
6343
6344fi
6345# AC_CACHE_VAL
6346case "x$ac_cv_prog_cc_c89" in
6347 x)
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6349$as_echo "none needed" >&6; } ;;
6350 xno)
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6352$as_echo "unsupported" >&6; } ;;
6353 *)
6354 CC="$CC $ac_cv_prog_cc_c89"
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6356$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6357esac
6358if test "x$ac_cv_prog_cc_c89" != xno; then :
6359
6360fi
6361
6362ac_ext=c
6363ac_cpp='$CPP $CPPFLAGS'
6364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366ac_compiler_gnu=$ac_cv_c_compiler_gnu
6367
cristy73bd4a52010-10-05 11:24:23 +00006368depcc="$CC" am_compiler_list=
6369
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6371$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006372if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006373 $as_echo_n "(cached) " >&6
6374else
6375 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6376 # We make a subdir and do the tests there. Otherwise we can end up
6377 # making bogus files that we don't know about and never remove. For
6378 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006379 # making a dummy file named 'D' -- because '-MD' means "put the output
6380 # in D".
cristy7247bba2012-02-05 16:37:27 +00006381 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006382 mkdir conftest.dir
6383 # Copy depcomp to subdir because otherwise we won't find it if we're
6384 # using a relative directory.
6385 cp "$am_depcomp" conftest.dir
6386 cd conftest.dir
6387 # We will build objects and dependencies in a subdirectory because
6388 # it helps to detect inapplicable dependency modes. For instance
6389 # both Tru64's cc and ICC support -MD to output dependencies as a
6390 # side effect of compilation, but ICC will put the dependencies in
6391 # the current directory while Tru64 will put them in the object
6392 # directory.
6393 mkdir sub
6394
6395 am_cv_CC_dependencies_compiler_type=none
6396 if test "$am_compiler_list" = ""; then
6397 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6398 fi
6399 am__universal=false
6400 case " $depcc " in #(
6401 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6402 esac
6403
6404 for depmode in $am_compiler_list; do
6405 # Setup a source with many dependencies, because some compilers
6406 # like to wrap large dependency lists on column 80 (with \), and
6407 # we should not choose a depcomp mode which is confused by this.
6408 #
6409 # We need to recreate these files for each test, as the compiler may
6410 # overwrite some of them when testing with obscure command lines.
6411 # This happens at least with the AIX C compiler.
6412 : > sub/conftest.c
6413 for i in 1 2 3 4 5 6; do
6414 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006415 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6416 # Solaris 10 /bin/sh.
6417 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006418 done
6419 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6420
cristyc0890a62012-07-19 00:18:20 +00006421 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006422 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006423 # handle '-M -o', and we need to detect this. Also, some Intel
6424 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006425 am__obj=sub/conftest.${OBJEXT-o}
6426 am__minus_obj="-o $am__obj"
6427 case $depmode in
6428 gcc)
6429 # This depmode causes a compiler race in universal mode.
6430 test "$am__universal" = false || continue
6431 ;;
6432 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006433 # After this tag, mechanisms are not by side-effect, so they'll
6434 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006435 if test "x$enable_dependency_tracking" = xyes; then
6436 continue
6437 else
6438 break
6439 fi
6440 ;;
cristy7247bba2012-02-05 16:37:27 +00006441 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006442 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006443 # not run yet. These depmodes are late enough in the game, and
6444 # so weak that their functioning should not be impacted.
6445 am__obj=conftest.${OBJEXT-o}
6446 am__minus_obj=
6447 ;;
6448 none) break ;;
6449 esac
6450 if depmode=$depmode \
6451 source=sub/conftest.c object=$am__obj \
6452 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6453 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6454 >/dev/null 2>conftest.err &&
6455 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6456 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6457 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6458 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6459 # icc doesn't choke on unknown options, it will just issue warnings
6460 # or remarks (even with -Werror). So we grep stderr for any message
6461 # that says an option was ignored or not supported.
6462 # When given -MP, icc 7.0 and 7.1 complain thusly:
6463 # icc: Command line warning: ignoring option '-M'; no argument required
6464 # The diagnosis changed in icc 8.0:
6465 # icc: Command line remark: option '-MP' not supported
6466 if (grep 'ignoring option' conftest.err ||
6467 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6468 am_cv_CC_dependencies_compiler_type=$depmode
6469 break
6470 fi
6471 fi
6472 done
6473
6474 cd ..
6475 rm -rf conftest.dir
6476else
6477 am_cv_CC_dependencies_compiler_type=none
6478fi
6479
6480fi
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6482$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6483CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6484
6485 if
6486 test "x$enable_dependency_tracking" != xno \
6487 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6488 am__fastdepCC_TRUE=
6489 am__fastdepCC_FALSE='#'
6490else
6491 am__fastdepCC_TRUE='#'
6492 am__fastdepCC_FALSE=
6493fi
6494
6495
cristy95646052009-11-28 23:05:30 +00006496ac_ext=cpp
6497ac_cpp='$CXXCPP $CPPFLAGS'
6498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6501if test -z "$CXX"; then
6502 if test -n "$CCC"; then
6503 CXX=$CCC
6504 else
6505 if test -n "$ac_tool_prefix"; then
6506 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6507 do
6508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6509set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006512if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006513 $as_echo_n "(cached) " >&6
6514else
6515 if test -n "$CXX"; then
6516 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6517else
6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519for as_dir in $PATH
6520do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006525 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529done
6530 done
6531IFS=$as_save_IFS
6532
6533fi
6534fi
6535CXX=$ac_cv_prog_CXX
6536if test -n "$CXX"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6538$as_echo "$CXX" >&6; }
6539else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541$as_echo "no" >&6; }
6542fi
6543
6544
6545 test -n "$CXX" && break
6546 done
6547fi
6548if test -z "$CXX"; then
6549 ac_ct_CXX=$CXX
6550 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6551do
6552 # Extract the first word of "$ac_prog", so it can be a program name with args.
6553set dummy $ac_prog; ac_word=$2
6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6555$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006556if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006557 $as_echo_n "(cached) " >&6
6558else
6559 if test -n "$ac_ct_CXX"; then
6560 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6561else
6562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563for as_dir in $PATH
6564do
6565 IFS=$as_save_IFS
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006569 ac_cv_prog_ac_ct_CXX="$ac_prog"
6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 break 2
6572 fi
6573done
6574 done
6575IFS=$as_save_IFS
6576
6577fi
6578fi
6579ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6580if test -n "$ac_ct_CXX"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6582$as_echo "$ac_ct_CXX" >&6; }
6583else
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585$as_echo "no" >&6; }
6586fi
6587
6588
6589 test -n "$ac_ct_CXX" && break
6590done
6591
6592 if test "x$ac_ct_CXX" = x; then
6593 CXX="g++"
6594 else
6595 case $cross_compiling:$ac_tool_warned in
6596yes:)
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6599ac_tool_warned=yes ;;
6600esac
6601 CXX=$ac_ct_CXX
6602 fi
6603fi
6604
6605 fi
6606fi
6607# Provide some information about the compiler.
6608$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6609set X $ac_compile
6610ac_compiler=$2
6611for ac_option in --version -v -V -qversion; do
6612 { { ac_try="$ac_compiler $ac_option >&5"
6613case "(($ac_try" in
6614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615 *) ac_try_echo=$ac_try;;
6616esac
6617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6618$as_echo "$ac_try_echo"; } >&5
6619 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6620 ac_status=$?
6621 if test -s conftest.err; then
6622 sed '10a\
6623... rest of stderr output deleted ...
6624 10q' conftest.err >conftest.er1
6625 cat conftest.er1 >&5
6626 fi
6627 rm -f conftest.er1 conftest.err
6628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6629 test $ac_status = 0; }
6630done
6631
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6633$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006634if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006635 $as_echo_n "(cached) " >&6
6636else
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h. */
6639
6640int
6641main ()
6642{
6643#ifndef __GNUC__
6644 choke me
6645#endif
6646
6647 ;
6648 return 0;
6649}
6650_ACEOF
6651if ac_fn_cxx_try_compile "$LINENO"; then :
6652 ac_compiler_gnu=yes
6653else
6654 ac_compiler_gnu=no
6655fi
6656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6658
6659fi
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6661$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6662if test $ac_compiler_gnu = yes; then
6663 GXX=yes
6664else
6665 GXX=
6666fi
6667ac_test_CXXFLAGS=${CXXFLAGS+set}
6668ac_save_CXXFLAGS=$CXXFLAGS
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6670$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006671if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006672 $as_echo_n "(cached) " >&6
6673else
6674 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6675 ac_cxx_werror_flag=yes
6676 ac_cv_prog_cxx_g=no
6677 CXXFLAGS="-g"
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679/* end confdefs.h. */
6680
6681int
6682main ()
6683{
6684
6685 ;
6686 return 0;
6687}
6688_ACEOF
6689if ac_fn_cxx_try_compile "$LINENO"; then :
6690 ac_cv_prog_cxx_g=yes
6691else
6692 CXXFLAGS=""
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694/* end confdefs.h. */
6695
6696int
6697main ()
6698{
6699
6700 ;
6701 return 0;
6702}
6703_ACEOF
6704if ac_fn_cxx_try_compile "$LINENO"; then :
6705
6706else
6707 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6708 CXXFLAGS="-g"
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710/* end confdefs.h. */
6711
6712int
6713main ()
6714{
6715
6716 ;
6717 return 0;
6718}
6719_ACEOF
6720if ac_fn_cxx_try_compile "$LINENO"; then :
6721 ac_cv_prog_cxx_g=yes
6722fi
6723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724fi
6725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726fi
6727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6728 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6729fi
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6731$as_echo "$ac_cv_prog_cxx_g" >&6; }
6732if test "$ac_test_CXXFLAGS" = set; then
6733 CXXFLAGS=$ac_save_CXXFLAGS
6734elif test $ac_cv_prog_cxx_g = yes; then
6735 if test "$GXX" = yes; then
6736 CXXFLAGS="-g -O2"
6737 else
6738 CXXFLAGS="-g"
6739 fi
6740else
6741 if test "$GXX" = yes; then
6742 CXXFLAGS="-O2"
6743 else
6744 CXXFLAGS=
6745 fi
6746fi
6747ac_ext=c
6748ac_cpp='$CPP $CPPFLAGS'
6749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6751ac_compiler_gnu=$ac_cv_c_compiler_gnu
6752
cristy73bd4a52010-10-05 11:24:23 +00006753depcc="$CXX" am_compiler_list=
6754
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6756$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006757if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006758 $as_echo_n "(cached) " >&6
6759else
6760 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6761 # We make a subdir and do the tests there. Otherwise we can end up
6762 # making bogus files that we don't know about and never remove. For
6763 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006764 # making a dummy file named 'D' -- because '-MD' means "put the output
6765 # in D".
cristy7247bba2012-02-05 16:37:27 +00006766 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006767 mkdir conftest.dir
6768 # Copy depcomp to subdir because otherwise we won't find it if we're
6769 # using a relative directory.
6770 cp "$am_depcomp" conftest.dir
6771 cd conftest.dir
6772 # We will build objects and dependencies in a subdirectory because
6773 # it helps to detect inapplicable dependency modes. For instance
6774 # both Tru64's cc and ICC support -MD to output dependencies as a
6775 # side effect of compilation, but ICC will put the dependencies in
6776 # the current directory while Tru64 will put them in the object
6777 # directory.
6778 mkdir sub
6779
6780 am_cv_CXX_dependencies_compiler_type=none
6781 if test "$am_compiler_list" = ""; then
6782 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6783 fi
6784 am__universal=false
6785 case " $depcc " in #(
6786 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6787 esac
6788
6789 for depmode in $am_compiler_list; do
6790 # Setup a source with many dependencies, because some compilers
6791 # like to wrap large dependency lists on column 80 (with \), and
6792 # we should not choose a depcomp mode which is confused by this.
6793 #
6794 # We need to recreate these files for each test, as the compiler may
6795 # overwrite some of them when testing with obscure command lines.
6796 # This happens at least with the AIX C compiler.
6797 : > sub/conftest.c
6798 for i in 1 2 3 4 5 6; do
6799 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006800 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6801 # Solaris 10 /bin/sh.
6802 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006803 done
6804 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6805
cristyc0890a62012-07-19 00:18:20 +00006806 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006807 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006808 # handle '-M -o', and we need to detect this. Also, some Intel
6809 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006810 am__obj=sub/conftest.${OBJEXT-o}
6811 am__minus_obj="-o $am__obj"
6812 case $depmode in
6813 gcc)
6814 # This depmode causes a compiler race in universal mode.
6815 test "$am__universal" = false || continue
6816 ;;
6817 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006818 # After this tag, mechanisms are not by side-effect, so they'll
6819 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006820 if test "x$enable_dependency_tracking" = xyes; then
6821 continue
6822 else
6823 break
6824 fi
6825 ;;
cristy7247bba2012-02-05 16:37:27 +00006826 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006827 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006828 # not run yet. These depmodes are late enough in the game, and
6829 # so weak that their functioning should not be impacted.
6830 am__obj=conftest.${OBJEXT-o}
6831 am__minus_obj=
6832 ;;
6833 none) break ;;
6834 esac
6835 if depmode=$depmode \
6836 source=sub/conftest.c object=$am__obj \
6837 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6838 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6839 >/dev/null 2>conftest.err &&
6840 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6841 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6842 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6843 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6844 # icc doesn't choke on unknown options, it will just issue warnings
6845 # or remarks (even with -Werror). So we grep stderr for any message
6846 # that says an option was ignored or not supported.
6847 # When given -MP, icc 7.0 and 7.1 complain thusly:
6848 # icc: Command line warning: ignoring option '-M'; no argument required
6849 # The diagnosis changed in icc 8.0:
6850 # icc: Command line remark: option '-MP' not supported
6851 if (grep 'ignoring option' conftest.err ||
6852 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6853 am_cv_CXX_dependencies_compiler_type=$depmode
6854 break
6855 fi
6856 fi
6857 done
6858
6859 cd ..
6860 rm -rf conftest.dir
6861else
6862 am_cv_CXX_dependencies_compiler_type=none
6863fi
6864
6865fi
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6867$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6868CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6869
6870 if
6871 test "x$enable_dependency_tracking" != xno \
6872 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6873 am__fastdepCXX_TRUE=
6874 am__fastdepCXX_FALSE='#'
6875else
6876 am__fastdepCXX_TRUE='#'
6877 am__fastdepCXX_FALSE=
6878fi
6879
6880
cristy8b350f62009-11-15 23:12:43 +00006881 case $ac_cv_prog_cc_stdc in #(
6882 no) :
6883 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6884 *) :
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006886$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006887if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006888 $as_echo_n "(cached) " >&6
6889else
6890 ac_cv_prog_cc_c99=no
6891ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006893/* end confdefs.h. */
6894#include <stdarg.h>
6895#include <stdbool.h>
6896#include <stdlib.h>
6897#include <wchar.h>
6898#include <stdio.h>
6899
6900// Check varargs macros. These examples are taken from C99 6.10.3.5.
6901#define debug(...) fprintf (stderr, __VA_ARGS__)
6902#define showlist(...) puts (#__VA_ARGS__)
6903#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6904static void
6905test_varargs_macros (void)
6906{
6907 int x = 1234;
6908 int y = 5678;
6909 debug ("Flag");
6910 debug ("X = %d\n", x);
6911 showlist (The first, second, and third items.);
6912 report (x>y, "x is %d but y is %d", x, y);
6913}
6914
6915// Check long long types.
6916#define BIG64 18446744073709551615ull
6917#define BIG32 4294967295ul
6918#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6919#if !BIG_OK
6920 your preprocessor is broken;
6921#endif
6922#if BIG_OK
6923#else
6924 your preprocessor is broken;
6925#endif
6926static long long int bignum = -9223372036854775807LL;
6927static unsigned long long int ubignum = BIG64;
6928
6929struct incomplete_array
6930{
6931 int datasize;
6932 double data[];
6933};
6934
6935struct named_init {
6936 int number;
6937 const wchar_t *name;
6938 double average;
6939};
6940
6941typedef const char *ccp;
6942
6943static inline int
6944test_restrict (ccp restrict text)
6945{
6946 // See if C++-style comments work.
6947 // Iterate through items via the restricted pointer.
6948 // Also check for declarations in for loops.
6949 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6950 continue;
6951 return 0;
6952}
6953
6954// Check varargs and va_copy.
6955static void
6956test_varargs (const char *format, ...)
6957{
6958 va_list args;
6959 va_start (args, format);
6960 va_list args_copy;
6961 va_copy (args_copy, args);
6962
6963 const char *str;
6964 int number;
6965 float fnumber;
6966
6967 while (*format)
6968 {
6969 switch (*format++)
6970 {
6971 case 's': // string
6972 str = va_arg (args_copy, const char *);
6973 break;
6974 case 'd': // int
6975 number = va_arg (args_copy, int);
6976 break;
6977 case 'f': // float
6978 fnumber = va_arg (args_copy, double);
6979 break;
6980 default:
6981 break;
6982 }
6983 }
6984 va_end (args_copy);
6985 va_end (args);
6986}
6987
6988int
6989main ()
6990{
6991
6992 // Check bool.
6993 _Bool success = false;
6994
6995 // Check restrict.
6996 if (test_restrict ("String literal") == 0)
6997 success = true;
6998 char *restrict newvar = "Another string";
6999
7000 // Check varargs.
7001 test_varargs ("s, d' f .", "string", 65, 34.234);
7002 test_varargs_macros ();
7003
7004 // Check flexible array members.
7005 struct incomplete_array *ia =
7006 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7007 ia->datasize = 10;
7008 for (int i = 0; i < ia->datasize; ++i)
7009 ia->data[i] = i * 1.234;
7010
7011 // Check named initializers.
7012 struct named_init ni = {
7013 .number = 34,
7014 .name = L"Test wide string",
7015 .average = 543.34343,
7016 };
7017
7018 ni.number = 58;
7019
7020 int dynamic_array[ni.number];
7021 dynamic_array[ni.number - 1] = 543;
7022
7023 // work around unused variable warnings
7024 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7025 || dynamic_array[ni.number - 1] != 543);
7026
7027 ;
7028 return 0;
7029}
7030_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007031for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007032do
7033 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007034 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007035 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007036fi
cristy3ed852e2009-09-05 21:47:34 +00007037rm -f core conftest.err conftest.$ac_objext
7038 test "x$ac_cv_prog_cc_c99" != "xno" && break
7039done
7040rm -f conftest.$ac_ext
7041CC=$ac_save_CC
7042
7043fi
7044# AC_CACHE_VAL
7045case "x$ac_cv_prog_cc_c99" in
7046 x)
cristy8b350f62009-11-15 23:12:43 +00007047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007048$as_echo "none needed" >&6; } ;;
7049 xno)
cristy8b350f62009-11-15 23:12:43 +00007050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007051$as_echo "unsupported" >&6; } ;;
7052 *)
7053 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007055$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7056esac
cristy8b350f62009-11-15 23:12:43 +00007057if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007058 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7059else
cristy8b350f62009-11-15 23:12:43 +00007060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007061$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007062if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007063 $as_echo_n "(cached) " >&6
7064else
7065 ac_cv_prog_cc_c89=no
7066ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007068/* end confdefs.h. */
7069#include <stdarg.h>
7070#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007071struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007072/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7073struct buf { int x; };
7074FILE * (*rcsopen) (struct buf *, struct stat *, int);
7075static char *e (p, i)
7076 char **p;
7077 int i;
7078{
7079 return p[i];
7080}
7081static char *f (char * (*g) (char **, int), char **p, ...)
7082{
7083 char *s;
7084 va_list v;
7085 va_start (v,p);
7086 s = g (p, va_arg (v,int));
7087 va_end (v);
7088 return s;
7089}
7090
7091/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7092 function prototypes and stuff, but not '\xHH' hex character constants.
7093 These don't provoke an error unfortunately, instead are silently treated
7094 as 'x'. The following induces an error, until -std is added to get
7095 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7096 array size at least. It's necessary to write '\x00'==0 to get something
7097 that's true only with -std. */
7098int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7099
7100/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7101 inside strings and character constants. */
7102#define FOO(x) 'x'
7103int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7104
7105int test (int i, double x);
7106struct s1 {int (*f) (int a);};
7107struct s2 {int (*f) (double a);};
7108int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7109int argc;
7110char **argv;
7111int
7112main ()
7113{
7114return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7115 ;
7116 return 0;
7117}
7118_ACEOF
7119for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7120 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7121do
7122 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007123 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007124 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007125fi
cristy3ed852e2009-09-05 21:47:34 +00007126rm -f core conftest.err conftest.$ac_objext
7127 test "x$ac_cv_prog_cc_c89" != "xno" && break
7128done
7129rm -f conftest.$ac_ext
7130CC=$ac_save_CC
7131
7132fi
7133# AC_CACHE_VAL
7134case "x$ac_cv_prog_cc_c89" in
7135 x)
cristy8b350f62009-11-15 23:12:43 +00007136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007137$as_echo "none needed" >&6; } ;;
7138 xno)
cristy8b350f62009-11-15 23:12:43 +00007139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007140$as_echo "unsupported" >&6; } ;;
7141 *)
7142 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007144$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7145esac
cristy8b350f62009-11-15 23:12:43 +00007146if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007147 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7148else
7149 ac_cv_prog_cc_stdc=no
7150fi
7151
cristy3ed852e2009-09-05 21:47:34 +00007152fi
cristy3ed852e2009-09-05 21:47:34 +00007153 ;;
7154esac
cristy8b350f62009-11-15 23:12:43 +00007155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007156$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007157 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007158 $as_echo_n "(cached) " >&6
7159fi
7160
cristy8b350f62009-11-15 23:12:43 +00007161 case $ac_cv_prog_cc_stdc in #(
7162 no) :
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7164$as_echo "unsupported" >&6; } ;; #(
7165 '') :
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7167$as_echo "none needed" >&6; } ;; #(
7168 *) :
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007170$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7171esac
7172
cristy3ed852e2009-09-05 21:47:34 +00007173ac_ext=c
7174ac_cpp='$CPP $CPPFLAGS'
7175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7177ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007179$as_echo_n "checking how to run the C preprocessor... " >&6; }
7180# On Suns, sometimes $CPP names a directory.
7181if test -n "$CPP" && test -d "$CPP"; then
7182 CPP=
7183fi
7184if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007185 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007186 $as_echo_n "(cached) " >&6
7187else
7188 # Double quotes because CPP needs to be expanded
7189 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7190 do
7191 ac_preproc_ok=false
7192for ac_c_preproc_warn_flag in '' yes
7193do
7194 # Use a header file that comes with gcc, so configuring glibc
7195 # with a fresh cross-compiler works.
7196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7197 # <limits.h> exists even on freestanding compilers.
7198 # On the NeXT, cc -E runs the code through the compiler's parser,
7199 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007201/* end confdefs.h. */
7202#ifdef __STDC__
7203# include <limits.h>
7204#else
7205# include <assert.h>
7206#endif
7207 Syntax error
7208_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007209if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007210
cristy8b350f62009-11-15 23:12:43 +00007211else
cristy3ed852e2009-09-05 21:47:34 +00007212 # Broken: fails on valid input.
7213continue
7214fi
cristyda16f162011-02-19 23:52:17 +00007215rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007216
7217 # OK, works on sane cases. Now check whether nonexistent headers
7218 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007220/* end confdefs.h. */
7221#include <ac_nonexistent.h>
7222_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007223if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007224 # Broken: success on invalid input.
7225continue
7226else
cristy3ed852e2009-09-05 21:47:34 +00007227 # Passes both tests.
7228ac_preproc_ok=:
7229break
7230fi
cristyda16f162011-02-19 23:52:17 +00007231rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007232
7233done
7234# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007235rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007236if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007237 break
7238fi
7239
7240 done
7241 ac_cv_prog_CPP=$CPP
7242
7243fi
7244 CPP=$ac_cv_prog_CPP
7245else
7246 ac_cv_prog_CPP=$CPP
7247fi
cristy8b350f62009-11-15 23:12:43 +00007248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007249$as_echo "$CPP" >&6; }
7250ac_preproc_ok=false
7251for ac_c_preproc_warn_flag in '' yes
7252do
7253 # Use a header file that comes with gcc, so configuring glibc
7254 # with a fresh cross-compiler works.
7255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7256 # <limits.h> exists even on freestanding compilers.
7257 # On the NeXT, cc -E runs the code through the compiler's parser,
7258 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007260/* end confdefs.h. */
7261#ifdef __STDC__
7262# include <limits.h>
7263#else
7264# include <assert.h>
7265#endif
7266 Syntax error
7267_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007268if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007269
cristy8b350f62009-11-15 23:12:43 +00007270else
cristy3ed852e2009-09-05 21:47:34 +00007271 # Broken: fails on valid input.
7272continue
7273fi
cristyda16f162011-02-19 23:52:17 +00007274rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007275
7276 # OK, works on sane cases. Now check whether nonexistent headers
7277 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007279/* end confdefs.h. */
7280#include <ac_nonexistent.h>
7281_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007282if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007283 # Broken: success on invalid input.
7284continue
7285else
cristy3ed852e2009-09-05 21:47:34 +00007286 # Passes both tests.
7287ac_preproc_ok=:
7288break
7289fi
cristyda16f162011-02-19 23:52:17 +00007290rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007291
7292done
7293# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007294rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007295if $ac_preproc_ok; then :
7296
cristy3ed852e2009-09-05 21:47:34 +00007297else
cristy8b350f62009-11-15 23:12:43 +00007298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007300as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7301See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007302fi
7303
7304ac_ext=c
7305ac_cpp='$CPP $CPPFLAGS'
7306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7308ac_compiler_gnu=$ac_cv_c_compiler_gnu
7309
cristy73bd4a52010-10-05 11:24:23 +00007310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7311$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007312if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007313 $as_echo_n "(cached) " >&6
7314else
7315 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7316 for ac_i in 1 2 3 4 5 6 7; do
7317 ac_script="$ac_script$as_nl$ac_script"
7318 done
7319 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7320 { ac_script=; unset ac_script;}
7321 if test -z "$SED"; then
7322 ac_path_SED_found=false
7323 # Loop through the user's path and test for each of PROGNAME-LIST
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325for as_dir in $PATH
7326do
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
7329 for ac_prog in sed gsed; do
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007332 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007333# Check for GNU ac_path_SED and select it if it is found.
7334 # Check for GNU $ac_path_SED
7335case `"$ac_path_SED" --version 2>&1` in
7336*GNU*)
7337 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7338*)
7339 ac_count=0
7340 $as_echo_n 0123456789 >"conftest.in"
7341 while :
7342 do
7343 cat "conftest.in" "conftest.in" >"conftest.tmp"
7344 mv "conftest.tmp" "conftest.in"
7345 cp "conftest.in" "conftest.nl"
7346 $as_echo '' >> "conftest.nl"
7347 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7349 as_fn_arith $ac_count + 1 && ac_count=$as_val
7350 if test $ac_count -gt ${ac_path_SED_max-0}; then
7351 # Best one so far, save it but keep looking for a better one
7352 ac_cv_path_SED="$ac_path_SED"
7353 ac_path_SED_max=$ac_count
7354 fi
7355 # 10*(2^10) chars as input seems more than enough
7356 test $ac_count -gt 10 && break
7357 done
7358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7359esac
7360
7361 $ac_path_SED_found && break 3
7362 done
7363 done
7364 done
7365IFS=$as_save_IFS
7366 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007367 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007368 fi
7369else
7370 ac_cv_path_SED=$SED
7371fi
7372
7373fi
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7375$as_echo "$ac_cv_path_SED" >&6; }
7376 SED="$ac_cv_path_SED"
7377 rm -f conftest.sed
7378
7379test -z "$SED" && SED=sed
7380Xsed="$SED -e 1s/^X//"
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7393$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007394if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007395 $as_echo_n "(cached) " >&6
7396else
7397 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7398 then ac_cv_path_FGREP="$GREP -F"
7399 else
7400 if test -z "$FGREP"; then
7401 ac_path_FGREP_found=false
7402 # Loop through the user's path and test for each of PROGNAME-LIST
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7405do
7406 IFS=$as_save_IFS
7407 test -z "$as_dir" && as_dir=.
7408 for ac_prog in fgrep; do
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007411 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007412# Check for GNU ac_path_FGREP and select it if it is found.
7413 # Check for GNU $ac_path_FGREP
7414case `"$ac_path_FGREP" --version 2>&1` in
7415*GNU*)
7416 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7417*)
7418 ac_count=0
7419 $as_echo_n 0123456789 >"conftest.in"
7420 while :
7421 do
7422 cat "conftest.in" "conftest.in" >"conftest.tmp"
7423 mv "conftest.tmp" "conftest.in"
7424 cp "conftest.in" "conftest.nl"
7425 $as_echo 'FGREP' >> "conftest.nl"
7426 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7428 as_fn_arith $ac_count + 1 && ac_count=$as_val
7429 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7430 # Best one so far, save it but keep looking for a better one
7431 ac_cv_path_FGREP="$ac_path_FGREP"
7432 ac_path_FGREP_max=$ac_count
7433 fi
7434 # 10*(2^10) chars as input seems more than enough
7435 test $ac_count -gt 10 && break
7436 done
7437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7438esac
7439
7440 $ac_path_FGREP_found && break 3
7441 done
7442 done
7443 done
7444IFS=$as_save_IFS
7445 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007446 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007447 fi
7448else
7449 ac_cv_path_FGREP=$FGREP
7450fi
7451
7452 fi
7453fi
7454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7455$as_echo "$ac_cv_path_FGREP" >&6; }
7456 FGREP="$ac_cv_path_FGREP"
7457
7458
7459test -z "$GREP" && GREP=grep
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
cristy0c60a692010-11-04 01:09:47 +00007477ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7478ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7479ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7480
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7482$as_echo_n "checking how to print strings... " >&6; }
7483# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007484if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007485 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7486 ECHO='print -r --'
7487elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7488 ECHO='printf %s\n'
7489else
7490 # Use this function as a fallback that always works.
7491 func_fallback_echo ()
7492 {
7493 eval 'cat <<_LTECHO_EOF
7494$1
7495_LTECHO_EOF'
7496 }
7497 ECHO='func_fallback_echo'
7498fi
7499
7500# func_echo_all arg...
7501# Invoke $ECHO with all args, space-separated.
7502func_echo_all ()
7503{
7504 $ECHO ""
7505}
7506
7507case "$ECHO" in
7508 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7509$as_echo "printf" >&6; } ;;
7510 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7511$as_echo "print -r" >&6; } ;;
7512 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7513$as_echo "cat" >&6; } ;;
7514esac
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
cristy73bd4a52010-10-05 11:24:23 +00007529
7530
7531# Check whether --with-gnu-ld was given.
7532if test "${with_gnu_ld+set}" = set; then :
7533 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7534else
7535 with_gnu_ld=no
7536fi
7537
7538ac_prog=ld
7539if test "$GCC" = yes; then
7540 # Check if gcc -print-prog-name=ld gives a path.
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7542$as_echo_n "checking for ld used by $CC... " >&6; }
7543 case $host in
7544 *-*-mingw*)
7545 # gcc leaves a trailing carriage return which upsets mingw
7546 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7547 *)
7548 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7549 esac
7550 case $ac_prog in
7551 # Accept absolute paths.
7552 [\\/]* | ?:[\\/]*)
7553 re_direlt='/[^/][^/]*/\.\./'
7554 # Canonicalize the pathname of ld
7555 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7556 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7557 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7558 done
7559 test -z "$LD" && LD="$ac_prog"
7560 ;;
7561 "")
7562 # If it fails, then pretend we aren't using GCC.
7563 ac_prog=ld
7564 ;;
7565 *)
7566 # If it is relative, then search for the first ld in PATH.
7567 with_gnu_ld=unknown
7568 ;;
7569 esac
7570elif test "$with_gnu_ld" = yes; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7572$as_echo_n "checking for GNU ld... " >&6; }
7573else
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7575$as_echo_n "checking for non-GNU ld... " >&6; }
7576fi
cristyda16f162011-02-19 23:52:17 +00007577if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007578 $as_echo_n "(cached) " >&6
7579else
7580 if test -z "$LD"; then
7581 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7582 for ac_dir in $PATH; do
7583 IFS="$lt_save_ifs"
7584 test -z "$ac_dir" && ac_dir=.
7585 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7586 lt_cv_path_LD="$ac_dir/$ac_prog"
7587 # Check to see if the program is GNU ld. I'd rather use --version,
7588 # but apparently some variants of GNU ld only accept -v.
7589 # Break only if it was the GNU/non-GNU ld that we prefer.
7590 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7591 *GNU* | *'with BFD'*)
7592 test "$with_gnu_ld" != no && break
7593 ;;
7594 *)
7595 test "$with_gnu_ld" != yes && break
7596 ;;
7597 esac
7598 fi
7599 done
7600 IFS="$lt_save_ifs"
7601else
7602 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7603fi
7604fi
7605
7606LD="$lt_cv_path_LD"
7607if test -n "$LD"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7609$as_echo "$LD" >&6; }
7610else
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612$as_echo "no" >&6; }
7613fi
cristy98dddb52010-11-04 00:30:15 +00007614test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7616$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007617if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007618 $as_echo_n "(cached) " >&6
7619else
7620 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7621case `$LD -v 2>&1 </dev/null` in
7622*GNU* | *'with BFD'*)
7623 lt_cv_prog_gnu_ld=yes
7624 ;;
7625*)
7626 lt_cv_prog_gnu_ld=no
7627 ;;
7628esac
7629fi
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7631$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7632with_gnu_ld=$lt_cv_prog_gnu_ld
7633
7634
7635
7636
7637
7638
7639
7640
7641
cristy3ed852e2009-09-05 21:47:34 +00007642
cristy837d6dc2010-02-27 01:16:57 +00007643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7644$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007645if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007646 $as_echo_n "(cached) " >&6
7647else
7648 ac_cv_prog_cc_c99=no
7649ac_save_CC=$CC
7650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651/* end confdefs.h. */
7652#include <stdarg.h>
7653#include <stdbool.h>
7654#include <stdlib.h>
7655#include <wchar.h>
7656#include <stdio.h>
7657
7658// Check varargs macros. These examples are taken from C99 6.10.3.5.
7659#define debug(...) fprintf (stderr, __VA_ARGS__)
7660#define showlist(...) puts (#__VA_ARGS__)
7661#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7662static void
7663test_varargs_macros (void)
7664{
7665 int x = 1234;
7666 int y = 5678;
7667 debug ("Flag");
7668 debug ("X = %d\n", x);
7669 showlist (The first, second, and third items.);
7670 report (x>y, "x is %d but y is %d", x, y);
7671}
7672
7673// Check long long types.
7674#define BIG64 18446744073709551615ull
7675#define BIG32 4294967295ul
7676#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7677#if !BIG_OK
7678 your preprocessor is broken;
7679#endif
7680#if BIG_OK
7681#else
7682 your preprocessor is broken;
7683#endif
7684static long long int bignum = -9223372036854775807LL;
7685static unsigned long long int ubignum = BIG64;
7686
7687struct incomplete_array
7688{
7689 int datasize;
7690 double data[];
7691};
7692
7693struct named_init {
7694 int number;
7695 const wchar_t *name;
7696 double average;
7697};
7698
7699typedef const char *ccp;
7700
7701static inline int
7702test_restrict (ccp restrict text)
7703{
7704 // See if C++-style comments work.
7705 // Iterate through items via the restricted pointer.
7706 // Also check for declarations in for loops.
7707 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7708 continue;
7709 return 0;
7710}
7711
7712// Check varargs and va_copy.
7713static void
7714test_varargs (const char *format, ...)
7715{
7716 va_list args;
7717 va_start (args, format);
7718 va_list args_copy;
7719 va_copy (args_copy, args);
7720
7721 const char *str;
7722 int number;
7723 float fnumber;
7724
7725 while (*format)
7726 {
7727 switch (*format++)
7728 {
7729 case 's': // string
7730 str = va_arg (args_copy, const char *);
7731 break;
7732 case 'd': // int
7733 number = va_arg (args_copy, int);
7734 break;
7735 case 'f': // float
7736 fnumber = va_arg (args_copy, double);
7737 break;
7738 default:
7739 break;
7740 }
7741 }
7742 va_end (args_copy);
7743 va_end (args);
7744}
7745
7746int
7747main ()
7748{
7749
7750 // Check bool.
7751 _Bool success = false;
7752
7753 // Check restrict.
7754 if (test_restrict ("String literal") == 0)
7755 success = true;
7756 char *restrict newvar = "Another string";
7757
7758 // Check varargs.
7759 test_varargs ("s, d' f .", "string", 65, 34.234);
7760 test_varargs_macros ();
7761
7762 // Check flexible array members.
7763 struct incomplete_array *ia =
7764 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7765 ia->datasize = 10;
7766 for (int i = 0; i < ia->datasize; ++i)
7767 ia->data[i] = i * 1.234;
7768
7769 // Check named initializers.
7770 struct named_init ni = {
7771 .number = 34,
7772 .name = L"Test wide string",
7773 .average = 543.34343,
7774 };
7775
7776 ni.number = 58;
7777
7778 int dynamic_array[ni.number];
7779 dynamic_array[ni.number - 1] = 543;
7780
7781 // work around unused variable warnings
7782 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7783 || dynamic_array[ni.number - 1] != 543);
7784
7785 ;
7786 return 0;
7787}
7788_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007789for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007790do
7791 CC="$ac_save_CC $ac_arg"
7792 if ac_fn_c_try_compile "$LINENO"; then :
7793 ac_cv_prog_cc_c99=$ac_arg
7794fi
7795rm -f core conftest.err conftest.$ac_objext
7796 test "x$ac_cv_prog_cc_c99" != "xno" && break
7797done
7798rm -f conftest.$ac_ext
7799CC=$ac_save_CC
7800
7801fi
7802# AC_CACHE_VAL
7803case "x$ac_cv_prog_cc_c99" in
7804 x)
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7806$as_echo "none needed" >&6; } ;;
7807 xno)
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7809$as_echo "unsupported" >&6; } ;;
7810 *)
7811 CC="$CC $ac_cv_prog_cc_c99"
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7813$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7814esac
7815if test "x$ac_cv_prog_cc_c99" != xno; then :
7816
7817fi
7818
7819
cristy73bd4a52010-10-05 11:24:23 +00007820if test "x$CC" != xcc; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7822$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7823else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7825$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7826fi
7827set dummy $CC; ac_cc=`$as_echo "$2" |
7828 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007829if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007830 $as_echo_n "(cached) " >&6
7831else
cristy73bd4a52010-10-05 11:24:23 +00007832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833/* end confdefs.h. */
7834
7835int
7836main ()
7837{
7838
7839 ;
7840 return 0;
7841}
7842_ACEOF
7843# Make sure it works both with $CC and with simple cc.
7844# We do the test twice because some compilers refuse to overwrite an
7845# existing .o file with -o, though they will create one.
7846ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7847rm -f conftest2.*
7848if { { case "(($ac_try" in
7849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850 *) ac_try_echo=$ac_try;;
7851esac
7852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7853$as_echo "$ac_try_echo"; } >&5
7854 (eval "$ac_try") 2>&5
7855 ac_status=$?
7856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7857 test $ac_status = 0; } &&
7858 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 *) ac_try_echo=$ac_try;;
7861esac
7862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7863$as_echo "$ac_try_echo"; } >&5
7864 (eval "$ac_try") 2>&5
7865 ac_status=$?
7866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7867 test $ac_status = 0; };
7868then
7869 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7870 if test "x$CC" != xcc; then
7871 # Test first that cc exists at all.
7872 if { ac_try='cc -c conftest.$ac_ext >&5'
7873 { { case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7876esac
7877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7878$as_echo "$ac_try_echo"; } >&5
7879 (eval "$ac_try") 2>&5
7880 ac_status=$?
7881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7882 test $ac_status = 0; }; }; then
7883 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7884 rm -f conftest2.*
7885 if { { case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7888esac
7889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7890$as_echo "$ac_try_echo"; } >&5
7891 (eval "$ac_try") 2>&5
7892 ac_status=$?
7893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7894 test $ac_status = 0; } &&
7895 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7897 *) ac_try_echo=$ac_try;;
7898esac
7899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7900$as_echo "$ac_try_echo"; } >&5
7901 (eval "$ac_try") 2>&5
7902 ac_status=$?
7903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7904 test $ac_status = 0; };
7905 then
7906 # cc works too.
7907 :
7908 else
7909 # cc exists but doesn't like -o.
7910 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7911 fi
7912 fi
7913 fi
7914else
7915 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7916fi
7917rm -f core conftest*
7918
7919fi
7920if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7922$as_echo "yes" >&6; }
7923else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925$as_echo "no" >&6; }
7926
7927$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7928
7929fi
7930
7931# FIXME: we rely on the cache variable name because
7932# there is no other way.
7933set dummy $CC
7934am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7935eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7936if test "$am_t" != yes; then
7937 # Losing compiler, so override with the script.
7938 # FIXME: It is wrong to rewrite CC.
7939 # But if we don't then we get into trouble of one sort or another.
7940 # A longer-term fix would be to have automake use am__CC in this case,
7941 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7942 CC="$am_aux_dir/compile $CC"
7943fi
7944
7945
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7947$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007948if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007949 $as_echo_n "(cached) " >&6
7950else
7951 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007952 ac_ext=c
7953ac_cpp='$CPP $CPPFLAGS'
7954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7956ac_compiler_gnu=$ac_cv_c_compiler_gnu
7957
7958 ac_save_CFLAGS="$CFLAGS"
7959for 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" #
7960do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962/* end confdefs.h. */
7963
7964int
7965main ()
7966{
cristy24fc1fe2010-10-23 21:13:01 +00007967
cristy73bd4a52010-10-05 11:24:23 +00007968 ;
7969 return 0;
7970}
7971_ACEOF
7972if ac_fn_c_try_compile "$LINENO"; then :
7973 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7974fi
7975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976done
7977 CFLAGS="$ac_save_CFLAGS"
7978 ac_ext=c
7979ac_cpp='$CPP $CPPFLAGS'
7980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7982ac_compiler_gnu=$ac_cv_c_compiler_gnu
7983
7984
7985fi
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7987$as_echo "$ac_cv_cflags_warn_all" >&6; }
7988case ".$ac_cv_cflags_warn_all" in
7989 .ok|.ok,*) ;;
7990 .|.no|.no,*)
7991 ;;
7992 *)
7993 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7994 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7995 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7996 ac_status=$?
7997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7998 test $ac_status = 0; }
7999 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8000 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8001 ac_status=$?
8002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8003 test $ac_status = 0; }
8004 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8005 fi
8006 ;;
nicolas6237c462010-10-05 06:11:49 +00008007esac
cristy3ed852e2009-09-05 21:47:34 +00008008
cristy016e8b82012-12-26 12:11:06 +00008009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8010$as_echo_n "checking for C compiler vendor... " >&6; }
8011if ${ax_cv_c_compiler_vendor+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013else
8014 # note: don't check for gcc first since some other compilers define __GNUC__
8015 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8016 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8017 pathscale: __PATHCC__,__PATHSCALE__
8018 clang: __clang__
8019 gnu: __GNUC__
8020 sun: __SUNPRO_C,__SUNPRO_CC
8021 hp: __HP_cc,__HP_aCC
8022 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8023 borland: __BORLANDC__,__TURBOC__
8024 comeau: __COMO__
8025 cray: _CRAYC
8026 kai: __KCC
8027 lcc: __LCC__
8028 sgi: __sgi,sgi
8029 microsoft: _MSC_VER
8030 metrowerks: __MWERKS__
8031 watcom: __WATCOMC__
8032 portland: __PGI
8033 unknown: UNKNOWN"
8034 for ventest in $vendors; do
8035 case $ventest in
8036 *:) vendor=$ventest; continue ;;
8037 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8038 esac
8039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040/* end confdefs.h. */
8041
8042int
8043main ()
8044{
8045
8046 #if !($vencpp)
8047 thisisanerror;
8048 #endif
8049
8050 ;
8051 return 0;
8052}
8053_ACEOF
8054if ac_fn_c_try_compile "$LINENO"; then :
8055 break
8056fi
8057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058 done
8059 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8060
8061fi
8062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8063$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8064
cristya0b81c32010-01-22 02:54:33 +00008065
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8067$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8068set x ${MAKE-make}
8069ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008070if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008071 $as_echo_n "(cached) " >&6
8072else
8073 cat >conftest.make <<\_ACEOF
8074SHELL = /bin/sh
8075all:
8076 @echo '@@@%%%=$(MAKE)=@@@%%%'
8077_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008078# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008079case `${MAKE-make} -f conftest.make 2>/dev/null` in
8080 *@@@%%%=?*=@@@%%%*)
8081 eval ac_cv_prog_make_${ac_make}_set=yes;;
8082 *)
8083 eval ac_cv_prog_make_${ac_make}_set=no;;
8084esac
8085rm -f conftest.make
8086fi
8087if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8089$as_echo "yes" >&6; }
8090 SET_MAKE=
8091else
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093$as_echo "no" >&6; }
8094 SET_MAKE="MAKE=${MAKE-make}"
8095fi
8096
cristy8b350f62009-11-15 23:12:43 +00008097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008098$as_echo_n "checking whether ln -s works... " >&6; }
8099LN_S=$as_ln_s
8100if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008102$as_echo "yes" >&6; }
8103else
cristy8b350f62009-11-15 23:12:43 +00008104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008105$as_echo "no, using $LN_S" >&6; }
8106fi
8107
cristy8d0ff762013-03-10 20:33:28 +00008108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8109$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8110if ${ac_cv_path_SED+:} false; then :
8111 $as_echo_n "(cached) " >&6
8112else
8113 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8114 for ac_i in 1 2 3 4 5 6 7; do
8115 ac_script="$ac_script$as_nl$ac_script"
8116 done
8117 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8118 { ac_script=; unset ac_script;}
8119 if test -z "$SED"; then
8120 ac_path_SED_found=false
8121 # Loop through the user's path and test for each of PROGNAME-LIST
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123for as_dir in $PATH
8124do
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
8127 for ac_prog in sed gsed; do
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8130 as_fn_executable_p "$ac_path_SED" || continue
8131# Check for GNU ac_path_SED and select it if it is found.
8132 # Check for GNU $ac_path_SED
8133case `"$ac_path_SED" --version 2>&1` in
8134*GNU*)
8135 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8136*)
8137 ac_count=0
8138 $as_echo_n 0123456789 >"conftest.in"
8139 while :
8140 do
8141 cat "conftest.in" "conftest.in" >"conftest.tmp"
8142 mv "conftest.tmp" "conftest.in"
8143 cp "conftest.in" "conftest.nl"
8144 $as_echo '' >> "conftest.nl"
8145 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8147 as_fn_arith $ac_count + 1 && ac_count=$as_val
8148 if test $ac_count -gt ${ac_path_SED_max-0}; then
8149 # Best one so far, save it but keep looking for a better one
8150 ac_cv_path_SED="$ac_path_SED"
8151 ac_path_SED_max=$ac_count
8152 fi
8153 # 10*(2^10) chars as input seems more than enough
8154 test $ac_count -gt 10 && break
8155 done
8156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8157esac
8158
8159 $ac_path_SED_found && break 3
8160 done
8161 done
8162 done
8163IFS=$as_save_IFS
8164 if test -z "$ac_cv_path_SED"; then
8165 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8166 fi
8167else
8168 ac_cv_path_SED=$SED
8169fi
8170
8171fi
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8173$as_echo "$ac_cv_path_SED" >&6; }
8174 SED="$ac_cv_path_SED"
8175 rm -f conftest.sed
8176
cristybc556452012-08-17 19:44:03 +00008177for ac_prog in gawk mawk nawk awk
8178do
8179 # Extract the first word of "$ac_prog", so it can be a program name with args.
8180set dummy $ac_prog; ac_word=$2
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182$as_echo_n "checking for $ac_word... " >&6; }
8183if ${ac_cv_prog_AWK+:} false; then :
8184 $as_echo_n "(cached) " >&6
8185else
8186 if test -n "$AWK"; then
8187 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8188else
8189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190for as_dir in $PATH
8191do
8192 IFS=$as_save_IFS
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8196 ac_cv_prog_AWK="$ac_prog"
8197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 break 2
8199 fi
8200done
8201 done
8202IFS=$as_save_IFS
8203
8204fi
8205fi
8206AWK=$ac_cv_prog_AWK
8207if test -n "$AWK"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8209$as_echo "$AWK" >&6; }
8210else
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212$as_echo "no" >&6; }
8213fi
8214
8215
8216 test -n "$AWK" && break
8217done
8218
cristy73bd4a52010-10-05 11:24:23 +00008219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8220$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8221
8222# Check whether --with-dmalloc was given.
8223if test "${with_dmalloc+set}" = set; then :
8224 withval=$with_dmalloc; if test "$withval" = yes; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8226$as_echo "yes" >&6; }
8227
8228$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8229
8230 LIBS="$LIBS -ldmalloc"
8231 LDFLAGS="$LDFLAGS -g"
8232else
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234$as_echo "no" >&6; }
8235fi
8236else
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238$as_echo "no" >&6; }
8239fi
8240
8241
8242
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8244$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008245if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008246 $as_echo_n "(cached) " >&6
8247else
8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249/* end confdefs.h. */
8250#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008251 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008252 static void
8253 foo(void) {
8254 exit(1);
8255 }
8256
8257int
8258main ()
8259{
8260
8261 ;
8262 return 0;
8263}
8264_ACEOF
8265if ac_fn_c_try_compile "$LINENO"; then :
8266 ax_cv___attribute__=yes
8267else
8268 ax_cv___attribute__=no
8269
8270fi
8271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8272
8273fi
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8275$as_echo "$ax_cv___attribute__" >&6; }
8276 if test "$ax_cv___attribute__" = "yes"; then
8277
8278$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8279
8280 fi
8281
8282
8283
cristy37110d62012-03-01 18:38:20 +00008284
8285
8286# Check whether --with-gcc-arch was given.
8287if test "${with_gcc_arch+set}" = set; then :
8288 withval=$with_gcc_arch; ax_gcc_arch=$withval
8289else
cristya32d1812012-03-02 19:24:21 +00008290 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008291fi
8292
8293
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8295$as_echo_n "checking for gcc architecture flag... " >&6; }
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8297$as_echo "" >&6; }
8298if ${ax_cv_gcc_archflag+:} false; then :
8299 $as_echo_n "(cached) " >&6
8300else
8301
8302ax_cv_gcc_archflag="unknown"
8303
8304if test "$GCC" = yes; then
8305
8306if test "x$ax_gcc_arch" = xyes; then
8307ax_gcc_arch=""
8308if test "$cross_compiling" = no; then
8309case $host_cpu in
8310 i[3456]86*|x86_64*) # use cpuid codes
8311
8312ac_ext=c
8313ac_cpp='$CPP $CPPFLAGS'
8314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8316ac_compiler_gnu=$ac_cv_c_compiler_gnu
8317
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8319$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8320if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322else
8323 if test "$cross_compiling" = yes; then :
8324 ax_cv_gcc_x86_cpuid_0=unknown
8325else
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h. */
8328#include <stdio.h>
8329int
8330main ()
8331{
8332
8333 int op = 0, eax, ebx, ecx, edx;
8334 FILE *f;
8335 __asm__("cpuid"
8336 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8337 : "a" (op));
8338 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8339 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8340 fclose(f);
8341 return 0;
8342
8343 ;
8344 return 0;
8345}
8346_ACEOF
8347if ac_fn_c_try_run "$LINENO"; then :
8348 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8349else
8350 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8351fi
8352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8353 conftest.$ac_objext conftest.beam conftest.$ac_ext
8354fi
8355
8356fi
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8358$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8359ac_ext=c
8360ac_cpp='$CPP $CPPFLAGS'
8361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8363ac_compiler_gnu=$ac_cv_c_compiler_gnu
8364
8365
8366
8367ac_ext=c
8368ac_cpp='$CPP $CPPFLAGS'
8369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8371ac_compiler_gnu=$ac_cv_c_compiler_gnu
8372
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8374$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8375if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8376 $as_echo_n "(cached) " >&6
8377else
8378 if test "$cross_compiling" = yes; then :
8379 ax_cv_gcc_x86_cpuid_1=unknown
8380else
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382/* end confdefs.h. */
8383#include <stdio.h>
8384int
8385main ()
8386{
8387
8388 int op = 1, eax, ebx, ecx, edx;
8389 FILE *f;
8390 __asm__("cpuid"
8391 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8392 : "a" (op));
8393 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8394 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8395 fclose(f);
8396 return 0;
8397
8398 ;
8399 return 0;
8400}
8401_ACEOF
8402if ac_fn_c_try_run "$LINENO"; then :
8403 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8404else
8405 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8406fi
8407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8408 conftest.$ac_objext conftest.beam conftest.$ac_ext
8409fi
8410
8411fi
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8413$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8414ac_ext=c
8415ac_cpp='$CPP $CPPFLAGS'
8416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8418ac_compiler_gnu=$ac_cv_c_compiler_gnu
8419
8420
8421 case $ax_cv_gcc_x86_cpuid_0 in
8422 *:756e6547:*:*) # Intel
8423 case $ax_cv_gcc_x86_cpuid_1 in
8424 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8425 *5??:*:*:*) ax_gcc_arch=pentium ;;
8426 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8427 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8428 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8429 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8430 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8431 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8432 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8433 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8434 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8435 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8436 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8437 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8438 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8439 case $host_cpu in
8440 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8441 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8442 esac ;;
8443 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8444 esac ;;
8445 *:68747541:*:*) # AMD
8446 case $ax_cv_gcc_x86_cpuid_1 in
8447 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8448 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8449 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8450 *60?:*:*:*) ax_gcc_arch=k7 ;;
8451 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8452 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8453 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8454 *6[68a]?:*:*:*)
8455
8456ac_ext=c
8457ac_cpp='$CPP $CPPFLAGS'
8458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8460ac_compiler_gnu=$ac_cv_c_compiler_gnu
8461
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8463$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8464if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8465 $as_echo_n "(cached) " >&6
8466else
8467 if test "$cross_compiling" = yes; then :
8468 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8469else
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471/* end confdefs.h. */
8472#include <stdio.h>
8473int
8474main ()
8475{
8476
8477 int op = 0x80000006, eax, ebx, ecx, edx;
8478 FILE *f;
8479 __asm__("cpuid"
8480 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8481 : "a" (op));
8482 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8483 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8484 fclose(f);
8485 return 0;
8486
8487 ;
8488 return 0;
8489}
8490_ACEOF
8491if ac_fn_c_try_run "$LINENO"; then :
8492 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8493else
8494 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8495fi
8496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8497 conftest.$ac_objext conftest.beam conftest.$ac_ext
8498fi
8499
8500fi
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8502$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8503ac_ext=c
8504ac_cpp='$CPP $CPPFLAGS'
8505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8507ac_compiler_gnu=$ac_cv_c_compiler_gnu
8508
8509 # L2 cache size
8510 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8511 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8512 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8513 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8514 esac ;;
8515 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8516 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8517 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8518 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8519 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8520 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8521 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8522 esac ;;
8523 *:746e6543:*:*) # IDT
8524 case $ax_cv_gcc_x86_cpuid_1 in
8525 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8526 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8527 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8528 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8529 esac ;;
8530 esac
8531 if test x"$ax_gcc_arch" = x; then # fallback
8532 case $host_cpu in
8533 i586*) ax_gcc_arch=pentium ;;
8534 i686*) ax_gcc_arch=pentiumpro ;;
8535 esac
8536 fi
8537 ;;
8538
8539 sparc*)
8540 # Extract the first word of "prtdiag", so it can be a program name with args.
8541set dummy prtdiag; ac_word=$2
8542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543$as_echo_n "checking for $ac_word... " >&6; }
8544if ${ac_cv_path_PRTDIAG+:} false; then :
8545 $as_echo_n "(cached) " >&6
8546else
8547 case $PRTDIAG in
8548 [\\/]* | ?:[\\/]*)
8549 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8550 ;;
8551 *)
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8554for as_dir in $as_dummy
8555do
8556 IFS=$as_save_IFS
8557 test -z "$as_dir" && as_dir=.
8558 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008560 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562 break 2
8563 fi
8564done
8565 done
8566IFS=$as_save_IFS
8567
8568 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8569 ;;
8570esac
8571fi
8572PRTDIAG=$ac_cv_path_PRTDIAG
8573if test -n "$PRTDIAG"; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8575$as_echo "$PRTDIAG" >&6; }
8576else
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578$as_echo "no" >&6; }
8579fi
8580
8581
8582 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`
8583 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8584 case $cputype in
8585 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8586 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8587 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8588 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8589 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8590 *cypress*) ax_gcc_arch=cypress ;;
8591 esac ;;
8592
8593 alphaev5) ax_gcc_arch=ev5 ;;
8594 alphaev56) ax_gcc_arch=ev56 ;;
8595 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8596 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8597 alphaev6) ax_gcc_arch=ev6 ;;
8598 alphaev67) ax_gcc_arch=ev67 ;;
8599 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8600 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8601 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8602 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8603
8604 powerpc*)
8605 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`
8606 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8607 case $cputype in
8608 *750*) ax_gcc_arch="750 G3" ;;
8609 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8610 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8611 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8612 *970*) ax_gcc_arch="970 G5 power4";;
8613 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8614 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8615 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8616 *) ax_gcc_arch=$cputype ;;
8617 esac
8618 ax_gcc_arch="$ax_gcc_arch powerpc"
8619 ;;
8620esac
8621fi # not cross-compiling
8622fi # guess arch
8623
8624if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8625for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008626 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008627 flags="-mtune=$arch"
8628 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8629 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8630 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8631 else
8632 flags="-march=$arch -mcpu=$arch -m$arch"
8633 fi
8634 for flag in $flags; do
8635 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8637$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8638if eval \${$as_CACHEVAR+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640else
8641
8642 ax_check_save_flags=$CFLAGS
8643 CFLAGS="$CFLAGS $flag"
8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645/* end confdefs.h. */
8646
8647int
8648main ()
8649{
8650
8651 ;
8652 return 0;
8653}
8654_ACEOF
8655if ac_fn_c_try_compile "$LINENO"; then :
8656 eval "$as_CACHEVAR=yes"
8657else
8658 eval "$as_CACHEVAR=no"
8659fi
8660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661 CFLAGS=$ax_check_save_flags
8662fi
8663eval ac_res=\$$as_CACHEVAR
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8665$as_echo "$ac_res" >&6; }
8666if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8667 ax_cv_gcc_archflag=$flag; break
8668else
8669 :
8670fi
8671
8672 done
8673 test "x$ax_cv_gcc_archflag" = xunknown || break
8674done
8675fi
8676
8677fi # $GCC=yes
8678
8679fi
8680
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8682$as_echo_n "checking for gcc architecture flag... " >&6; }
8683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8684$as_echo "$ax_cv_gcc_archflag" >&6; }
8685if test "x$ax_cv_gcc_archflag" = xunknown; then
8686 :
8687else
8688 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8689fi
8690
8691
8692
cristy73bd4a52010-10-05 11:24:23 +00008693if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8694 if test -n "$ac_tool_prefix"; then
8695 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8696set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008699if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008700 $as_echo_n "(cached) " >&6
8701else
8702 case $PKG_CONFIG in
8703 [\\/]* | ?:[\\/]*)
8704 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8705 ;;
8706 *)
8707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708for as_dir in $PATH
8709do
8710 IFS=$as_save_IFS
8711 test -z "$as_dir" && as_dir=.
8712 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008714 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716 break 2
8717 fi
8718done
8719 done
8720IFS=$as_save_IFS
8721
8722 ;;
8723esac
8724fi
8725PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8726if test -n "$PKG_CONFIG"; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8728$as_echo "$PKG_CONFIG" >&6; }
8729else
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731$as_echo "no" >&6; }
8732fi
8733
8734
8735fi
8736if test -z "$ac_cv_path_PKG_CONFIG"; then
8737 ac_pt_PKG_CONFIG=$PKG_CONFIG
8738 # Extract the first word of "pkg-config", so it can be a program name with args.
8739set dummy pkg-config; ac_word=$2
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008742if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008743 $as_echo_n "(cached) " >&6
8744else
8745 case $ac_pt_PKG_CONFIG in
8746 [\\/]* | ?:[\\/]*)
8747 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8748 ;;
8749 *)
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751for as_dir in $PATH
8752do
8753 IFS=$as_save_IFS
8754 test -z "$as_dir" && as_dir=.
8755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008757 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8759 break 2
8760 fi
8761done
8762 done
8763IFS=$as_save_IFS
8764
8765 ;;
8766esac
8767fi
8768ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8769if test -n "$ac_pt_PKG_CONFIG"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8771$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8772else
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774$as_echo "no" >&6; }
8775fi
8776
8777 if test "x$ac_pt_PKG_CONFIG" = x; then
8778 PKG_CONFIG=""
8779 else
8780 case $cross_compiling:$ac_tool_warned in
8781yes:)
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8784ac_tool_warned=yes ;;
8785esac
8786 PKG_CONFIG=$ac_pt_PKG_CONFIG
8787 fi
8788else
8789 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8790fi
8791
8792fi
8793if test -n "$PKG_CONFIG"; then
8794 _pkg_min_version=0.9.0
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8796$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8797 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8799$as_echo "yes" >&6; }
8800 else
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802$as_echo "no" >&6; }
8803 PKG_CONFIG=""
8804 fi
8805
8806fi
cristy3ed852e2009-09-05 21:47:34 +00008807
cristy9b86f202012-11-28 21:55:35 +00008808# Check for linker script support
8809
8810 # Check whether --enable-ld-version-script was given.
8811if test "${enable_ld_version_script+set}" = set; then :
8812 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8813fi
8814
8815 if test -z "$have_ld_version_script"; then
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8817$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8818 save_LDFLAGS="$LDFLAGS"
8819 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8820 cat > conftest.map <<EOF
8821foo
8822EOF
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824/* end confdefs.h. */
8825
8826int
8827main ()
8828{
8829
8830 ;
8831 return 0;
8832}
8833_ACEOF
8834if ac_fn_c_try_link "$LINENO"; then :
8835 accepts_syntax_errors=yes
8836else
8837 accepts_syntax_errors=no
8838fi
8839rm -f core conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8841 if test "$accepts_syntax_errors" = no; then
8842 cat > conftest.map <<EOF
8843VERS_1 {
8844 global: sym;
8845};
8846
8847VERS_2 {
8848 global: sym;
8849} VERS_1;
8850EOF
8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852/* end confdefs.h. */
8853
8854int
8855main ()
8856{
8857
8858 ;
8859 return 0;
8860}
8861_ACEOF
8862if ac_fn_c_try_link "$LINENO"; then :
8863 have_ld_version_script=yes
8864else
8865 have_ld_version_script=no
8866fi
8867rm -f core conftest.err conftest.$ac_objext \
8868 conftest$ac_exeext conftest.$ac_ext
8869 else
8870 have_ld_version_script=no
8871 fi
8872 rm -f conftest.map
8873 LDFLAGS="$save_LDFLAGS"
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8875$as_echo "$have_ld_version_script" >&6; }
8876 fi
8877 if test "$have_ld_version_script" = "yes"; then
8878 HAVE_LD_VERSION_SCRIPT_TRUE=
8879 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8880else
8881 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8882 HAVE_LD_VERSION_SCRIPT_FALSE=
8883fi
8884
8885
8886
cristy3ed852e2009-09-05 21:47:34 +00008887#
cristy3ed852e2009-09-05 21:47:34 +00008888# Enable run-time checking.
8889#
8890# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008891if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008892 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8893else
8894 enable_bounds_checking='no'
8895fi
8896
8897
8898if test "$enable_bounds_checking" = yes; then
8899
cristy8b350f62009-11-15 23:12:43 +00008900$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008901
8902fi
8903
8904#
8905# Tests for Windows
8906#
8907
8908
8909
8910GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008911native_win32_build='no'
8912cygwin_build='no'
8913case "${host_os}" in
8914 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008915 cygwin_build='yes'
8916 GDI32_LIBS='-lgdi32'
8917 ;;
8918 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008919 native_win32_build='yes'
8920 GDI32_LIBS='-lgdi32'
8921 ;;
8922esac
8923if test "${GDI32_LIBS}x" != 'x'; then
8924
cristy8b350f62009-11-15 23:12:43 +00008925$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008926
8927fi
8928
cristy73bd4a52010-10-05 11:24:23 +00008929 if test "${GDI32_LIBS}x" != 'x' ; then
8930 WINGDI32_DELEGATE_TRUE=
8931 WINGDI32_DELEGATE_FALSE='#'
8932else
8933 WINGDI32_DELEGATE_TRUE='#'
8934 WINGDI32_DELEGATE_FALSE=
8935fi
8936
8937 if test "${native_win32_build}" = 'yes' ; then
8938 WIN32_NATIVE_BUILD_TRUE=
8939 WIN32_NATIVE_BUILD_FALSE='#'
8940else
8941 WIN32_NATIVE_BUILD_TRUE='#'
8942 WIN32_NATIVE_BUILD_FALSE=
8943fi
8944
8945 if test "${cygwin_build}" = 'yes' ; then
8946 CYGWIN_BUILD_TRUE=
8947 CYGWIN_BUILD_FALSE='#'
8948else
8949 CYGWIN_BUILD_TRUE='#'
8950 CYGWIN_BUILD_FALSE=
8951fi
8952
8953 if test "x${CC}" = 'xcl.exe' ; then
8954 USING_CL_TRUE=
8955 USING_CL_FALSE='#'
8956else
8957 USING_CL_TRUE='#'
8958 USING_CL_FALSE=
8959fi
8960
cristy3ed852e2009-09-05 21:47:34 +00008961
8962WinPathScript="${srcdirfull}/winpath.sh"
8963
8964
8965#
8966# Compiler flags tweaks
8967#
8968if test "${GCC}" != "yes"; then
8969 case "${host}" in
8970 *-*-hpux* )
8971 # aCC: HP ANSI C++ B3910B A.03.34
8972 CFLAGS="${CFLAGS} -Wp,-H30000"
8973 if test -n "${CXXFLAGS}"; then
8974 CXXFLAGS='-AA'
8975 else
8976 CXXFLAGS="${CXXFLAGS} -AA"
8977 fi
8978 ;;
8979 *-dec-osf5.* )
8980 # Compaq alphaev68-dec-osf5.1 compiler
8981 if test -n "${CXXFLAGS}"; then
8982 CXXFLAGS='-std strict_ansi -noimplicit_include'
8983 else
8984 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8985 fi
8986 esac
8987fi
8988
8989# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008991$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008992if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008993 $as_echo_n "(cached) " >&6
8994else
8995
8996im_cv_ld_lazyload='none'
8997case "${host}" in
8998 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8999 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9000 im_cv_ld_lazyload='-Wl,-zlazyload'
9001 fi
9002 ;;
9003esac
9004
9005fi
cristy8b350f62009-11-15 23:12:43 +00009006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009007$as_echo "$im_cv_ld_lazyload" >&6; }
9008if test "${im_cv_ld_lazyload}" != 'none' ; then
9009 if test -z "${LDFLAGS}" ; then
9010 LDFLAGS="${im_cv_ld_lazyload}"
9011 else
9012 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9013 fi
9014fi
9015
9016case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009017 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009018 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009019 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009020if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009021 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9022else
9023 build_osxuniversal=no
9024fi
9025
9026
cristyc37574e2013-02-16 01:04:55 +00009027 if test "${build_osxuniversal}" != no ; then
9028 if test "$enable_dependency_tracking" != no ; then
9029 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009030Please re-run configure with these options:
9031 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009032 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009033 fi
9034 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9035 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9036 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009037 fi
9038 ;;
9039esac
9040
cristy0151ae12011-10-28 16:32:29 +00009041#
9042# ARCH specific include directory
9043#
9044
cristy670aa3c2011-11-03 00:54:00 +00009045# Check whether --with-includearch-dir was given.
9046if test "${with_includearch_dir+set}" = set; then :
9047 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009048else
cristy670aa3c2011-11-03 00:54:00 +00009049 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009050fi
9051
9052
cristyd286fd72013-02-24 19:25:33 +00009053eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009054
cristy0151ae12011-10-28 16:32:29 +00009055
9056#
9057# ARCH specific configuration directory
9058#
9059
cristy670aa3c2011-11-03 00:54:00 +00009060# Check whether --with-sharearch-dir was given.
9061if test "${with_sharearch_dir+set}" = set; then :
9062 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009063else
cristy408ebcd2011-11-14 01:36:57 +00009064 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009065fi
9066
9067
cristy670aa3c2011-11-03 00:54:00 +00009068eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009069
cristy0151ae12011-10-28 16:32:29 +00009070
cristy2ec87cc2013-02-18 17:46:50 +00009071# Path to the pkgconfig folder
9072
9073# Check whether --with-pkgconfigdir was given.
9074if test "${with_pkgconfigdir+set}" = set; then :
9075 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9076else
9077 pkgconfigdir='${libdir}/pkgconfig'
9078fi
9079
9080
9081
cristy0151ae12011-10-28 16:32:29 +00009082#
cristy3ed852e2009-09-05 21:47:34 +00009083# Enable support for threads
9084
9085# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009086if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009087 withval=$with_threads; with_threads=$withval
9088else
9089 with_threads='yes'
9090fi
9091
9092
9093have_threads=no
9094if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009095
9096
cristy73bd4a52010-10-05 11:24:23 +00009097ac_ext=c
9098ac_cpp='$CPP $CPPFLAGS'
9099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9101ac_compiler_gnu=$ac_cv_c_compiler_gnu
9102
9103ax_pthread_ok=no
9104
9105# We used to check for pthread.h first, but this fails if pthread.h
9106# requires special compiler flags (e.g. on True64 or Sequent).
9107# It gets checked for in the link test anyway.
9108
9109# First of all, check if the user has set any of the PTHREAD_LIBS,
9110# etcetera environment variables, and if threads linking works using
9111# them:
9112if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9113 save_CFLAGS="$CFLAGS"
9114 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9115 save_LIBS="$LIBS"
9116 LIBS="$PTHREAD_LIBS $LIBS"
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9118$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120/* end confdefs.h. */
9121
9122/* Override any GCC internal prototype to avoid an error.
9123 Use char because int might match the return type of a GCC
9124 builtin and then its argument prototype would still apply. */
9125#ifdef __cplusplus
9126extern "C"
9127#endif
9128char pthread_join ();
9129int
9130main ()
9131{
9132return pthread_join ();
9133 ;
9134 return 0;
9135}
9136_ACEOF
9137if ac_fn_c_try_link "$LINENO"; then :
9138 ax_pthread_ok=yes
9139fi
9140rm -f core conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9143$as_echo "$ax_pthread_ok" >&6; }
9144 if test x"$ax_pthread_ok" = xno; then
9145 PTHREAD_LIBS=""
9146 PTHREAD_CFLAGS=""
9147 fi
9148 LIBS="$save_LIBS"
9149 CFLAGS="$save_CFLAGS"
9150fi
9151
9152# We must check for the threads library under a number of different
9153# names; the ordering is very important because some systems
9154# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9155# libraries is broken (non-POSIX).
9156
9157# Create a list of thread flags to try. Items starting with a "-" are
9158# C compiler flags, and other items are library names, except for "none"
9159# which indicates that we try without any flags at all, and "pthread-config"
9160# which is a program returning the flags for the Pth emulation library.
9161
cristy2ec87cc2013-02-18 17:46:50 +00009162ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009163
9164# The ordering *is* (sometimes) important. Some notes on the
9165# individual items follow:
9166
9167# pthreads: AIX (must check this before -lpthread)
9168# none: in case threads are in libc; should be tried before -Kthread and
9169# other compiler flags to prevent continual compiler warnings
9170# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9171# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9172# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9173# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9174# -pthreads: Solaris/gcc
9175# -mthreads: Mingw32/gcc, Lynx/gcc
9176# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9177# doesn't hurt to check since this sometimes defines pthreads too;
9178# also defines -D_REENTRANT)
9179# ... -mt is also the pthreads flag for HP/aCC
9180# pthread: Linux, etcetera
9181# --thread-safe: KAI C++
9182# pthread-config: use pthread-config program (for GNU Pth library)
9183
cristy2ec87cc2013-02-18 17:46:50 +00009184case ${host_os} in
9185 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009186
9187 # On Solaris (at least, for some versions), libc contains stubbed
9188 # (non-functional) versions of the pthreads routines, so link-based
9189 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9190 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9191 # a function called by this macro, so we could check for that, but
9192 # who knows whether they'll stub that too in a future libc.) So,
9193 # we'll just look for -pthreads and -lpthread first:
9194
9195 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9196 ;;
9197
cristy2ec87cc2013-02-18 17:46:50 +00009198 darwin*)
cristya316db12011-10-24 00:49:45 +00009199 ax_pthread_flags="-pthread $ax_pthread_flags"
9200 ;;
cristy73bd4a52010-10-05 11:24:23 +00009201esac
9202
9203if test x"$ax_pthread_ok" = xno; then
9204for flag in $ax_pthread_flags; do
9205
9206 case $flag in
9207 none)
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9209$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9210 ;;
9211
9212 -*)
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9214$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9215 PTHREAD_CFLAGS="$flag"
9216 ;;
9217
cristya316db12011-10-24 00:49:45 +00009218 pthread-config)
9219 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009220set dummy pthread-config; ac_word=$2
9221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9222$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009223if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009224 $as_echo_n "(cached) " >&6
9225else
9226 if test -n "$ax_pthread_config"; then
9227 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9228else
9229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9230for as_dir in $PATH
9231do
9232 IFS=$as_save_IFS
9233 test -z "$as_dir" && as_dir=.
9234 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009236 ac_cv_prog_ax_pthread_config="yes"
9237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9238 break 2
9239 fi
9240done
9241 done
9242IFS=$as_save_IFS
9243
9244 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9245fi
9246fi
9247ax_pthread_config=$ac_cv_prog_ax_pthread_config
9248if test -n "$ax_pthread_config"; then
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9250$as_echo "$ax_pthread_config" >&6; }
9251else
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253$as_echo "no" >&6; }
9254fi
9255
9256
cristya316db12011-10-24 00:49:45 +00009257 if test x"$ax_pthread_config" = xno; then continue; fi
9258 PTHREAD_CFLAGS="`pthread-config --cflags`"
9259 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9260 ;;
cristy73bd4a52010-10-05 11:24:23 +00009261
9262 *)
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9264$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9265 PTHREAD_LIBS="-l$flag"
9266 ;;
9267 esac
9268
9269 save_LIBS="$LIBS"
9270 save_CFLAGS="$CFLAGS"
9271 LIBS="$PTHREAD_LIBS $LIBS"
9272 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9273
9274 # Check for various functions. We must include pthread.h,
9275 # since some functions may be macros. (On the Sequent, we
9276 # need a special flag -Kthread to make this header compile.)
9277 # We check for pthread_join because it is in -lpthread on IRIX
9278 # while pthread_create is in libc. We check for pthread_attr_init
9279 # due to DEC craziness with -lpthreads. We check for
9280 # pthread_cleanup_push because it is one of the few pthread
9281 # functions on Solaris that doesn't have a non-functional libc stub.
9282 # We try pthread_create on general principles.
9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284/* end confdefs.h. */
9285#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009286 static void routine(void *a) { a = 0; }
9287 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009288int
9289main ()
9290{
9291pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009292 pthread_create(&th, 0, start_routine, 0);
9293 pthread_join(th, 0);
9294 pthread_attr_init(&attr);
9295 pthread_cleanup_push(routine, 0);
9296 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009297 ;
9298 return 0;
9299}
9300_ACEOF
9301if ac_fn_c_try_link "$LINENO"; then :
9302 ax_pthread_ok=yes
9303fi
9304rm -f core conftest.err conftest.$ac_objext \
9305 conftest$ac_exeext conftest.$ac_ext
9306
9307 LIBS="$save_LIBS"
9308 CFLAGS="$save_CFLAGS"
9309
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9311$as_echo "$ax_pthread_ok" >&6; }
9312 if test "x$ax_pthread_ok" = xyes; then
9313 break;
9314 fi
9315
9316 PTHREAD_LIBS=""
9317 PTHREAD_CFLAGS=""
9318done
9319fi
9320
9321# Various other checks:
9322if test "x$ax_pthread_ok" = xyes; then
9323 save_LIBS="$LIBS"
9324 LIBS="$PTHREAD_LIBS $LIBS"
9325 save_CFLAGS="$CFLAGS"
9326 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9327
9328 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009330$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009331 attr_name=unknown
9332 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009334/* end confdefs.h. */
9335#include <pthread.h>
9336int
9337main ()
9338{
cristya316db12011-10-24 00:49:45 +00009339int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009340 ;
9341 return 0;
9342}
9343_ACEOF
9344if ac_fn_c_try_link "$LINENO"; then :
9345 attr_name=$attr; break
9346fi
9347rm -f core conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009349 done
cristy73bd4a52010-10-05 11:24:23 +00009350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9351$as_echo "$attr_name" >&6; }
9352 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9353
9354cat >>confdefs.h <<_ACEOF
9355#define PTHREAD_CREATE_JOINABLE $attr_name
9356_ACEOF
9357
9358 fi
9359
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9361$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9362 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009363 case ${host_os} in
9364 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9365 osf* | hpux*) flag="-D_REENTRANT";;
9366 solaris*)
9367 if test "$GCC" = "yes"; then
9368 flag="-D_REENTRANT"
9369 else
9370 flag="-mt -D_REENTRANT"
9371 fi
9372 ;;
cristy73bd4a52010-10-05 11:24:23 +00009373 esac
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9375$as_echo "${flag}" >&6; }
9376 if test "x$flag" != xno; then
9377 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9378 fi
9379
cristya316db12011-10-24 00:49:45 +00009380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9381$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9382if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9383 $as_echo_n "(cached) " >&6
9384else
9385
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387/* end confdefs.h. */
9388
9389 #include <pthread.h>
9390int
9391main ()
9392{
9393int i = PTHREAD_PRIO_INHERIT;
9394 ;
9395 return 0;
9396}
9397_ACEOF
9398if ac_fn_c_try_link "$LINENO"; then :
9399 ax_cv_PTHREAD_PRIO_INHERIT=yes
9400else
9401 ax_cv_PTHREAD_PRIO_INHERIT=no
9402fi
9403rm -f core conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
9405
9406fi
9407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9408$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9409 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9410
9411$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9412
9413fi
9414
cristy73bd4a52010-10-05 11:24:23 +00009415 LIBS="$save_LIBS"
9416 CFLAGS="$save_CFLAGS"
9417
cristy23493c42013-04-11 16:04:59 +00009418 # More AIX lossage: compile with *_r variant
9419 if test "x$GCC" != xyes; then
9420 case $host_os in
9421 aix*)
9422 case "x/$CC" in #(
9423 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9424 #handle absolute path differently from PATH based program lookup
9425 case "x$CC" in #(
9426 x/*) :
9427 if as_fn_executable_p ${CC}_r; then :
9428 PTHREAD_CC="${CC}_r"
9429fi ;; #(
9430 *) :
9431 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009432do
9433 # Extract the first word of "$ac_prog", so it can be a program name with args.
9434set dummy $ac_prog; ac_word=$2
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009437if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009438 $as_echo_n "(cached) " >&6
9439else
9440 if test -n "$PTHREAD_CC"; then
9441 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9442else
9443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9444for as_dir in $PATH
9445do
9446 IFS=$as_save_IFS
9447 test -z "$as_dir" && as_dir=.
9448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009450 ac_cv_prog_PTHREAD_CC="$ac_prog"
9451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9452 break 2
9453 fi
9454done
9455 done
9456IFS=$as_save_IFS
9457
9458fi
9459fi
9460PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9461if test -n "$PTHREAD_CC"; then
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9463$as_echo "$PTHREAD_CC" >&6; }
9464else
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9466$as_echo "no" >&6; }
9467fi
9468
9469
9470 test -n "$PTHREAD_CC" && break
9471done
cristy23493c42013-04-11 16:04:59 +00009472test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9473 ;;
9474esac ;; #(
9475 *) :
9476 ;;
9477esac
9478 ;;
9479 esac
cristya316db12011-10-24 00:49:45 +00009480 fi
cristy73bd4a52010-10-05 11:24:23 +00009481fi
9482
cristy23493c42013-04-11 16:04:59 +00009483test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9484
cristy73bd4a52010-10-05 11:24:23 +00009485
9486
9487
9488
9489# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9490if test x"$ax_pthread_ok" = xyes; then
9491
9492$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9493
9494 :
9495else
9496 ax_pthread_ok=no
9497
9498fi
9499ac_ext=c
9500ac_cpp='$CPP $CPPFLAGS'
9501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9503ac_compiler_gnu=$ac_cv_c_compiler_gnu
9504
9505
cristy7acf8fb2010-09-23 19:58:53 +00009506 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009507 have_threads=yes
9508 DEF_THREAD="$PTHREAD_CFLAGS"
9509 CFLAGS="$CFLAGS $DEF_THREAD"
9510 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9511 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009512 { $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 +00009513$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9514 CC="$PTHREAD_CC"
9515 fi
cristy55bf91c2010-09-24 00:29:41 +00009516
9517$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9518
cristy3ed852e2009-09-05 21:47:34 +00009519 fi
9520fi
9521
9522# Enable support for OpenMP
9523if test "$have_threads" != 'yes'; then
9524 ac_cv_prog_c_openmp=unsupported
9525fi
9526
9527 OPENMP_CFLAGS=
9528 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009529if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009530 enableval=$enable_openmp;
9531fi
9532
9533 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009535$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009536if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009537 $as_echo_n "(cached) " >&6
9538else
cristy8b350f62009-11-15 23:12:43 +00009539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009541
9542#ifndef _OPENMP
9543 choke me
9544#endif
9545#include <omp.h>
9546int main () { return omp_get_num_threads (); }
9547
9548_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009549if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009550 ac_cv_prog_c_openmp='none needed'
9551else
cristy8b350f62009-11-15 23:12:43 +00009552 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009553 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9554 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009555 ac_save_CFLAGS=$CFLAGS
9556 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009559
9560#ifndef _OPENMP
9561 choke me
9562#endif
9563#include <omp.h>
9564int main () { return omp_get_num_threads (); }
9565
9566_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009567if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009568 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009569fi
cristy8b350f62009-11-15 23:12:43 +00009570rm -f core conftest.err conftest.$ac_objext \
9571 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009572 CFLAGS=$ac_save_CFLAGS
9573 if test "$ac_cv_prog_c_openmp" != unsupported; then
9574 break
9575 fi
9576 done
9577fi
cristy8b350f62009-11-15 23:12:43 +00009578rm -f core conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009580fi
cristy8b350f62009-11-15 23:12:43 +00009581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009582$as_echo "$ac_cv_prog_c_openmp" >&6; }
9583 case $ac_cv_prog_c_openmp in #(
9584 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009585 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009586 *)
cristy8b350f62009-11-15 23:12:43 +00009587 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009588 esac
9589 fi
9590
9591
9592CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9593MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9594
cristy391f1ce2010-09-09 17:23:28 +00009595if test "$enable_openmp" != no; then
9596 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9597 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9598 fi
9599fi
cristy3ed852e2009-09-05 21:47:34 +00009600
cristy736173a2009-09-20 21:18:22 +00009601# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009602
9603
cristy73bd4a52010-10-05 11:24:23 +00009604ac_ext=c
9605ac_cpp='$CPP $CPPFLAGS'
9606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9608ac_compiler_gnu=$ac_cv_c_compiler_gnu
9609
9610ax_pthread_ok=no
9611
9612# We used to check for pthread.h first, but this fails if pthread.h
9613# requires special compiler flags (e.g. on True64 or Sequent).
9614# It gets checked for in the link test anyway.
9615
9616# First of all, check if the user has set any of the PTHREAD_LIBS,
9617# etcetera environment variables, and if threads linking works using
9618# them:
9619if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9620 save_CFLAGS="$CFLAGS"
9621 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9622 save_LIBS="$LIBS"
9623 LIBS="$PTHREAD_LIBS $LIBS"
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9625$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627/* end confdefs.h. */
9628
9629/* Override any GCC internal prototype to avoid an error.
9630 Use char because int might match the return type of a GCC
9631 builtin and then its argument prototype would still apply. */
9632#ifdef __cplusplus
9633extern "C"
9634#endif
9635char pthread_join ();
9636int
9637main ()
9638{
9639return pthread_join ();
9640 ;
9641 return 0;
9642}
9643_ACEOF
9644if ac_fn_c_try_link "$LINENO"; then :
9645 ax_pthread_ok=yes
9646fi
9647rm -f core conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9650$as_echo "$ax_pthread_ok" >&6; }
9651 if test x"$ax_pthread_ok" = xno; then
9652 PTHREAD_LIBS=""
9653 PTHREAD_CFLAGS=""
9654 fi
9655 LIBS="$save_LIBS"
9656 CFLAGS="$save_CFLAGS"
9657fi
9658
9659# We must check for the threads library under a number of different
9660# names; the ordering is very important because some systems
9661# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9662# libraries is broken (non-POSIX).
9663
9664# Create a list of thread flags to try. Items starting with a "-" are
9665# C compiler flags, and other items are library names, except for "none"
9666# which indicates that we try without any flags at all, and "pthread-config"
9667# which is a program returning the flags for the Pth emulation library.
9668
cristy2ec87cc2013-02-18 17:46:50 +00009669ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009670
9671# The ordering *is* (sometimes) important. Some notes on the
9672# individual items follow:
9673
9674# pthreads: AIX (must check this before -lpthread)
9675# none: in case threads are in libc; should be tried before -Kthread and
9676# other compiler flags to prevent continual compiler warnings
9677# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9678# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9679# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9680# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9681# -pthreads: Solaris/gcc
9682# -mthreads: Mingw32/gcc, Lynx/gcc
9683# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9684# doesn't hurt to check since this sometimes defines pthreads too;
9685# also defines -D_REENTRANT)
9686# ... -mt is also the pthreads flag for HP/aCC
9687# pthread: Linux, etcetera
9688# --thread-safe: KAI C++
9689# pthread-config: use pthread-config program (for GNU Pth library)
9690
cristy2ec87cc2013-02-18 17:46:50 +00009691case ${host_os} in
9692 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009693
9694 # On Solaris (at least, for some versions), libc contains stubbed
9695 # (non-functional) versions of the pthreads routines, so link-based
9696 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9697 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9698 # a function called by this macro, so we could check for that, but
9699 # who knows whether they'll stub that too in a future libc.) So,
9700 # we'll just look for -pthreads and -lpthread first:
9701
9702 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9703 ;;
9704
cristy2ec87cc2013-02-18 17:46:50 +00009705 darwin*)
cristya316db12011-10-24 00:49:45 +00009706 ax_pthread_flags="-pthread $ax_pthread_flags"
9707 ;;
cristy73bd4a52010-10-05 11:24:23 +00009708esac
9709
9710if test x"$ax_pthread_ok" = xno; then
9711for flag in $ax_pthread_flags; do
9712
9713 case $flag in
9714 none)
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9716$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9717 ;;
9718
9719 -*)
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9721$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9722 PTHREAD_CFLAGS="$flag"
9723 ;;
9724
cristya316db12011-10-24 00:49:45 +00009725 pthread-config)
9726 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009727set dummy pthread-config; ac_word=$2
9728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9729$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009730if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009731 $as_echo_n "(cached) " >&6
9732else
9733 if test -n "$ax_pthread_config"; then
9734 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9735else
9736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737for as_dir in $PATH
9738do
9739 IFS=$as_save_IFS
9740 test -z "$as_dir" && as_dir=.
9741 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009743 ac_cv_prog_ax_pthread_config="yes"
9744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9745 break 2
9746 fi
9747done
9748 done
9749IFS=$as_save_IFS
9750
9751 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9752fi
9753fi
9754ax_pthread_config=$ac_cv_prog_ax_pthread_config
9755if test -n "$ax_pthread_config"; then
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9757$as_echo "$ax_pthread_config" >&6; }
9758else
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760$as_echo "no" >&6; }
9761fi
9762
9763
cristya316db12011-10-24 00:49:45 +00009764 if test x"$ax_pthread_config" = xno; then continue; fi
9765 PTHREAD_CFLAGS="`pthread-config --cflags`"
9766 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9767 ;;
cristy73bd4a52010-10-05 11:24:23 +00009768
9769 *)
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9771$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9772 PTHREAD_LIBS="-l$flag"
9773 ;;
9774 esac
9775
9776 save_LIBS="$LIBS"
9777 save_CFLAGS="$CFLAGS"
9778 LIBS="$PTHREAD_LIBS $LIBS"
9779 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9780
9781 # Check for various functions. We must include pthread.h,
9782 # since some functions may be macros. (On the Sequent, we
9783 # need a special flag -Kthread to make this header compile.)
9784 # We check for pthread_join because it is in -lpthread on IRIX
9785 # while pthread_create is in libc. We check for pthread_attr_init
9786 # due to DEC craziness with -lpthreads. We check for
9787 # pthread_cleanup_push because it is one of the few pthread
9788 # functions on Solaris that doesn't have a non-functional libc stub.
9789 # We try pthread_create on general principles.
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h. */
9792#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009793 static void routine(void *a) { a = 0; }
9794 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009795int
9796main ()
9797{
9798pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009799 pthread_create(&th, 0, start_routine, 0);
9800 pthread_join(th, 0);
9801 pthread_attr_init(&attr);
9802 pthread_cleanup_push(routine, 0);
9803 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009804 ;
9805 return 0;
9806}
9807_ACEOF
9808if ac_fn_c_try_link "$LINENO"; then :
9809 ax_pthread_ok=yes
9810fi
9811rm -f core conftest.err conftest.$ac_objext \
9812 conftest$ac_exeext conftest.$ac_ext
9813
9814 LIBS="$save_LIBS"
9815 CFLAGS="$save_CFLAGS"
9816
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9818$as_echo "$ax_pthread_ok" >&6; }
9819 if test "x$ax_pthread_ok" = xyes; then
9820 break;
9821 fi
9822
9823 PTHREAD_LIBS=""
9824 PTHREAD_CFLAGS=""
9825done
9826fi
9827
9828# Various other checks:
9829if test "x$ax_pthread_ok" = xyes; then
9830 save_LIBS="$LIBS"
9831 LIBS="$PTHREAD_LIBS $LIBS"
9832 save_CFLAGS="$CFLAGS"
9833 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9834
9835 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009837$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009838 attr_name=unknown
9839 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009841/* end confdefs.h. */
9842#include <pthread.h>
9843int
9844main ()
9845{
cristya316db12011-10-24 00:49:45 +00009846int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009847 ;
9848 return 0;
9849}
9850_ACEOF
9851if ac_fn_c_try_link "$LINENO"; then :
9852 attr_name=$attr; break
9853fi
9854rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009856 done
cristy73bd4a52010-10-05 11:24:23 +00009857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9858$as_echo "$attr_name" >&6; }
9859 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9860
9861cat >>confdefs.h <<_ACEOF
9862#define PTHREAD_CREATE_JOINABLE $attr_name
9863_ACEOF
9864
9865 fi
9866
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9868$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9869 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009870 case ${host_os} in
9871 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9872 osf* | hpux*) flag="-D_REENTRANT";;
9873 solaris*)
9874 if test "$GCC" = "yes"; then
9875 flag="-D_REENTRANT"
9876 else
9877 flag="-mt -D_REENTRANT"
9878 fi
9879 ;;
cristy73bd4a52010-10-05 11:24:23 +00009880 esac
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9882$as_echo "${flag}" >&6; }
9883 if test "x$flag" != xno; then
9884 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9885 fi
9886
cristya316db12011-10-24 00:49:45 +00009887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9888$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9889if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9890 $as_echo_n "(cached) " >&6
9891else
9892
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894/* end confdefs.h. */
9895
9896 #include <pthread.h>
9897int
9898main ()
9899{
9900int i = PTHREAD_PRIO_INHERIT;
9901 ;
9902 return 0;
9903}
9904_ACEOF
9905if ac_fn_c_try_link "$LINENO"; then :
9906 ax_cv_PTHREAD_PRIO_INHERIT=yes
9907else
9908 ax_cv_PTHREAD_PRIO_INHERIT=no
9909fi
9910rm -f core conftest.err conftest.$ac_objext \
9911 conftest$ac_exeext conftest.$ac_ext
9912
9913fi
9914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9915$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9916 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9917
9918$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9919
9920fi
9921
cristy73bd4a52010-10-05 11:24:23 +00009922 LIBS="$save_LIBS"
9923 CFLAGS="$save_CFLAGS"
9924
cristy23493c42013-04-11 16:04:59 +00009925 # More AIX lossage: compile with *_r variant
9926 if test "x$GCC" != xyes; then
9927 case $host_os in
9928 aix*)
9929 case "x/$CC" in #(
9930 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9931 #handle absolute path differently from PATH based program lookup
9932 case "x$CC" in #(
9933 x/*) :
9934 if as_fn_executable_p ${CC}_r; then :
9935 PTHREAD_CC="${CC}_r"
9936fi ;; #(
9937 *) :
9938 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009939do
9940 # Extract the first word of "$ac_prog", so it can be a program name with args.
9941set dummy $ac_prog; ac_word=$2
9942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9943$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009944if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009945 $as_echo_n "(cached) " >&6
9946else
9947 if test -n "$PTHREAD_CC"; then
9948 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9949else
9950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951for as_dir in $PATH
9952do
9953 IFS=$as_save_IFS
9954 test -z "$as_dir" && as_dir=.
9955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009957 ac_cv_prog_PTHREAD_CC="$ac_prog"
9958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9959 break 2
9960 fi
9961done
9962 done
9963IFS=$as_save_IFS
9964
9965fi
9966fi
9967PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9968if test -n "$PTHREAD_CC"; then
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9970$as_echo "$PTHREAD_CC" >&6; }
9971else
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973$as_echo "no" >&6; }
9974fi
9975
9976
9977 test -n "$PTHREAD_CC" && break
9978done
cristy23493c42013-04-11 16:04:59 +00009979test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9980 ;;
9981esac ;; #(
9982 *) :
9983 ;;
9984esac
9985 ;;
9986 esac
cristya316db12011-10-24 00:49:45 +00009987 fi
cristy73bd4a52010-10-05 11:24:23 +00009988fi
9989
cristy23493c42013-04-11 16:04:59 +00009990test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9991
cristy73bd4a52010-10-05 11:24:23 +00009992
9993
9994
9995
9996# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9997if test x"$ax_pthread_ok" = xyes; then
9998
9999$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10000
10001 :
10002else
10003 ax_pthread_ok=no
10004
10005fi
10006ac_ext=c
10007ac_cpp='$CPP $CPPFLAGS'
10008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10010ac_compiler_gnu=$ac_cv_c_compiler_gnu
10011
10012
10013
10014# Check whether --enable-opencl was given.
10015if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010016 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010017else
cristy48794642012-09-02 15:19:08 +000010018 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010019fi
10020
10021
cristy48794642012-09-02 15:19:08 +000010022if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010023 ac_ext=c
10024ac_cpp='$CPP $CPPFLAGS'
10025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10027ac_compiler_gnu=$ac_cv_c_compiler_gnu
10028
cristy75314cc2012-09-15 23:08:29 +000010029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10030$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10031if ${ax_cv_c_compiler_ms+:} false; then :
10032 $as_echo_n "(cached) " >&6
10033else
10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035/* end confdefs.h. */
10036
10037int
10038main ()
10039{
10040#ifndef _MSC_VER
10041 choke me
10042#endif
10043
10044 ;
10045 return 0;
10046}
10047_ACEOF
10048if ac_fn_c_try_compile "$LINENO"; then :
10049 ax_compiler_ms=yes
10050else
10051 ax_compiler_ms=no
10052fi
10053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10054ax_cv_c_compiler_ms=$ax_compiler_ms
10055
10056fi
10057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10058$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010059 if test X$ax_compiler_ms = Xno; then :
10060 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10061fi
10062
10063 ax_save_CPPFLAGS=$CPPFLAGS
10064 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10065 for ac_header in CL/cl.h OpenCL/cl.h
10066do :
10067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10068ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010069if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010070 cat >>confdefs.h <<_ACEOF
10071#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10072_ACEOF
10073
10074fi
10075
10076done
10077
10078 CPPFLAGS=$ax_save_CPPFLAGS
10079
10080 for ac_header in windows.h
10081do :
10082 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010083if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010084 cat >>confdefs.h <<_ACEOF
10085#define HAVE_WINDOWS_H 1
10086_ACEOF
10087
10088fi
10089
10090done
10091
10092
10093
10094
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10096$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010097if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010098 $as_echo_n "(cached) " >&6
10099else
10100 ax_cv_check_cl_libcl=no
10101 case $host_cpu in
10102 x86_64) ax_check_cl_libdir=lib64 ;;
10103 *) ax_check_cl_libdir=lib ;;
10104 esac
10105 ax_save_CPPFLAGS=$CPPFLAGS
10106 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10107 ax_save_LIBS=$LIBS
10108 LIBS=""
10109 ax_check_libs="-lOpenCL -lCL -lclparser"
10110 for ax_lib in $ax_check_libs; do
10111 if test X$ax_compiler_ms = Xyes; then :
10112 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10113else
10114 ax_try_lib=$ax_lib
10115fi
10116 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118/* end confdefs.h. */
10119
10120 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10121 # include <windows.h>
10122 # endif
10123 # ifdef HAVE_CL_CL_H
10124 # include <CL/cl.h>
10125 # elif defined(HAVE_OPENCL_CL_H)
10126 # include <OpenCL/cl.h>
10127 # else
10128 # error no CL.h
10129 # endif
10130int
10131main ()
10132{
10133clCreateContextFromType(0,0,0,0,0)
10134 ;
10135 return 0;
10136}
10137_ACEOF
10138if ac_fn_c_try_link "$LINENO"; then :
10139 ax_cv_check_cl_libcl=$ax_try_lib; break
10140else
10141 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"
10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143/* end confdefs.h. */
10144
10145 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10146 # include <windows.h>
10147 # endif
10148 # ifdef HAVE_CL_CL_H
10149 # include <CL/cl.h>
10150 # elif defined(HAVE_OPENCL_CL_H)
10151 # include <OpenCL/cl.h>
10152 # else
10153 # error no CL.h
10154 # endif
10155int
10156main ()
10157{
10158clCreateContextFromType(0,0,0,0,0)
10159 ;
10160 return 0;
10161}
10162_ACEOF
10163if ac_fn_c_try_link "$LINENO"; then :
10164 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10165else
cristy78c5a0c2010-12-04 20:00:59 +000010166 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 +000010167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168/* end confdefs.h. */
10169
10170 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10171 # include <windows.h>
10172 # endif
10173 # ifdef HAVE_CL_CL_H
10174 # include <CL/cl.h>
10175 # elif defined(HAVE_OPENCL_CL_H)
10176 # include <OpenCL/cl.h>
10177 # else
10178 # error no CL.h
10179 # endif
10180int
10181main ()
10182{
10183clCreateContextFromType(0,0,0,0,0)
10184 ;
10185 return 0;
10186}
10187_ACEOF
10188if ac_fn_c_try_link "$LINENO"; then :
10189 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10190fi
10191rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193fi
10194rm -f core conftest.err conftest.$ac_objext \
10195 conftest$ac_exeext conftest.$ac_ext
10196fi
10197rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10199 done
10200
cristyc3f8b8e2011-12-22 14:55:16 +000010201 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010202 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204/* end confdefs.h. */
10205
10206 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10207 # include <windows.h>
10208 # endif
10209 # ifdef HAVE_CL_CL_H
10210 # include <CL/cl.h>
10211 # elif defined(HAVE_OPENCL_CL_H)
10212 # include <OpenCL/cl.h>
10213 # else
10214 # error no CL.h
10215 # endif
10216int
10217main ()
10218{
10219clCreateContextFromType(0,0,0,0,0)
10220 ;
10221 return 0;
10222}
10223_ACEOF
10224if ac_fn_c_try_link "$LINENO"; then :
10225 ax_cv_check_cl_libcl=$LIBS
10226fi
10227rm -f core conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
10229fi
10230
10231 LIBS=$ax_save_LIBS
10232 CPPFLAGS=$ax_save_CPPFLAGS
10233fi
10234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10235$as_echo "$ax_cv_check_cl_libcl" >&6; }
10236
10237 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10238 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10239else
10240 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10241$as_echo "#define _OPENCL 1" >>confdefs.h
10242
10243fi
10244 ac_ext=c
10245ac_cpp='$CPP $CPPFLAGS'
10246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10248ac_compiler_gnu=$ac_cv_c_compiler_gnu
10249
10250fi
10251
10252
10253
10254
cristyc7083c12009-10-14 03:16:55 +000010255CFLAGS="$CL_CFLAGS $CFLAGS"
10256LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010257
cristy391f1ce2010-09-09 17:23:28 +000010258if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010259 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010260 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10261 fi
cristyfd9dcd42010-08-08 18:07:02 +000010262fi
cristy2e8b51d2009-10-17 18:26:15 +000010263
cristy3ed852e2009-09-05 21:47:34 +000010264########
10265#
10266# Check for large file support
10267#
10268########
10269# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010270if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010271 enableval=$enable_largefile;
10272fi
10273
10274if test "$enable_largefile" != no; then
10275
cristy8b350f62009-11-15 23:12:43 +000010276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010277$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010278if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010279 $as_echo_n "(cached) " >&6
10280else
10281 ac_cv_sys_largefile_CC=no
10282 if test "$GCC" != yes; then
10283 ac_save_CC=$CC
10284 while :; do
10285 # IRIX 6.2 and later do not support large files by default,
10286 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010288/* end confdefs.h. */
10289#include <sys/types.h>
10290 /* Check that off_t can represent 2**63 - 1 correctly.
10291 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10292 since some C++ compilers masquerading as C compilers
10293 incorrectly reject 9223372036854775807. */
10294#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10296 && LARGE_OFF_T % 2147483647 == 1)
10297 ? 1 : -1];
10298int
10299main ()
10300{
10301
10302 ;
10303 return 0;
10304}
10305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010306 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010307 break
cristy3ed852e2009-09-05 21:47:34 +000010308fi
cristy3ed852e2009-09-05 21:47:34 +000010309rm -f core conftest.err conftest.$ac_objext
10310 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010311 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010312 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010313fi
cristy3ed852e2009-09-05 21:47:34 +000010314rm -f core conftest.err conftest.$ac_objext
10315 break
10316 done
10317 CC=$ac_save_CC
10318 rm -f conftest.$ac_ext
10319 fi
10320fi
cristy8b350f62009-11-15 23:12:43 +000010321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010322$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10323 if test "$ac_cv_sys_largefile_CC" != no; then
10324 CC=$CC$ac_cv_sys_largefile_CC
10325 fi
10326
cristy8b350f62009-11-15 23:12:43 +000010327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010328$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010329if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010330 $as_echo_n "(cached) " >&6
10331else
10332 while :; do
cristy8b350f62009-11-15 23:12:43 +000010333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010334/* end confdefs.h. */
10335#include <sys/types.h>
10336 /* Check that off_t can represent 2**63 - 1 correctly.
10337 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10338 since some C++ compilers masquerading as C compilers
10339 incorrectly reject 9223372036854775807. */
10340#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10341 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10342 && LARGE_OFF_T % 2147483647 == 1)
10343 ? 1 : -1];
10344int
10345main ()
10346{
10347
10348 ;
10349 return 0;
10350}
10351_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010352if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010353 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010354fi
cristy3ed852e2009-09-05 21:47:34 +000010355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010357/* end confdefs.h. */
10358#define _FILE_OFFSET_BITS 64
10359#include <sys/types.h>
10360 /* Check that off_t can represent 2**63 - 1 correctly.
10361 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10362 since some C++ compilers masquerading as C compilers
10363 incorrectly reject 9223372036854775807. */
10364#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10365 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10366 && LARGE_OFF_T % 2147483647 == 1)
10367 ? 1 : -1];
10368int
10369main ()
10370{
10371
10372 ;
10373 return 0;
10374}
10375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010376if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010377 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010378fi
cristy3ed852e2009-09-05 21:47:34 +000010379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10380 ac_cv_sys_file_offset_bits=unknown
10381 break
10382done
10383fi
cristy8b350f62009-11-15 23:12:43 +000010384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010385$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10386case $ac_cv_sys_file_offset_bits in #(
10387 no | unknown) ;;
10388 *)
10389cat >>confdefs.h <<_ACEOF
10390#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10391_ACEOF
10392;;
10393esac
10394rm -rf conftest*
10395 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010397$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010398if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010399 $as_echo_n "(cached) " >&6
10400else
10401 while :; do
cristy8b350f62009-11-15 23:12:43 +000010402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010403/* end confdefs.h. */
10404#include <sys/types.h>
10405 /* Check that off_t can represent 2**63 - 1 correctly.
10406 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10407 since some C++ compilers masquerading as C compilers
10408 incorrectly reject 9223372036854775807. */
10409#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10410 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10411 && LARGE_OFF_T % 2147483647 == 1)
10412 ? 1 : -1];
10413int
10414main ()
10415{
10416
10417 ;
10418 return 0;
10419}
10420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010421if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010422 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010423fi
cristy3ed852e2009-09-05 21:47:34 +000010424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010426/* end confdefs.h. */
10427#define _LARGE_FILES 1
10428#include <sys/types.h>
10429 /* Check that off_t can represent 2**63 - 1 correctly.
10430 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10431 since some C++ compilers masquerading as C compilers
10432 incorrectly reject 9223372036854775807. */
10433#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10434 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10435 && LARGE_OFF_T % 2147483647 == 1)
10436 ? 1 : -1];
10437int
10438main ()
10439{
10440
10441 ;
10442 return 0;
10443}
10444_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010445if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010446 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010447fi
cristy3ed852e2009-09-05 21:47:34 +000010448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449 ac_cv_sys_large_files=unknown
10450 break
10451done
10452fi
cristy8b350f62009-11-15 23:12:43 +000010453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010454$as_echo "$ac_cv_sys_large_files" >&6; }
10455case $ac_cv_sys_large_files in #(
10456 no | unknown) ;;
10457 *)
10458cat >>confdefs.h <<_ACEOF
10459#define _LARGE_FILES $ac_cv_sys_large_files
10460_ACEOF
10461;;
10462esac
10463rm -rf conftest*
10464 fi
cristy14fefe52012-05-21 00:59:18 +000010465
10466
cristy3ed852e2009-09-05 21:47:34 +000010467fi
10468
cristy8b350f62009-11-15 23:12:43 +000010469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010470$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010471if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010472 $as_echo_n "(cached) " >&6
10473else
10474 while :; do
cristy8b350f62009-11-15 23:12:43 +000010475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010476/* end confdefs.h. */
10477#include <sys/types.h> /* for off_t */
10478 #include <stdio.h>
10479int
10480main ()
10481{
10482int (*fp) (FILE *, off_t, int) = fseeko;
10483 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10484 ;
10485 return 0;
10486}
10487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010488if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010489 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010490fi
cristy8b350f62009-11-15 23:12:43 +000010491rm -f core conftest.err conftest.$ac_objext \
10492 conftest$ac_exeext conftest.$ac_ext
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010494/* end confdefs.h. */
10495#define _LARGEFILE_SOURCE 1
10496#include <sys/types.h> /* for off_t */
10497 #include <stdio.h>
10498int
10499main ()
10500{
10501int (*fp) (FILE *, off_t, int) = fseeko;
10502 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10503 ;
10504 return 0;
10505}
10506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010507if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010508 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010509fi
cristy8b350f62009-11-15 23:12:43 +000010510rm -f core conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010512 ac_cv_sys_largefile_source=unknown
10513 break
10514done
10515fi
cristy8b350f62009-11-15 23:12:43 +000010516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010517$as_echo "$ac_cv_sys_largefile_source" >&6; }
10518case $ac_cv_sys_largefile_source in #(
10519 no | unknown) ;;
10520 *)
10521cat >>confdefs.h <<_ACEOF
10522#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10523_ACEOF
10524;;
10525esac
10526rm -rf conftest*
10527
10528# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10529# in glibc 2.1.3, but that breaks too many other things.
10530# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10531if test $ac_cv_sys_largefile_source != unknown; then
10532
cristy8b350f62009-11-15 23:12:43 +000010533$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010534
10535fi
10536
10537LFS_CPPFLAGS=''
10538if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010539 case $ac_cv_sys_file_offset_bits in
10540 no)
10541 # nothing to do here as the host supports LFS fine
10542 ;;
10543 unknown)
cristy8b350f62009-11-15 23:12:43 +000010544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010545$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010546 if test "$cross_compiling" = yes; then :
10547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010549as_fn_error $? "cannot run test program while cross compiling
10550See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010551else
cristy8b350f62009-11-15 23:12:43 +000010552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010554#include <unistd.h>
10555 main () {
10556 exit(!(sizeof(off_t) == 8));
10557 }
cristyda16f162011-02-19 23:52:17 +000010558int
10559main ()
10560{
10561
10562 ;
10563 return 0;
10564}
cristy3ed852e2009-09-05 21:47:34 +000010565_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010566if ac_fn_c_try_run "$LINENO"; then :
10567 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010568
cristyad38abe2012-12-23 23:03:21 +000010569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10570$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010571else
cristyad38abe2012-12-23 23:03:21 +000010572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010574fi
cristy8b350f62009-11-15 23:12:43 +000010575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10576 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010577fi
10578
cristyc1e0cc12011-09-21 16:41:16 +000010579 ;;
10580 *)
10581 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10582 ;;
10583 esac
cristy3ed852e2009-09-05 21:47:34 +000010584 if test "$ac_cv_sys_large_files" != 'no'; then
10585 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10586 fi
10587 if test "$ac_cv_sys_largefile_source" != 'no'; then
10588 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10589 fi
10590fi
10591
10592
cristy3ed852e2009-09-05 21:47:34 +000010593# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010594enable_dlopen=yes
10595
10596
10597
10598case `pwd` in
10599 *\ * | *\ *)
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10601$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10602esac
10603
10604
10605
cristy99bd5232011-12-07 14:38:20 +000010606macro_version='2.4.2'
10607macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621ltmain="$ac_aux_dir/ltmain.sh"
10622
cristy0c60a692010-11-04 01:09:47 +000010623# Backslashify metacharacters that are still active within
10624# double-quoted strings.
10625sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10626
10627# Same as above, but do not quote variable references.
10628double_quote_subst='s/\(["`\\]\)/\\\1/g'
10629
10630# Sed substitution to delay expansion of an escaped shell variable in a
10631# double_quote_subst'ed string.
10632delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10633
10634# Sed substitution to delay expansion of an escaped single quote.
10635delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10636
10637# Sed substitution to avoid accidental globbing in evaled expressions
10638no_glob_subst='s/\*/\\\*/g'
10639
cristy73bd4a52010-10-05 11:24:23 +000010640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10641$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010642if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010643 $as_echo_n "(cached) " >&6
10644else
10645 if test -n "$NM"; then
10646 # Let the user override the test.
10647 lt_cv_path_NM="$NM"
10648else
10649 lt_nm_to_check="${ac_tool_prefix}nm"
10650 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10651 lt_nm_to_check="$lt_nm_to_check nm"
10652 fi
10653 for lt_tmp_nm in $lt_nm_to_check; do
10654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10655 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10656 IFS="$lt_save_ifs"
10657 test -z "$ac_dir" && ac_dir=.
10658 tmp_nm="$ac_dir/$lt_tmp_nm"
10659 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10660 # Check to see if the nm accepts a BSD-compat flag.
10661 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10662 # nm: unknown option "B" ignored
10663 # Tru64's nm complains that /dev/null is an invalid object file
10664 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10665 */dev/null* | *'Invalid file or object type'*)
10666 lt_cv_path_NM="$tmp_nm -B"
10667 break
10668 ;;
10669 *)
10670 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10671 */dev/null*)
10672 lt_cv_path_NM="$tmp_nm -p"
10673 break
10674 ;;
10675 *)
10676 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10677 continue # so that we can try to find one that supports BSD flags
10678 ;;
10679 esac
10680 ;;
10681 esac
10682 fi
10683 done
10684 IFS="$lt_save_ifs"
10685 done
10686 : ${lt_cv_path_NM=no}
10687fi
10688fi
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10690$as_echo "$lt_cv_path_NM" >&6; }
10691if test "$lt_cv_path_NM" != "no"; then
10692 NM="$lt_cv_path_NM"
10693else
10694 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010695 if test -n "$DUMPBIN"; then :
10696 # Let the user override the test.
10697 else
10698 if test -n "$ac_tool_prefix"; then
10699 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010700 do
10701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10702set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010705if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010706 $as_echo_n "(cached) " >&6
10707else
10708 if test -n "$DUMPBIN"; then
10709 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10710else
10711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712for as_dir in $PATH
10713do
10714 IFS=$as_save_IFS
10715 test -z "$as_dir" && as_dir=.
10716 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010718 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10720 break 2
10721 fi
10722done
10723 done
10724IFS=$as_save_IFS
10725
10726fi
10727fi
10728DUMPBIN=$ac_cv_prog_DUMPBIN
10729if test -n "$DUMPBIN"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10731$as_echo "$DUMPBIN" >&6; }
10732else
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734$as_echo "no" >&6; }
10735fi
10736
10737
10738 test -n "$DUMPBIN" && break
10739 done
10740fi
10741if test -z "$DUMPBIN"; then
10742 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010743 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010744do
10745 # Extract the first word of "$ac_prog", so it can be a program name with args.
10746set dummy $ac_prog; ac_word=$2
10747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10748$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010749if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010750 $as_echo_n "(cached) " >&6
10751else
10752 if test -n "$ac_ct_DUMPBIN"; then
10753 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10754else
10755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756for as_dir in $PATH
10757do
10758 IFS=$as_save_IFS
10759 test -z "$as_dir" && as_dir=.
10760 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010762 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10764 break 2
10765 fi
10766done
10767 done
10768IFS=$as_save_IFS
10769
10770fi
10771fi
10772ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10773if test -n "$ac_ct_DUMPBIN"; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10775$as_echo "$ac_ct_DUMPBIN" >&6; }
10776else
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778$as_echo "no" >&6; }
10779fi
10780
10781
10782 test -n "$ac_ct_DUMPBIN" && break
10783done
10784
10785 if test "x$ac_ct_DUMPBIN" = x; then
10786 DUMPBIN=":"
10787 else
10788 case $cross_compiling:$ac_tool_warned in
10789yes:)
10790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10792ac_tool_warned=yes ;;
10793esac
10794 DUMPBIN=$ac_ct_DUMPBIN
10795 fi
10796fi
10797
cristy0c60a692010-11-04 01:09:47 +000010798 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10799 *COFF*)
10800 DUMPBIN="$DUMPBIN -symbols"
10801 ;;
10802 *)
10803 DUMPBIN=:
10804 ;;
10805 esac
10806 fi
cristy73bd4a52010-10-05 11:24:23 +000010807
10808 if test "$DUMPBIN" != ":"; then
10809 NM="$DUMPBIN"
10810 fi
10811fi
10812test -z "$NM" && NM=nm
10813
10814
10815
10816
10817
10818
10819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10820$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010821if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010822 $as_echo_n "(cached) " >&6
10823else
10824 lt_cv_nm_interface="BSD nm"
10825 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010826 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010827 (eval "$ac_compile" 2>conftest.err)
10828 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010829 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010830 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10831 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010832 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010833 cat conftest.out >&5
10834 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10835 lt_cv_nm_interface="MS dumpbin"
10836 fi
10837 rm -f conftest*
10838fi
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10840$as_echo "$lt_cv_nm_interface" >&6; }
10841
10842# find the maximum length of command line arguments
10843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10844$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010845if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010846 $as_echo_n "(cached) " >&6
10847else
10848 i=0
10849 teststring="ABCD"
10850
10851 case $build_os in
10852 msdosdjgpp*)
10853 # On DJGPP, this test can blow up pretty badly due to problems in libc
10854 # (any single argument exceeding 2000 bytes causes a buffer overrun
10855 # during glob expansion). Even if it were fixed, the result of this
10856 # check would be larger than it should be.
10857 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10858 ;;
10859
10860 gnu*)
10861 # Under GNU Hurd, this test is not required because there is
10862 # no limit to the length of command line arguments.
10863 # Libtool will interpret -1 as no limit whatsoever
10864 lt_cv_sys_max_cmd_len=-1;
10865 ;;
10866
10867 cygwin* | mingw* | cegcc*)
10868 # On Win9x/ME, this test blows up -- it succeeds, but takes
10869 # about 5 minutes as the teststring grows exponentially.
10870 # Worse, since 9x/ME are not pre-emptively multitasking,
10871 # you end up with a "frozen" computer, even though with patience
10872 # the test eventually succeeds (with a max line length of 256k).
10873 # Instead, let's just punt: use the minimum linelength reported by
10874 # all of the supported platforms: 8192 (on NT/2K/XP).
10875 lt_cv_sys_max_cmd_len=8192;
10876 ;;
10877
cristy0c60a692010-11-04 01:09:47 +000010878 mint*)
10879 # On MiNT this can take a long time and run out of memory.
10880 lt_cv_sys_max_cmd_len=8192;
10881 ;;
10882
cristy73bd4a52010-10-05 11:24:23 +000010883 amigaos*)
10884 # On AmigaOS with pdksh, this test takes hours, literally.
10885 # So we just punt and use a minimum line length of 8192.
10886 lt_cv_sys_max_cmd_len=8192;
10887 ;;
10888
10889 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10890 # This has been around since 386BSD, at least. Likely further.
10891 if test -x /sbin/sysctl; then
10892 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10893 elif test -x /usr/sbin/sysctl; then
10894 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10895 else
10896 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10897 fi
10898 # And add a safety zone
10899 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10901 ;;
10902
10903 interix*)
10904 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10905 lt_cv_sys_max_cmd_len=196608
10906 ;;
10907
cristy99bd5232011-12-07 14:38:20 +000010908 os2*)
10909 # The test takes a long time on OS/2.
10910 lt_cv_sys_max_cmd_len=8192
10911 ;;
10912
cristy73bd4a52010-10-05 11:24:23 +000010913 osf*)
10914 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10915 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10916 # nice to cause kernel panics so lets avoid the loop below.
10917 # First set a reasonable default.
10918 lt_cv_sys_max_cmd_len=16384
10919 #
10920 if test -x /sbin/sysconfig; then
10921 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10922 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10923 esac
10924 fi
10925 ;;
10926 sco3.2v5*)
10927 lt_cv_sys_max_cmd_len=102400
10928 ;;
10929 sysv5* | sco5v6* | sysv4.2uw2*)
10930 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10931 if test -n "$kargmax"; then
10932 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10933 else
10934 lt_cv_sys_max_cmd_len=32768
10935 fi
10936 ;;
10937 *)
10938 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10939 if test -n "$lt_cv_sys_max_cmd_len"; then
10940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10941 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10942 else
10943 # Make teststring a little bigger before we do anything with it.
10944 # a 1K string should be a reasonable start.
10945 for i in 1 2 3 4 5 6 7 8 ; do
10946 teststring=$teststring$teststring
10947 done
10948 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10949 # If test is not a shell built-in, we'll probably end up computing a
10950 # maximum length that is only half of the actual maximum length, but
10951 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010952 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010953 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010954 test $i != 17 # 1/2 MB should be enough
10955 do
10956 i=`expr $i + 1`
10957 teststring=$teststring$teststring
10958 done
10959 # Only check the string length outside the loop.
10960 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10961 teststring=
10962 # Add a significant safety factor because C++ compilers can tack on
10963 # massive amounts of additional arguments before passing them to the
10964 # linker. It appears as though 1/2 is a usable value.
10965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10966 fi
10967 ;;
10968 esac
10969
10970fi
10971
10972if test -n $lt_cv_sys_max_cmd_len ; then
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10974$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10975else
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10977$as_echo "none" >&6; }
10978fi
10979max_cmd_len=$lt_cv_sys_max_cmd_len
10980
10981
10982
10983
10984
10985
10986: ${CP="cp -f"}
10987: ${MV="mv -f"}
10988: ${RM="rm -f"}
10989
10990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10991$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10992# Try some XSI features
10993xsi_shell=no
10994( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010995 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10996 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010997 && eval 'test $(( 1 + 1 )) -eq 2 \
10998 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10999 && xsi_shell=yes
11000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11001$as_echo "$xsi_shell" >&6; }
11002
11003
11004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11005$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11006lt_shell_append=no
11007( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11008 >/dev/null 2>&1 \
11009 && lt_shell_append=yes
11010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11011$as_echo "$lt_shell_append" >&6; }
11012
11013
11014if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11015 lt_unset=unset
11016else
11017 lt_unset=false
11018fi
11019
11020
11021
11022
11023
11024# test EBCDIC or ASCII
11025case `echo X|tr X '\101'` in
11026 A) # ASCII based system
11027 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11028 lt_SP2NL='tr \040 \012'
11029 lt_NL2SP='tr \015\012 \040\040'
11030 ;;
11031 *) # EBCDIC based system
11032 lt_SP2NL='tr \100 \n'
11033 lt_NL2SP='tr \r\n \100\100'
11034 ;;
11035esac
11036
11037
11038
11039
11040
11041
11042
11043
11044
cristyda16f162011-02-19 23:52:17 +000011045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11046$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11047if ${lt_cv_to_host_file_cmd+:} false; then :
11048 $as_echo_n "(cached) " >&6
11049else
11050 case $host in
11051 *-*-mingw* )
11052 case $build in
11053 *-*-mingw* ) # actually msys
11054 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11055 ;;
11056 *-*-cygwin* )
11057 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11058 ;;
11059 * ) # otherwise, assume *nix
11060 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11061 ;;
11062 esac
11063 ;;
11064 *-*-cygwin* )
11065 case $build in
11066 *-*-mingw* ) # actually msys
11067 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11068 ;;
11069 *-*-cygwin* )
11070 lt_cv_to_host_file_cmd=func_convert_file_noop
11071 ;;
11072 * ) # otherwise, assume *nix
11073 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11074 ;;
11075 esac
11076 ;;
11077 * ) # unhandled hosts (and "normal" native builds)
11078 lt_cv_to_host_file_cmd=func_convert_file_noop
11079 ;;
11080esac
11081
11082fi
11083
11084to_host_file_cmd=$lt_cv_to_host_file_cmd
11085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11086$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11087
11088
11089
11090
11091
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11093$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11094if ${lt_cv_to_tool_file_cmd+:} false; then :
11095 $as_echo_n "(cached) " >&6
11096else
11097 #assume ordinary cross tools, or native build.
11098lt_cv_to_tool_file_cmd=func_convert_file_noop
11099case $host in
11100 *-*-mingw* )
11101 case $build in
11102 *-*-mingw* ) # actually msys
11103 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11104 ;;
11105 esac
11106 ;;
11107esac
11108
11109fi
11110
11111to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11113$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11114
11115
11116
11117
11118
cristy73bd4a52010-10-05 11:24:23 +000011119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11120$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011121if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011122 $as_echo_n "(cached) " >&6
11123else
11124 lt_cv_ld_reload_flag='-r'
11125fi
11126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11127$as_echo "$lt_cv_ld_reload_flag" >&6; }
11128reload_flag=$lt_cv_ld_reload_flag
11129case $reload_flag in
11130"" | " "*) ;;
11131*) reload_flag=" $reload_flag" ;;
11132esac
11133reload_cmds='$LD$reload_flag -o $output$reload_objs'
11134case $host_os in
cristyda16f162011-02-19 23:52:17 +000011135 cygwin* | mingw* | pw32* | cegcc*)
11136 if test "$GCC" != yes; then
11137 reload_cmds=false
11138 fi
11139 ;;
cristy73bd4a52010-10-05 11:24:23 +000011140 darwin*)
11141 if test "$GCC" = yes; then
11142 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11143 else
11144 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11145 fi
11146 ;;
11147esac
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157if test -n "$ac_tool_prefix"; then
11158 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11159set dummy ${ac_tool_prefix}objdump; ac_word=$2
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11161$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011162if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011163 $as_echo_n "(cached) " >&6
11164else
11165 if test -n "$OBJDUMP"; then
11166 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11167else
11168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169for as_dir in $PATH
11170do
11171 IFS=$as_save_IFS
11172 test -z "$as_dir" && as_dir=.
11173 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011175 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11177 break 2
11178 fi
11179done
11180 done
11181IFS=$as_save_IFS
11182
11183fi
11184fi
11185OBJDUMP=$ac_cv_prog_OBJDUMP
11186if test -n "$OBJDUMP"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11188$as_echo "$OBJDUMP" >&6; }
11189else
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191$as_echo "no" >&6; }
11192fi
11193
11194
11195fi
11196if test -z "$ac_cv_prog_OBJDUMP"; then
11197 ac_ct_OBJDUMP=$OBJDUMP
11198 # Extract the first word of "objdump", so it can be a program name with args.
11199set dummy objdump; ac_word=$2
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11201$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011202if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011203 $as_echo_n "(cached) " >&6
11204else
11205 if test -n "$ac_ct_OBJDUMP"; then
11206 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11207else
11208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11209for as_dir in $PATH
11210do
11211 IFS=$as_save_IFS
11212 test -z "$as_dir" && as_dir=.
11213 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011215 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11217 break 2
11218 fi
11219done
11220 done
11221IFS=$as_save_IFS
11222
11223fi
11224fi
11225ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11226if test -n "$ac_ct_OBJDUMP"; then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11228$as_echo "$ac_ct_OBJDUMP" >&6; }
11229else
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231$as_echo "no" >&6; }
11232fi
11233
11234 if test "x$ac_ct_OBJDUMP" = x; then
11235 OBJDUMP="false"
11236 else
11237 case $cross_compiling:$ac_tool_warned in
11238yes:)
11239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11241ac_tool_warned=yes ;;
11242esac
11243 OBJDUMP=$ac_ct_OBJDUMP
11244 fi
11245else
11246 OBJDUMP="$ac_cv_prog_OBJDUMP"
11247fi
11248
11249test -z "$OBJDUMP" && OBJDUMP=objdump
11250
11251
11252
11253
11254
11255
11256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11257$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011258if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011259 $as_echo_n "(cached) " >&6
11260else
11261 lt_cv_file_magic_cmd='$MAGIC_CMD'
11262lt_cv_file_magic_test_file=
11263lt_cv_deplibs_check_method='unknown'
11264# Need to set the preceding variable on all platforms that support
11265# interlibrary dependencies.
11266# 'none' -- dependencies not supported.
11267# `unknown' -- same as none, but documents that we really don't know.
11268# 'pass_all' -- all dependencies passed with no checks.
11269# 'test_compile' -- check by making test program.
11270# 'file_magic [[regex]]' -- check by looking for files in library path
11271# which responds to the $file_magic_cmd with a given extended regex.
11272# If you have `file' or equivalent on your system and you're not sure
11273# whether `pass_all' will *always* work, you probably want this one.
11274
11275case $host_os in
11276aix[4-9]*)
11277 lt_cv_deplibs_check_method=pass_all
11278 ;;
11279
11280beos*)
11281 lt_cv_deplibs_check_method=pass_all
11282 ;;
11283
11284bsdi[45]*)
11285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11286 lt_cv_file_magic_cmd='/usr/bin/file -L'
11287 lt_cv_file_magic_test_file=/shlib/libc.so
11288 ;;
11289
11290cygwin*)
11291 # func_win32_libid is a shell function defined in ltmain.sh
11292 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11293 lt_cv_file_magic_cmd='func_win32_libid'
11294 ;;
11295
11296mingw* | pw32*)
11297 # Base MSYS/MinGW do not provide the 'file' command needed by
11298 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11299 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011300 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11301 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011302 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11303 lt_cv_file_magic_cmd='func_win32_libid'
11304 else
cristy0c60a692010-11-04 01:09:47 +000011305 # Keep this pattern in sync with the one in func_win32_libid.
11306 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 +000011307 lt_cv_file_magic_cmd='$OBJDUMP -f'
11308 fi
11309 ;;
11310
cristy0c60a692010-11-04 01:09:47 +000011311cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011312 # use the weaker test based on 'objdump'. See mingw*.
11313 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11314 lt_cv_file_magic_cmd='$OBJDUMP -f'
11315 ;;
11316
11317darwin* | rhapsody*)
11318 lt_cv_deplibs_check_method=pass_all
11319 ;;
11320
11321freebsd* | dragonfly*)
11322 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11323 case $host_cpu in
11324 i*86 )
11325 # Not sure whether the presence of OpenBSD here was a mistake.
11326 # Let's accept both of them until this is cleared up.
11327 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11328 lt_cv_file_magic_cmd=/usr/bin/file
11329 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11330 ;;
11331 esac
11332 else
11333 lt_cv_deplibs_check_method=pass_all
11334 fi
11335 ;;
11336
11337gnu*)
11338 lt_cv_deplibs_check_method=pass_all
11339 ;;
11340
cristy0c60a692010-11-04 01:09:47 +000011341haiku*)
11342 lt_cv_deplibs_check_method=pass_all
11343 ;;
11344
cristy73bd4a52010-10-05 11:24:23 +000011345hpux10.20* | hpux11*)
11346 lt_cv_file_magic_cmd=/usr/bin/file
11347 case $host_cpu in
11348 ia64*)
11349 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11350 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11351 ;;
11352 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011353 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 +000011354 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11355 ;;
11356 *)
cristy0c60a692010-11-04 01:09:47 +000011357 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 +000011358 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11359 ;;
11360 esac
11361 ;;
11362
11363interix[3-9]*)
11364 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11366 ;;
11367
11368irix5* | irix6* | nonstopux*)
11369 case $LD in
11370 *-32|*"-32 ") libmagic=32-bit;;
11371 *-n32|*"-n32 ") libmagic=N32;;
11372 *-64|*"-64 ") libmagic=64-bit;;
11373 *) libmagic=never-match;;
11374 esac
11375 lt_cv_deplibs_check_method=pass_all
11376 ;;
11377
cristy99bd5232011-12-07 14:38:20 +000011378# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011379linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011380 lt_cv_deplibs_check_method=pass_all
11381 ;;
11382
11383netbsd*)
11384 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11386 else
11387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11388 fi
11389 ;;
11390
11391newos6*)
11392 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11393 lt_cv_file_magic_cmd=/usr/bin/file
11394 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11395 ;;
11396
11397*nto* | *qnx*)
11398 lt_cv_deplibs_check_method=pass_all
11399 ;;
11400
11401openbsd*)
11402 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11404 else
11405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11406 fi
11407 ;;
11408
11409osf3* | osf4* | osf5*)
11410 lt_cv_deplibs_check_method=pass_all
11411 ;;
11412
11413rdos*)
11414 lt_cv_deplibs_check_method=pass_all
11415 ;;
11416
11417solaris*)
11418 lt_cv_deplibs_check_method=pass_all
11419 ;;
11420
11421sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11422 lt_cv_deplibs_check_method=pass_all
11423 ;;
11424
11425sysv4 | sysv4.3*)
11426 case $host_vendor in
11427 motorola)
11428 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]'
11429 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11430 ;;
11431 ncr)
11432 lt_cv_deplibs_check_method=pass_all
11433 ;;
11434 sequent)
11435 lt_cv_file_magic_cmd='/bin/file'
11436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11437 ;;
11438 sni)
11439 lt_cv_file_magic_cmd='/bin/file'
11440 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11441 lt_cv_file_magic_test_file=/lib/libc.so
11442 ;;
11443 siemens)
11444 lt_cv_deplibs_check_method=pass_all
11445 ;;
11446 pc)
11447 lt_cv_deplibs_check_method=pass_all
11448 ;;
11449 esac
11450 ;;
11451
11452tpf*)
11453 lt_cv_deplibs_check_method=pass_all
11454 ;;
11455esac
11456
11457fi
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11459$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011460
11461file_magic_glob=
11462want_nocaseglob=no
11463if test "$build" = "$host"; then
11464 case $host_os in
11465 mingw* | pw32*)
11466 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11467 want_nocaseglob=yes
11468 else
11469 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11470 fi
11471 ;;
11472 esac
11473fi
11474
cristy73bd4a52010-10-05 11:24:23 +000011475file_magic_cmd=$lt_cv_file_magic_cmd
11476deplibs_check_method=$lt_cv_deplibs_check_method
11477test -z "$deplibs_check_method" && deplibs_check_method=unknown
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
cristyda16f162011-02-19 23:52:17 +000011490
11491
11492
11493
11494
11495
11496
11497
11498
11499
cristy73bd4a52010-10-05 11:24:23 +000011500if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011501 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11502set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011505if ${ac_cv_prog_DLLTOOL+:} false; then :
11506 $as_echo_n "(cached) " >&6
11507else
11508 if test -n "$DLLTOOL"; then
11509 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11510else
11511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512for as_dir in $PATH
11513do
11514 IFS=$as_save_IFS
11515 test -z "$as_dir" && as_dir=.
11516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011518 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11520 break 2
11521 fi
11522done
11523 done
11524IFS=$as_save_IFS
11525
11526fi
11527fi
11528DLLTOOL=$ac_cv_prog_DLLTOOL
11529if test -n "$DLLTOOL"; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11531$as_echo "$DLLTOOL" >&6; }
11532else
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534$as_echo "no" >&6; }
11535fi
11536
11537
11538fi
11539if test -z "$ac_cv_prog_DLLTOOL"; then
11540 ac_ct_DLLTOOL=$DLLTOOL
11541 # Extract the first word of "dlltool", so it can be a program name with args.
11542set dummy dlltool; ac_word=$2
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544$as_echo_n "checking for $ac_word... " >&6; }
11545if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11546 $as_echo_n "(cached) " >&6
11547else
11548 if test -n "$ac_ct_DLLTOOL"; then
11549 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11550else
11551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552for as_dir in $PATH
11553do
11554 IFS=$as_save_IFS
11555 test -z "$as_dir" && as_dir=.
11556 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011558 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11560 break 2
11561 fi
11562done
11563 done
11564IFS=$as_save_IFS
11565
11566fi
11567fi
11568ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11569if test -n "$ac_ct_DLLTOOL"; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11571$as_echo "$ac_ct_DLLTOOL" >&6; }
11572else
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574$as_echo "no" >&6; }
11575fi
11576
11577 if test "x$ac_ct_DLLTOOL" = x; then
11578 DLLTOOL="false"
11579 else
11580 case $cross_compiling:$ac_tool_warned in
11581yes:)
11582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11584ac_tool_warned=yes ;;
11585esac
11586 DLLTOOL=$ac_ct_DLLTOOL
11587 fi
11588else
11589 DLLTOOL="$ac_cv_prog_DLLTOOL"
11590fi
11591
11592test -z "$DLLTOOL" && DLLTOOL=dlltool
11593
11594
11595
11596
11597
11598
11599
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11601$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11602if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11603 $as_echo_n "(cached) " >&6
11604else
11605 lt_cv_sharedlib_from_linklib_cmd='unknown'
11606
11607case $host_os in
11608cygwin* | mingw* | pw32* | cegcc*)
11609 # two different shell functions defined in ltmain.sh
11610 # decide which to use based on capabilities of $DLLTOOL
11611 case `$DLLTOOL --help 2>&1` in
11612 *--identify-strict*)
11613 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11614 ;;
11615 *)
11616 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11617 ;;
11618 esac
11619 ;;
11620*)
11621 # fallback: assume linklib IS sharedlib
11622 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11623 ;;
11624esac
11625
11626fi
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11628$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11629sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11630test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11631
11632
11633
11634
11635
11636
11637
11638if test -n "$ac_tool_prefix"; then
11639 for ac_prog in ar
11640 do
11641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11642set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11644$as_echo_n "checking for $ac_word... " >&6; }
11645if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011646 $as_echo_n "(cached) " >&6
11647else
11648 if test -n "$AR"; then
11649 ac_cv_prog_AR="$AR" # Let the user override the test.
11650else
11651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11652for as_dir in $PATH
11653do
11654 IFS=$as_save_IFS
11655 test -z "$as_dir" && as_dir=.
11656 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011658 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11660 break 2
11661 fi
11662done
11663 done
11664IFS=$as_save_IFS
11665
11666fi
11667fi
11668AR=$ac_cv_prog_AR
11669if test -n "$AR"; then
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11671$as_echo "$AR" >&6; }
11672else
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11674$as_echo "no" >&6; }
11675fi
11676
11677
cristyda16f162011-02-19 23:52:17 +000011678 test -n "$AR" && break
11679 done
cristy73bd4a52010-10-05 11:24:23 +000011680fi
cristyda16f162011-02-19 23:52:17 +000011681if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011682 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011683 for ac_prog in ar
11684do
11685 # Extract the first word of "$ac_prog", so it can be a program name with args.
11686set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011689if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011690 $as_echo_n "(cached) " >&6
11691else
11692 if test -n "$ac_ct_AR"; then
11693 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11694else
11695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696for as_dir in $PATH
11697do
11698 IFS=$as_save_IFS
11699 test -z "$as_dir" && as_dir=.
11700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011702 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 break 2
11705 fi
11706done
11707 done
11708IFS=$as_save_IFS
11709
11710fi
11711fi
11712ac_ct_AR=$ac_cv_prog_ac_ct_AR
11713if test -n "$ac_ct_AR"; then
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11715$as_echo "$ac_ct_AR" >&6; }
11716else
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11718$as_echo "no" >&6; }
11719fi
11720
cristyda16f162011-02-19 23:52:17 +000011721
11722 test -n "$ac_ct_AR" && break
11723done
11724
cristy73bd4a52010-10-05 11:24:23 +000011725 if test "x$ac_ct_AR" = x; then
11726 AR="false"
11727 else
11728 case $cross_compiling:$ac_tool_warned in
11729yes:)
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11732ac_tool_warned=yes ;;
11733esac
11734 AR=$ac_ct_AR
11735 fi
cristy73bd4a52010-10-05 11:24:23 +000011736fi
11737
cristyda16f162011-02-19 23:52:17 +000011738: ${AR=ar}
11739: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
cristyda16f162011-02-19 23:52:17 +000011751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11752$as_echo_n "checking for archiver @FILE support... " >&6; }
11753if ${lt_cv_ar_at_file+:} false; then :
11754 $as_echo_n "(cached) " >&6
11755else
11756 lt_cv_ar_at_file=no
11757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758/* end confdefs.h. */
11759
11760int
11761main ()
11762{
11763
11764 ;
11765 return 0;
11766}
11767_ACEOF
11768if ac_fn_c_try_compile "$LINENO"; then :
11769 echo conftest.$ac_objext > conftest.lst
11770 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11772 (eval $lt_ar_try) 2>&5
11773 ac_status=$?
11774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11775 test $ac_status = 0; }
11776 if test "$ac_status" -eq 0; then
11777 # Ensure the archiver fails upon bogus file names.
11778 rm -f conftest.$ac_objext libconftest.a
11779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11780 (eval $lt_ar_try) 2>&5
11781 ac_status=$?
11782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11783 test $ac_status = 0; }
11784 if test "$ac_status" -ne 0; then
11785 lt_cv_ar_at_file=@
11786 fi
11787 fi
11788 rm -f conftest.* libconftest.a
11789
11790fi
11791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11792
11793fi
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11795$as_echo "$lt_cv_ar_at_file" >&6; }
11796
11797if test "x$lt_cv_ar_at_file" = xno; then
11798 archiver_list_spec=
11799else
11800 archiver_list_spec=$lt_cv_ar_at_file
11801fi
11802
11803
11804
11805
11806
11807
11808
cristy73bd4a52010-10-05 11:24:23 +000011809if test -n "$ac_tool_prefix"; then
11810 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11811set dummy ${ac_tool_prefix}strip; ac_word=$2
11812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011814if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011815 $as_echo_n "(cached) " >&6
11816else
11817 if test -n "$STRIP"; then
11818 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11819else
11820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821for as_dir in $PATH
11822do
11823 IFS=$as_save_IFS
11824 test -z "$as_dir" && as_dir=.
11825 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011827 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11829 break 2
11830 fi
11831done
11832 done
11833IFS=$as_save_IFS
11834
11835fi
11836fi
11837STRIP=$ac_cv_prog_STRIP
11838if test -n "$STRIP"; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11840$as_echo "$STRIP" >&6; }
11841else
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843$as_echo "no" >&6; }
11844fi
11845
11846
11847fi
11848if test -z "$ac_cv_prog_STRIP"; then
11849 ac_ct_STRIP=$STRIP
11850 # Extract the first word of "strip", so it can be a program name with args.
11851set dummy strip; ac_word=$2
11852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11853$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011854if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011855 $as_echo_n "(cached) " >&6
11856else
11857 if test -n "$ac_ct_STRIP"; then
11858 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11859else
11860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861for as_dir in $PATH
11862do
11863 IFS=$as_save_IFS
11864 test -z "$as_dir" && as_dir=.
11865 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011867 ac_cv_prog_ac_ct_STRIP="strip"
11868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869 break 2
11870 fi
11871done
11872 done
11873IFS=$as_save_IFS
11874
11875fi
11876fi
11877ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11878if test -n "$ac_ct_STRIP"; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11880$as_echo "$ac_ct_STRIP" >&6; }
11881else
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883$as_echo "no" >&6; }
11884fi
11885
11886 if test "x$ac_ct_STRIP" = x; then
11887 STRIP=":"
11888 else
11889 case $cross_compiling:$ac_tool_warned in
11890yes:)
11891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11893ac_tool_warned=yes ;;
11894esac
11895 STRIP=$ac_ct_STRIP
11896 fi
11897else
11898 STRIP="$ac_cv_prog_STRIP"
11899fi
11900
11901test -z "$STRIP" && STRIP=:
11902
11903
11904
11905
11906
11907
11908if test -n "$ac_tool_prefix"; then
11909 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11910set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011913if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011914 $as_echo_n "(cached) " >&6
11915else
11916 if test -n "$RANLIB"; then
11917 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11918else
11919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11920for as_dir in $PATH
11921do
11922 IFS=$as_save_IFS
11923 test -z "$as_dir" && as_dir=.
11924 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011926 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11928 break 2
11929 fi
11930done
11931 done
11932IFS=$as_save_IFS
11933
11934fi
11935fi
11936RANLIB=$ac_cv_prog_RANLIB
11937if test -n "$RANLIB"; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11939$as_echo "$RANLIB" >&6; }
11940else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942$as_echo "no" >&6; }
11943fi
11944
11945
11946fi
11947if test -z "$ac_cv_prog_RANLIB"; then
11948 ac_ct_RANLIB=$RANLIB
11949 # Extract the first word of "ranlib", so it can be a program name with args.
11950set dummy ranlib; ac_word=$2
11951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11952$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011953if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011954 $as_echo_n "(cached) " >&6
11955else
11956 if test -n "$ac_ct_RANLIB"; then
11957 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11958else
11959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960for as_dir in $PATH
11961do
11962 IFS=$as_save_IFS
11963 test -z "$as_dir" && as_dir=.
11964 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011966 ac_cv_prog_ac_ct_RANLIB="ranlib"
11967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11968 break 2
11969 fi
11970done
11971 done
11972IFS=$as_save_IFS
11973
11974fi
11975fi
11976ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11977if test -n "$ac_ct_RANLIB"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11979$as_echo "$ac_ct_RANLIB" >&6; }
11980else
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982$as_echo "no" >&6; }
11983fi
11984
11985 if test "x$ac_ct_RANLIB" = x; then
11986 RANLIB=":"
11987 else
11988 case $cross_compiling:$ac_tool_warned in
11989yes:)
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11992ac_tool_warned=yes ;;
11993esac
11994 RANLIB=$ac_ct_RANLIB
11995 fi
11996else
11997 RANLIB="$ac_cv_prog_RANLIB"
11998fi
11999
12000test -z "$RANLIB" && RANLIB=:
12001
12002
12003
12004
12005
12006
12007# Determine commands to create old-style static archives.
12008old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12009old_postinstall_cmds='chmod 644 $oldlib'
12010old_postuninstall_cmds=
12011
12012if test -n "$RANLIB"; then
12013 case $host_os in
12014 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012015 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012016 ;;
12017 *)
cristy99bd5232011-12-07 14:38:20 +000012018 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012019 ;;
12020 esac
cristy99bd5232011-12-07 14:38:20 +000012021 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012022fi
12023
cristy0c60a692010-11-04 01:09:47 +000012024case $host_os in
12025 darwin*)
12026 lock_old_archive_extraction=yes ;;
12027 *)
12028 lock_old_archive_extraction=no ;;
12029esac
12030
12031
12032
12033
12034
12035
cristy73bd4a52010-10-05 11:24:23 +000012036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069# If no C compiler was specified, use CC.
12070LTCC=${LTCC-"$CC"}
12071
12072# If no C compiler flags were specified, use CFLAGS.
12073LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12074
12075# Allow CC to be a program name with arguments.
12076compiler=$CC
12077
12078
12079# Check for command to grab the raw symbol name followed by C symbol from nm.
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12081$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012082if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012083 $as_echo_n "(cached) " >&6
12084else
12085
12086# These are sane defaults that work on at least a few old systems.
12087# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12088
12089# Character class describing NM global symbol codes.
12090symcode='[BCDEGRST]'
12091
12092# Regexp to match symbols that can be accessed directly from C.
12093sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12094
12095# Define system-specific variables.
12096case $host_os in
12097aix*)
12098 symcode='[BCDT]'
12099 ;;
12100cygwin* | mingw* | pw32* | cegcc*)
12101 symcode='[ABCDGISTW]'
12102 ;;
12103hpux*)
12104 if test "$host_cpu" = ia64; then
12105 symcode='[ABCDEGRST]'
12106 fi
12107 ;;
12108irix* | nonstopux*)
12109 symcode='[BCDEGRST]'
12110 ;;
12111osf*)
12112 symcode='[BCDEGQRST]'
12113 ;;
12114solaris*)
12115 symcode='[BDRT]'
12116 ;;
12117sco3.2v5*)
12118 symcode='[DT]'
12119 ;;
12120sysv4.2uw2*)
12121 symcode='[DT]'
12122 ;;
12123sysv5* | sco5v6* | unixware* | OpenUNIX*)
12124 symcode='[ABDT]'
12125 ;;
12126sysv4)
12127 symcode='[DFNSTU]'
12128 ;;
12129esac
12130
12131# If we're using GNU nm, then use its standard symbol codes.
12132case `$NM -V 2>&1` in
12133*GNU* | *'with BFD'*)
12134 symcode='[ABCDGIRSTW]' ;;
12135esac
12136
12137# Transform an extracted symbol line into a proper C declaration.
12138# Some systems (esp. on ia64) link data and code symbols differently,
12139# so use this general approach.
12140lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12141
12142# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012143lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12144lt_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 +000012145
12146# Handle CRLF in mingw tool chain
12147opt_cr=
12148case $build_os in
12149mingw*)
12150 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12151 ;;
12152esac
12153
12154# Try without a prefix underscore, then with it.
12155for ac_symprfx in "" "_"; do
12156
12157 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12158 symxfrm="\\1 $ac_symprfx\\2 \\2"
12159
12160 # Write the raw and C identifiers.
12161 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12162 # Fake it for dumpbin and say T for any non-static function
12163 # and D for any global variable.
12164 # Also find C++ and __fastcall symbols from MSVC++,
12165 # which start with @ or ?.
12166 lt_cv_sys_global_symbol_pipe="$AWK '"\
12167" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012168" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012169" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12170" \$ 0!~/External *\|/{next};"\
12171" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12172" {if(hide[section]) next};"\
12173" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12174" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12175" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12176" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12177" ' prfx=^$ac_symprfx"
12178 else
12179 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12180 fi
cristyda16f162011-02-19 23:52:17 +000012181 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012182
12183 # Check to see that the pipe works correctly.
12184 pipe_works=no
12185
12186 rm -f conftest*
12187 cat > conftest.$ac_ext <<_LT_EOF
12188#ifdef __cplusplus
12189extern "C" {
12190#endif
12191char nm_test_var;
12192void nm_test_func(void);
12193void nm_test_func(void){}
12194#ifdef __cplusplus
12195}
12196#endif
12197int main(){nm_test_var='a';nm_test_func();return(0);}
12198_LT_EOF
12199
12200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12201 (eval $ac_compile) 2>&5
12202 ac_status=$?
12203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12204 test $ac_status = 0; }; then
12205 # Now try to grab the symbols.
12206 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12208 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012209 ac_status=$?
12210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12211 test $ac_status = 0; } && test -s "$nlist"; then
12212 # Try sorting and uniquifying the output.
12213 if sort "$nlist" | uniq > "$nlist"T; then
12214 mv -f "$nlist"T "$nlist"
12215 else
12216 rm -f "$nlist"T
12217 fi
12218
12219 # Make sure that we snagged all the symbols we need.
12220 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12221 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12222 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012223/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12224#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12225/* DATA imports from DLLs on WIN32 con't be const, because runtime
12226 relocations are performed -- see ld's documentation on pseudo-relocs. */
12227# define LT_DLSYM_CONST
12228#elif defined(__osf__)
12229/* This system does not cope well with relocations in const data. */
12230# define LT_DLSYM_CONST
12231#else
12232# define LT_DLSYM_CONST const
12233#endif
12234
cristy73bd4a52010-10-05 11:24:23 +000012235#ifdef __cplusplus
12236extern "C" {
12237#endif
12238
12239_LT_EOF
12240 # Now generate the symbol file.
12241 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12242
12243 cat <<_LT_EOF >> conftest.$ac_ext
12244
12245/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012246LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012247 const char *name;
12248 void *address;
12249}
12250lt__PROGRAM__LTX_preloaded_symbols[] =
12251{
12252 { "@PROGRAM@", (void *) 0 },
12253_LT_EOF
12254 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12255 cat <<\_LT_EOF >> conftest.$ac_ext
12256 {0, (void *) 0}
12257};
12258
12259/* This works around a problem in FreeBSD linker */
12260#ifdef FREEBSD_WORKAROUND
12261static const void *lt_preloaded_setup() {
12262 return lt__PROGRAM__LTX_preloaded_symbols;
12263}
12264#endif
12265
12266#ifdef __cplusplus
12267}
12268#endif
12269_LT_EOF
12270 # Now try linking the two files.
12271 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012272 lt_globsym_save_LIBS=$LIBS
12273 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012274 LIBS="conftstm.$ac_objext"
12275 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12277 (eval $ac_link) 2>&5
12278 ac_status=$?
12279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12280 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12281 pipe_works=yes
12282 fi
cristyda16f162011-02-19 23:52:17 +000012283 LIBS=$lt_globsym_save_LIBS
12284 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012285 else
12286 echo "cannot find nm_test_func in $nlist" >&5
12287 fi
12288 else
12289 echo "cannot find nm_test_var in $nlist" >&5
12290 fi
12291 else
12292 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12293 fi
12294 else
12295 echo "$progname: failed program was:" >&5
12296 cat conftest.$ac_ext >&5
12297 fi
12298 rm -rf conftest* conftst*
12299
12300 # Do not use the global_symbol_pipe unless it works.
12301 if test "$pipe_works" = yes; then
12302 break
12303 else
12304 lt_cv_sys_global_symbol_pipe=
12305 fi
12306done
12307
12308fi
12309
12310if test -z "$lt_cv_sys_global_symbol_pipe"; then
12311 lt_cv_sys_global_symbol_to_cdecl=
12312fi
12313if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12315$as_echo "failed" >&6; }
12316else
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12318$as_echo "ok" >&6; }
12319fi
12320
cristyda16f162011-02-19 23:52:17 +000012321# Response file support.
12322if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12323 nm_file_list_spec='@'
12324elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12325 nm_file_list_spec='@'
12326fi
cristy73bd4a52010-10-05 11:24:23 +000012327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
cristyda16f162011-02-19 23:52:17 +000012348
12349
12350
12351
12352
12353
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12355$as_echo_n "checking for sysroot... " >&6; }
12356
12357# Check whether --with-sysroot was given.
12358if test "${with_sysroot+set}" = set; then :
12359 withval=$with_sysroot;
12360else
12361 with_sysroot=no
12362fi
12363
12364
12365lt_sysroot=
12366case ${with_sysroot} in #(
12367 yes)
12368 if test "$GCC" = yes; then
12369 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12370 fi
12371 ;; #(
12372 /*)
12373 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12374 ;; #(
12375 no|'')
12376 ;; #(
12377 *)
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12379$as_echo "${with_sysroot}" >&6; }
12380 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12381 ;;
12382esac
12383
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12385$as_echo "${lt_sysroot:-no}" >&6; }
12386
12387
12388
12389
12390
cristy73bd4a52010-10-05 11:24:23 +000012391# Check whether --enable-libtool-lock was given.
12392if test "${enable_libtool_lock+set}" = set; then :
12393 enableval=$enable_libtool_lock;
12394fi
12395
12396test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12397
12398# Some flags need to be propagated to the compiler or linker for good
12399# libtool support.
12400case $host in
12401ia64-*-hpux*)
12402 # Find out which ABI we are using.
12403 echo 'int i;' > conftest.$ac_ext
12404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12405 (eval $ac_compile) 2>&5
12406 ac_status=$?
12407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12408 test $ac_status = 0; }; then
12409 case `/usr/bin/file conftest.$ac_objext` in
12410 *ELF-32*)
12411 HPUX_IA64_MODE="32"
12412 ;;
12413 *ELF-64*)
12414 HPUX_IA64_MODE="64"
12415 ;;
12416 esac
12417 fi
12418 rm -rf conftest*
12419 ;;
12420*-*-irix6*)
12421 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012422 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12424 (eval $ac_compile) 2>&5
12425 ac_status=$?
12426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12427 test $ac_status = 0; }; then
12428 if test "$lt_cv_prog_gnu_ld" = yes; then
12429 case `/usr/bin/file conftest.$ac_objext` in
12430 *32-bit*)
12431 LD="${LD-ld} -melf32bsmip"
12432 ;;
12433 *N32*)
12434 LD="${LD-ld} -melf32bmipn32"
12435 ;;
12436 *64-bit*)
12437 LD="${LD-ld} -melf64bmip"
12438 ;;
12439 esac
12440 else
12441 case `/usr/bin/file conftest.$ac_objext` in
12442 *32-bit*)
12443 LD="${LD-ld} -32"
12444 ;;
12445 *N32*)
12446 LD="${LD-ld} -n32"
12447 ;;
12448 *64-bit*)
12449 LD="${LD-ld} -64"
12450 ;;
12451 esac
12452 fi
12453 fi
12454 rm -rf conftest*
12455 ;;
12456
12457x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12458s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12459 # Find out which ABI we are using.
12460 echo 'int i;' > conftest.$ac_ext
12461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12462 (eval $ac_compile) 2>&5
12463 ac_status=$?
12464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12465 test $ac_status = 0; }; then
12466 case `/usr/bin/file conftest.o` in
12467 *32-bit*)
12468 case $host in
12469 x86_64-*kfreebsd*-gnu)
12470 LD="${LD-ld} -m elf_i386_fbsd"
12471 ;;
12472 x86_64-*linux*)
12473 LD="${LD-ld} -m elf_i386"
12474 ;;
12475 ppc64-*linux*|powerpc64-*linux*)
12476 LD="${LD-ld} -m elf32ppclinux"
12477 ;;
12478 s390x-*linux*)
12479 LD="${LD-ld} -m elf_s390"
12480 ;;
12481 sparc64-*linux*)
12482 LD="${LD-ld} -m elf32_sparc"
12483 ;;
12484 esac
12485 ;;
12486 *64-bit*)
12487 case $host in
12488 x86_64-*kfreebsd*-gnu)
12489 LD="${LD-ld} -m elf_x86_64_fbsd"
12490 ;;
12491 x86_64-*linux*)
12492 LD="${LD-ld} -m elf_x86_64"
12493 ;;
12494 ppc*-*linux*|powerpc*-*linux*)
12495 LD="${LD-ld} -m elf64ppc"
12496 ;;
12497 s390*-*linux*|s390*-*tpf*)
12498 LD="${LD-ld} -m elf64_s390"
12499 ;;
12500 sparc*-*linux*)
12501 LD="${LD-ld} -m elf64_sparc"
12502 ;;
12503 esac
12504 ;;
12505 esac
12506 fi
12507 rm -rf conftest*
12508 ;;
12509
12510*-*-sco3.2v5*)
12511 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12512 SAVE_CFLAGS="$CFLAGS"
12513 CFLAGS="$CFLAGS -belf"
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12515$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012516if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012517 $as_echo_n "(cached) " >&6
12518else
12519 ac_ext=c
12520ac_cpp='$CPP $CPPFLAGS'
12521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12523ac_compiler_gnu=$ac_cv_c_compiler_gnu
12524
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526/* end confdefs.h. */
12527
12528int
12529main ()
12530{
12531
12532 ;
12533 return 0;
12534}
12535_ACEOF
12536if ac_fn_c_try_link "$LINENO"; then :
12537 lt_cv_cc_needs_belf=yes
12538else
12539 lt_cv_cc_needs_belf=no
12540fi
12541rm -f core conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 ac_ext=c
12544ac_cpp='$CPP $CPPFLAGS'
12545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12547ac_compiler_gnu=$ac_cv_c_compiler_gnu
12548
12549fi
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12551$as_echo "$lt_cv_cc_needs_belf" >&6; }
12552 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12553 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12554 CFLAGS="$SAVE_CFLAGS"
12555 fi
12556 ;;
cristy99bd5232011-12-07 14:38:20 +000012557*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012558 # Find out which ABI we are using.
12559 echo 'int i;' > conftest.$ac_ext
12560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12561 (eval $ac_compile) 2>&5
12562 ac_status=$?
12563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12564 test $ac_status = 0; }; then
12565 case `/usr/bin/file conftest.o` in
12566 *64-bit*)
12567 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012568 yes*)
12569 case $host in
12570 i?86-*-solaris*)
12571 LD="${LD-ld} -m elf_x86_64"
12572 ;;
12573 sparc*-*-solaris*)
12574 LD="${LD-ld} -m elf64_sparc"
12575 ;;
12576 esac
12577 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12578 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12579 LD="${LD-ld}_sol2"
12580 fi
12581 ;;
cristy73bd4a52010-10-05 11:24:23 +000012582 *)
12583 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12584 LD="${LD-ld} -64"
12585 fi
12586 ;;
12587 esac
12588 ;;
12589 esac
12590 fi
12591 rm -rf conftest*
12592 ;;
12593esac
12594
12595need_locks="$enable_libtool_lock"
12596
cristyda16f162011-02-19 23:52:17 +000012597if test -n "$ac_tool_prefix"; then
12598 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12599set dummy ${ac_tool_prefix}mt; ac_word=$2
12600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12601$as_echo_n "checking for $ac_word... " >&6; }
12602if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604else
12605 if test -n "$MANIFEST_TOOL"; then
12606 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12607else
12608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609for as_dir in $PATH
12610do
12611 IFS=$as_save_IFS
12612 test -z "$as_dir" && as_dir=.
12613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012615 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12617 break 2
12618 fi
12619done
12620 done
12621IFS=$as_save_IFS
12622
12623fi
12624fi
12625MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12626if test -n "$MANIFEST_TOOL"; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12628$as_echo "$MANIFEST_TOOL" >&6; }
12629else
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631$as_echo "no" >&6; }
12632fi
12633
12634
12635fi
12636if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12637 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12638 # Extract the first word of "mt", so it can be a program name with args.
12639set dummy mt; ac_word=$2
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12641$as_echo_n "checking for $ac_word... " >&6; }
12642if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12643 $as_echo_n "(cached) " >&6
12644else
12645 if test -n "$ac_ct_MANIFEST_TOOL"; then
12646 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12647else
12648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12649for as_dir in $PATH
12650do
12651 IFS=$as_save_IFS
12652 test -z "$as_dir" && as_dir=.
12653 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012655 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12657 break 2
12658 fi
12659done
12660 done
12661IFS=$as_save_IFS
12662
12663fi
12664fi
12665ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12666if test -n "$ac_ct_MANIFEST_TOOL"; then
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12668$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12669else
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12671$as_echo "no" >&6; }
12672fi
12673
12674 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12675 MANIFEST_TOOL=":"
12676 else
12677 case $cross_compiling:$ac_tool_warned in
12678yes:)
12679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12681ac_tool_warned=yes ;;
12682esac
12683 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12684 fi
12685else
12686 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12687fi
12688
12689test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12691$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12692if ${lt_cv_path_mainfest_tool+:} false; then :
12693 $as_echo_n "(cached) " >&6
12694else
12695 lt_cv_path_mainfest_tool=no
12696 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12697 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12698 cat conftest.err >&5
12699 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12700 lt_cv_path_mainfest_tool=yes
12701 fi
12702 rm -f conftest*
12703fi
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12705$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12706if test "x$lt_cv_path_mainfest_tool" != xyes; then
12707 MANIFEST_TOOL=:
12708fi
12709
12710
12711
12712
12713
cristy73bd4a52010-10-05 11:24:23 +000012714
12715 case $host_os in
12716 rhapsody* | darwin*)
12717 if test -n "$ac_tool_prefix"; then
12718 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12719set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12721$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012722if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012723 $as_echo_n "(cached) " >&6
12724else
12725 if test -n "$DSYMUTIL"; then
12726 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12727else
12728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729for as_dir in $PATH
12730do
12731 IFS=$as_save_IFS
12732 test -z "$as_dir" && as_dir=.
12733 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012735 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12737 break 2
12738 fi
12739done
12740 done
12741IFS=$as_save_IFS
12742
12743fi
12744fi
12745DSYMUTIL=$ac_cv_prog_DSYMUTIL
12746if test -n "$DSYMUTIL"; then
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12748$as_echo "$DSYMUTIL" >&6; }
12749else
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751$as_echo "no" >&6; }
12752fi
12753
12754
12755fi
12756if test -z "$ac_cv_prog_DSYMUTIL"; then
12757 ac_ct_DSYMUTIL=$DSYMUTIL
12758 # Extract the first word of "dsymutil", so it can be a program name with args.
12759set dummy dsymutil; ac_word=$2
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012762if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012763 $as_echo_n "(cached) " >&6
12764else
12765 if test -n "$ac_ct_DSYMUTIL"; then
12766 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12767else
12768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769for as_dir in $PATH
12770do
12771 IFS=$as_save_IFS
12772 test -z "$as_dir" && as_dir=.
12773 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012775 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12777 break 2
12778 fi
12779done
12780 done
12781IFS=$as_save_IFS
12782
12783fi
12784fi
12785ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12786if test -n "$ac_ct_DSYMUTIL"; then
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12788$as_echo "$ac_ct_DSYMUTIL" >&6; }
12789else
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791$as_echo "no" >&6; }
12792fi
12793
12794 if test "x$ac_ct_DSYMUTIL" = x; then
12795 DSYMUTIL=":"
12796 else
12797 case $cross_compiling:$ac_tool_warned in
12798yes:)
12799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12801ac_tool_warned=yes ;;
12802esac
12803 DSYMUTIL=$ac_ct_DSYMUTIL
12804 fi
12805else
12806 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12807fi
12808
12809 if test -n "$ac_tool_prefix"; then
12810 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12811set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12813$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012814if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012815 $as_echo_n "(cached) " >&6
12816else
12817 if test -n "$NMEDIT"; then
12818 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12819else
12820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821for as_dir in $PATH
12822do
12823 IFS=$as_save_IFS
12824 test -z "$as_dir" && as_dir=.
12825 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012827 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12829 break 2
12830 fi
12831done
12832 done
12833IFS=$as_save_IFS
12834
12835fi
12836fi
12837NMEDIT=$ac_cv_prog_NMEDIT
12838if test -n "$NMEDIT"; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12840$as_echo "$NMEDIT" >&6; }
12841else
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843$as_echo "no" >&6; }
12844fi
12845
12846
12847fi
12848if test -z "$ac_cv_prog_NMEDIT"; then
12849 ac_ct_NMEDIT=$NMEDIT
12850 # Extract the first word of "nmedit", so it can be a program name with args.
12851set dummy nmedit; ac_word=$2
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012854if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012855 $as_echo_n "(cached) " >&6
12856else
12857 if test -n "$ac_ct_NMEDIT"; then
12858 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12859else
12860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861for as_dir in $PATH
12862do
12863 IFS=$as_save_IFS
12864 test -z "$as_dir" && as_dir=.
12865 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012867 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12869 break 2
12870 fi
12871done
12872 done
12873IFS=$as_save_IFS
12874
12875fi
12876fi
12877ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12878if test -n "$ac_ct_NMEDIT"; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12880$as_echo "$ac_ct_NMEDIT" >&6; }
12881else
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
12884fi
12885
12886 if test "x$ac_ct_NMEDIT" = x; then
12887 NMEDIT=":"
12888 else
12889 case $cross_compiling:$ac_tool_warned in
12890yes:)
12891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12893ac_tool_warned=yes ;;
12894esac
12895 NMEDIT=$ac_ct_NMEDIT
12896 fi
12897else
12898 NMEDIT="$ac_cv_prog_NMEDIT"
12899fi
12900
12901 if test -n "$ac_tool_prefix"; then
12902 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12903set dummy ${ac_tool_prefix}lipo; ac_word=$2
12904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012906if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012907 $as_echo_n "(cached) " >&6
12908else
12909 if test -n "$LIPO"; then
12910 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12911else
12912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12913for as_dir in $PATH
12914do
12915 IFS=$as_save_IFS
12916 test -z "$as_dir" && as_dir=.
12917 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012919 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12921 break 2
12922 fi
12923done
12924 done
12925IFS=$as_save_IFS
12926
12927fi
12928fi
12929LIPO=$ac_cv_prog_LIPO
12930if test -n "$LIPO"; then
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12932$as_echo "$LIPO" >&6; }
12933else
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935$as_echo "no" >&6; }
12936fi
12937
12938
12939fi
12940if test -z "$ac_cv_prog_LIPO"; then
12941 ac_ct_LIPO=$LIPO
12942 # Extract the first word of "lipo", so it can be a program name with args.
12943set dummy lipo; ac_word=$2
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12945$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012946if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012947 $as_echo_n "(cached) " >&6
12948else
12949 if test -n "$ac_ct_LIPO"; then
12950 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12951else
12952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953for as_dir in $PATH
12954do
12955 IFS=$as_save_IFS
12956 test -z "$as_dir" && as_dir=.
12957 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012959 ac_cv_prog_ac_ct_LIPO="lipo"
12960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12961 break 2
12962 fi
12963done
12964 done
12965IFS=$as_save_IFS
12966
12967fi
12968fi
12969ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12970if test -n "$ac_ct_LIPO"; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12972$as_echo "$ac_ct_LIPO" >&6; }
12973else
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975$as_echo "no" >&6; }
12976fi
12977
12978 if test "x$ac_ct_LIPO" = x; then
12979 LIPO=":"
12980 else
12981 case $cross_compiling:$ac_tool_warned in
12982yes:)
12983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12985ac_tool_warned=yes ;;
12986esac
12987 LIPO=$ac_ct_LIPO
12988 fi
12989else
12990 LIPO="$ac_cv_prog_LIPO"
12991fi
12992
12993 if test -n "$ac_tool_prefix"; then
12994 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12995set dummy ${ac_tool_prefix}otool; ac_word=$2
12996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12997$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012998if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012999 $as_echo_n "(cached) " >&6
13000else
13001 if test -n "$OTOOL"; then
13002 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13003else
13004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005for as_dir in $PATH
13006do
13007 IFS=$as_save_IFS
13008 test -z "$as_dir" && as_dir=.
13009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013011 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13013 break 2
13014 fi
13015done
13016 done
13017IFS=$as_save_IFS
13018
13019fi
13020fi
13021OTOOL=$ac_cv_prog_OTOOL
13022if test -n "$OTOOL"; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13024$as_echo "$OTOOL" >&6; }
13025else
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027$as_echo "no" >&6; }
13028fi
13029
13030
13031fi
13032if test -z "$ac_cv_prog_OTOOL"; then
13033 ac_ct_OTOOL=$OTOOL
13034 # Extract the first word of "otool", so it can be a program name with args.
13035set dummy otool; ac_word=$2
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013038if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013039 $as_echo_n "(cached) " >&6
13040else
13041 if test -n "$ac_ct_OTOOL"; then
13042 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13043else
13044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045for as_dir in $PATH
13046do
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
13049 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013051 ac_cv_prog_ac_ct_OTOOL="otool"
13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13053 break 2
13054 fi
13055done
13056 done
13057IFS=$as_save_IFS
13058
13059fi
13060fi
13061ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13062if test -n "$ac_ct_OTOOL"; then
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13064$as_echo "$ac_ct_OTOOL" >&6; }
13065else
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067$as_echo "no" >&6; }
13068fi
13069
13070 if test "x$ac_ct_OTOOL" = x; then
13071 OTOOL=":"
13072 else
13073 case $cross_compiling:$ac_tool_warned in
13074yes:)
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13077ac_tool_warned=yes ;;
13078esac
13079 OTOOL=$ac_ct_OTOOL
13080 fi
13081else
13082 OTOOL="$ac_cv_prog_OTOOL"
13083fi
13084
13085 if test -n "$ac_tool_prefix"; then
13086 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13087set dummy ${ac_tool_prefix}otool64; ac_word=$2
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13089$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013090if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013091 $as_echo_n "(cached) " >&6
13092else
13093 if test -n "$OTOOL64"; then
13094 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13095else
13096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097for as_dir in $PATH
13098do
13099 IFS=$as_save_IFS
13100 test -z "$as_dir" && as_dir=.
13101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013103 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13105 break 2
13106 fi
13107done
13108 done
13109IFS=$as_save_IFS
13110
13111fi
13112fi
13113OTOOL64=$ac_cv_prog_OTOOL64
13114if test -n "$OTOOL64"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13116$as_echo "$OTOOL64" >&6; }
13117else
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119$as_echo "no" >&6; }
13120fi
13121
13122
13123fi
13124if test -z "$ac_cv_prog_OTOOL64"; then
13125 ac_ct_OTOOL64=$OTOOL64
13126 # Extract the first word of "otool64", so it can be a program name with args.
13127set dummy otool64; ac_word=$2
13128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13129$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013130if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013131 $as_echo_n "(cached) " >&6
13132else
13133 if test -n "$ac_ct_OTOOL64"; then
13134 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13135else
13136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137for as_dir in $PATH
13138do
13139 IFS=$as_save_IFS
13140 test -z "$as_dir" && as_dir=.
13141 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013143 ac_cv_prog_ac_ct_OTOOL64="otool64"
13144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13145 break 2
13146 fi
13147done
13148 done
13149IFS=$as_save_IFS
13150
13151fi
13152fi
13153ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13154if test -n "$ac_ct_OTOOL64"; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13156$as_echo "$ac_ct_OTOOL64" >&6; }
13157else
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159$as_echo "no" >&6; }
13160fi
13161
13162 if test "x$ac_ct_OTOOL64" = x; then
13163 OTOOL64=":"
13164 else
13165 case $cross_compiling:$ac_tool_warned in
13166yes:)
13167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13169ac_tool_warned=yes ;;
13170esac
13171 OTOOL64=$ac_ct_OTOOL64
13172 fi
13173else
13174 OTOOL64="$ac_cv_prog_OTOOL64"
13175fi
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13204$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013205if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013206 $as_echo_n "(cached) " >&6
13207else
13208 lt_cv_apple_cc_single_mod=no
13209 if test -z "${LT_MULTI_MODULE}"; then
13210 # By default we will add the -single_module flag. You can override
13211 # by either setting the environment variable LT_MULTI_MODULE
13212 # non-empty at configure time, or by adding -multi_module to the
13213 # link flags.
13214 rm -rf libconftest.dylib*
13215 echo "int foo(void){return 1;}" > conftest.c
13216 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13217-dynamiclib -Wl,-single_module conftest.c" >&5
13218 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13219 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13220 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013221 # If there is a non-empty error log, and "single_module"
13222 # appears in it, assume the flag caused a linker warning
13223 if test -s conftest.err && $GREP single_module conftest.err; then
13224 cat conftest.err >&5
13225 # Otherwise, if the output was created with a 0 exit code from
13226 # the compiler, it worked.
13227 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013228 lt_cv_apple_cc_single_mod=yes
13229 else
13230 cat conftest.err >&5
13231 fi
13232 rm -rf libconftest.dylib*
13233 rm -f conftest.*
13234 fi
13235fi
13236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13237$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013238
cristy73bd4a52010-10-05 11:24:23 +000013239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13240$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013241if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013242 $as_echo_n "(cached) " >&6
13243else
13244 lt_cv_ld_exported_symbols_list=no
13245 save_LDFLAGS=$LDFLAGS
13246 echo "_main" > conftest.sym
13247 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249/* end confdefs.h. */
13250
13251int
13252main ()
13253{
13254
13255 ;
13256 return 0;
13257}
13258_ACEOF
13259if ac_fn_c_try_link "$LINENO"; then :
13260 lt_cv_ld_exported_symbols_list=yes
13261else
13262 lt_cv_ld_exported_symbols_list=no
13263fi
13264rm -f core conftest.err conftest.$ac_objext \
13265 conftest$ac_exeext conftest.$ac_ext
13266 LDFLAGS="$save_LDFLAGS"
13267
13268fi
13269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13270$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013271
cristy0c60a692010-11-04 01:09:47 +000013272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13273$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013274if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013275 $as_echo_n "(cached) " >&6
13276else
13277 lt_cv_ld_force_load=no
13278 cat > conftest.c << _LT_EOF
13279int forced_loaded() { return 2;}
13280_LT_EOF
13281 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13282 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13283 echo "$AR cru libconftest.a conftest.o" >&5
13284 $AR cru libconftest.a conftest.o 2>&5
13285 echo "$RANLIB libconftest.a" >&5
13286 $RANLIB libconftest.a 2>&5
13287 cat > conftest.c << _LT_EOF
13288int main() { return 0;}
13289_LT_EOF
13290 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13291 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13292 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013293 if test -s conftest.err && $GREP force_load conftest.err; then
13294 cat conftest.err >&5
13295 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013296 lt_cv_ld_force_load=yes
13297 else
13298 cat conftest.err >&5
13299 fi
13300 rm -f conftest.err libconftest.a conftest conftest.c
13301 rm -rf conftest.dSYM
13302
13303fi
13304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13305$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013306 case $host_os in
13307 rhapsody* | darwin1.[012])
13308 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13309 darwin1.*)
13310 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13311 darwin*) # darwin 5.x on
13312 # if running on 10.5 or later, the deployment target defaults
13313 # to the OS version, if on x86, and 10.4, the deployment
13314 # target defaults to 10.4. Don't you love it?
13315 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13316 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13317 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13318 10.[012]*)
13319 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13320 10.*)
13321 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13322 esac
13323 ;;
13324 esac
13325 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13326 _lt_dar_single_mod='$single_module'
13327 fi
13328 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13329 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13330 else
13331 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13332 fi
cristy0c60a692010-11-04 01:09:47 +000013333 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013334 _lt_dsymutil='~$DSYMUTIL $lib || :'
13335 else
13336 _lt_dsymutil=
13337 fi
13338 ;;
13339 esac
13340
13341for ac_header in dlfcn.h
13342do :
13343 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13344"
cristyda16f162011-02-19 23:52:17 +000013345if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013346 cat >>confdefs.h <<_ACEOF
13347#define HAVE_DLFCN_H 1
13348_ACEOF
13349
13350fi
13351
13352done
13353
13354
13355
cristy73bd4a52010-10-05 11:24:23 +000013356
cristyda16f162011-02-19 23:52:17 +000013357func_stripname_cnf ()
13358{
13359 case ${2} in
13360 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13361 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13362 esac
13363} # func_stripname_cnf
13364
13365
13366
cristy73bd4a52010-10-05 11:24:23 +000013367
13368
13369# Set options
13370enable_win32_dll=yes
13371
13372case $host in
cristy0c60a692010-11-04 01:09:47 +000013373*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013374 if test -n "$ac_tool_prefix"; then
13375 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13376set dummy ${ac_tool_prefix}as; ac_word=$2
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013379if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013380 $as_echo_n "(cached) " >&6
13381else
13382 if test -n "$AS"; then
13383 ac_cv_prog_AS="$AS" # Let the user override the test.
13384else
13385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386for as_dir in $PATH
13387do
13388 IFS=$as_save_IFS
13389 test -z "$as_dir" && as_dir=.
13390 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013392 ac_cv_prog_AS="${ac_tool_prefix}as"
13393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13394 break 2
13395 fi
13396done
13397 done
13398IFS=$as_save_IFS
13399
13400fi
13401fi
13402AS=$ac_cv_prog_AS
13403if test -n "$AS"; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13405$as_echo "$AS" >&6; }
13406else
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408$as_echo "no" >&6; }
13409fi
13410
13411
13412fi
13413if test -z "$ac_cv_prog_AS"; then
13414 ac_ct_AS=$AS
13415 # Extract the first word of "as", so it can be a program name with args.
13416set dummy as; ac_word=$2
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13418$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013419if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013420 $as_echo_n "(cached) " >&6
13421else
13422 if test -n "$ac_ct_AS"; then
13423 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13424else
13425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426for as_dir in $PATH
13427do
13428 IFS=$as_save_IFS
13429 test -z "$as_dir" && as_dir=.
13430 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013432 ac_cv_prog_ac_ct_AS="as"
13433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434 break 2
13435 fi
13436done
13437 done
13438IFS=$as_save_IFS
13439
13440fi
13441fi
13442ac_ct_AS=$ac_cv_prog_ac_ct_AS
13443if test -n "$ac_ct_AS"; then
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13445$as_echo "$ac_ct_AS" >&6; }
13446else
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448$as_echo "no" >&6; }
13449fi
13450
13451 if test "x$ac_ct_AS" = x; then
13452 AS="false"
13453 else
13454 case $cross_compiling:$ac_tool_warned in
13455yes:)
13456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13458ac_tool_warned=yes ;;
13459esac
13460 AS=$ac_ct_AS
13461 fi
13462else
13463 AS="$ac_cv_prog_AS"
13464fi
13465
13466 if test -n "$ac_tool_prefix"; then
13467 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13468set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13470$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013471if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013472 $as_echo_n "(cached) " >&6
13473else
13474 if test -n "$DLLTOOL"; then
13475 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13476else
13477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478for as_dir in $PATH
13479do
13480 IFS=$as_save_IFS
13481 test -z "$as_dir" && as_dir=.
13482 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013484 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13486 break 2
13487 fi
13488done
13489 done
13490IFS=$as_save_IFS
13491
13492fi
13493fi
13494DLLTOOL=$ac_cv_prog_DLLTOOL
13495if test -n "$DLLTOOL"; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13497$as_echo "$DLLTOOL" >&6; }
13498else
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500$as_echo "no" >&6; }
13501fi
13502
13503
13504fi
13505if test -z "$ac_cv_prog_DLLTOOL"; then
13506 ac_ct_DLLTOOL=$DLLTOOL
13507 # Extract the first word of "dlltool", so it can be a program name with args.
13508set dummy dlltool; ac_word=$2
13509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13510$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013511if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013512 $as_echo_n "(cached) " >&6
13513else
13514 if test -n "$ac_ct_DLLTOOL"; then
13515 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13516else
13517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518for as_dir in $PATH
13519do
13520 IFS=$as_save_IFS
13521 test -z "$as_dir" && as_dir=.
13522 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013524 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13526 break 2
13527 fi
13528done
13529 done
13530IFS=$as_save_IFS
13531
13532fi
13533fi
13534ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13535if test -n "$ac_ct_DLLTOOL"; then
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13537$as_echo "$ac_ct_DLLTOOL" >&6; }
13538else
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13540$as_echo "no" >&6; }
13541fi
13542
13543 if test "x$ac_ct_DLLTOOL" = x; then
13544 DLLTOOL="false"
13545 else
13546 case $cross_compiling:$ac_tool_warned in
13547yes:)
13548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13550ac_tool_warned=yes ;;
13551esac
13552 DLLTOOL=$ac_ct_DLLTOOL
13553 fi
13554else
13555 DLLTOOL="$ac_cv_prog_DLLTOOL"
13556fi
13557
13558 if test -n "$ac_tool_prefix"; then
13559 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13560set dummy ${ac_tool_prefix}objdump; ac_word=$2
13561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13562$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013563if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013564 $as_echo_n "(cached) " >&6
13565else
13566 if test -n "$OBJDUMP"; then
13567 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13568else
13569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570for as_dir in $PATH
13571do
13572 IFS=$as_save_IFS
13573 test -z "$as_dir" && as_dir=.
13574 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013576 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13578 break 2
13579 fi
13580done
13581 done
13582IFS=$as_save_IFS
13583
13584fi
13585fi
13586OBJDUMP=$ac_cv_prog_OBJDUMP
13587if test -n "$OBJDUMP"; then
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13589$as_echo "$OBJDUMP" >&6; }
13590else
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13592$as_echo "no" >&6; }
13593fi
13594
13595
13596fi
13597if test -z "$ac_cv_prog_OBJDUMP"; then
13598 ac_ct_OBJDUMP=$OBJDUMP
13599 # Extract the first word of "objdump", so it can be a program name with args.
13600set dummy objdump; ac_word=$2
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13602$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013603if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013604 $as_echo_n "(cached) " >&6
13605else
13606 if test -n "$ac_ct_OBJDUMP"; then
13607 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13608else
13609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610for as_dir in $PATH
13611do
13612 IFS=$as_save_IFS
13613 test -z "$as_dir" && as_dir=.
13614 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013616 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13618 break 2
13619 fi
13620done
13621 done
13622IFS=$as_save_IFS
13623
13624fi
13625fi
13626ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13627if test -n "$ac_ct_OBJDUMP"; then
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13629$as_echo "$ac_ct_OBJDUMP" >&6; }
13630else
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632$as_echo "no" >&6; }
13633fi
13634
13635 if test "x$ac_ct_OBJDUMP" = x; then
13636 OBJDUMP="false"
13637 else
13638 case $cross_compiling:$ac_tool_warned in
13639yes:)
13640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13642ac_tool_warned=yes ;;
13643esac
13644 OBJDUMP=$ac_ct_OBJDUMP
13645 fi
13646else
13647 OBJDUMP="$ac_cv_prog_OBJDUMP"
13648fi
13649
13650 ;;
13651esac
13652
13653test -z "$AS" && AS=as
13654
13655
13656
13657
13658
13659test -z "$DLLTOOL" && DLLTOOL=dlltool
13660
13661
13662
13663
13664
13665test -z "$OBJDUMP" && OBJDUMP=objdump
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675 # Check whether --enable-shared was given.
13676if test "${enable_shared+set}" = set; then :
13677 enableval=$enable_shared; p=${PACKAGE-default}
13678 case $enableval in
13679 yes) enable_shared=yes ;;
13680 no) enable_shared=no ;;
13681 *)
13682 enable_shared=no
13683 # Look at the argument we got. We use all the common list separators.
13684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13685 for pkg in $enableval; do
13686 IFS="$lt_save_ifs"
13687 if test "X$pkg" = "X$p"; then
13688 enable_shared=yes
13689 fi
13690 done
13691 IFS="$lt_save_ifs"
13692 ;;
13693 esac
13694else
13695 enable_shared=yes
13696fi
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706 # Check whether --enable-static was given.
13707if test "${enable_static+set}" = set; then :
13708 enableval=$enable_static; p=${PACKAGE-default}
13709 case $enableval in
13710 yes) enable_static=yes ;;
13711 no) enable_static=no ;;
13712 *)
13713 enable_static=no
13714 # Look at the argument we got. We use all the common list separators.
13715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13716 for pkg in $enableval; do
13717 IFS="$lt_save_ifs"
13718 if test "X$pkg" = "X$p"; then
13719 enable_static=yes
13720 fi
13721 done
13722 IFS="$lt_save_ifs"
13723 ;;
13724 esac
13725else
13726 enable_static=yes
13727fi
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738# Check whether --with-pic was given.
13739if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013740 withval=$with_pic; lt_p=${PACKAGE-default}
13741 case $withval in
13742 yes|no) pic_mode=$withval ;;
13743 *)
13744 pic_mode=default
13745 # Look at the argument we got. We use all the common list separators.
13746 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13747 for lt_pkg in $withval; do
13748 IFS="$lt_save_ifs"
13749 if test "X$lt_pkg" = "X$lt_p"; then
13750 pic_mode=yes
13751 fi
13752 done
13753 IFS="$lt_save_ifs"
13754 ;;
13755 esac
cristy73bd4a52010-10-05 11:24:23 +000013756else
13757 pic_mode=default
13758fi
13759
13760
13761test -z "$pic_mode" && pic_mode=default
13762
13763
13764
13765
13766
13767
13768
13769 # Check whether --enable-fast-install was given.
13770if test "${enable_fast_install+set}" = set; then :
13771 enableval=$enable_fast_install; p=${PACKAGE-default}
13772 case $enableval in
13773 yes) enable_fast_install=yes ;;
13774 no) enable_fast_install=no ;;
13775 *)
13776 enable_fast_install=no
13777 # Look at the argument we got. We use all the common list separators.
13778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13779 for pkg in $enableval; do
13780 IFS="$lt_save_ifs"
13781 if test "X$pkg" = "X$p"; then
13782 enable_fast_install=yes
13783 fi
13784 done
13785 IFS="$lt_save_ifs"
13786 ;;
13787 esac
13788else
13789 enable_fast_install=yes
13790fi
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802# This can be used to rebuild libtool when needed
13803LIBTOOL_DEPS="$ltmain"
13804
13805# Always use our own libtool.
13806LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
cristy0c60a692010-11-04 01:09:47 +000013832
cristy99bd5232011-12-07 14:38:20 +000013833
13834
13835
13836
cristy73bd4a52010-10-05 11:24:23 +000013837test -z "$LN_S" && LN_S="ln -s"
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852if test -n "${ZSH_VERSION+set}" ; then
13853 setopt NO_GLOB_SUBST
13854fi
13855
13856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13857$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013858if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013859 $as_echo_n "(cached) " >&6
13860else
13861 rm -f .libs 2>/dev/null
13862mkdir .libs 2>/dev/null
13863if test -d .libs; then
13864 lt_cv_objdir=.libs
13865else
13866 # MS-DOS does not allow filenames that begin with a dot.
13867 lt_cv_objdir=_libs
13868fi
13869rmdir .libs 2>/dev/null
13870fi
13871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13872$as_echo "$lt_cv_objdir" >&6; }
13873objdir=$lt_cv_objdir
13874
13875
13876
13877
13878
13879cat >>confdefs.h <<_ACEOF
13880#define LT_OBJDIR "$lt_cv_objdir/"
13881_ACEOF
13882
13883
13884
13885
cristy73bd4a52010-10-05 11:24:23 +000013886case $host_os in
13887aix3*)
13888 # AIX sometimes has problems with the GCC collect2 program. For some
13889 # reason, if we set the COLLECT_NAMES environment variable, the problems
13890 # vanish in a puff of smoke.
13891 if test "X${COLLECT_NAMES+set}" != Xset; then
13892 COLLECT_NAMES=
13893 export COLLECT_NAMES
13894 fi
13895 ;;
13896esac
13897
cristy73bd4a52010-10-05 11:24:23 +000013898# Global variables:
13899ofile=libtool
13900can_build_shared=yes
13901
13902# All known linkers require a `.a' archive for static linking (except MSVC,
13903# which needs '.lib').
13904libext=a
13905
13906with_gnu_ld="$lt_cv_prog_gnu_ld"
13907
13908old_CC="$CC"
13909old_CFLAGS="$CFLAGS"
13910
13911# Set sane defaults for various variables
13912test -z "$CC" && CC=cc
13913test -z "$LTCC" && LTCC=$CC
13914test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13915test -z "$LD" && LD=ld
13916test -z "$ac_objext" && ac_objext=o
13917
13918for cc_temp in $compiler""; do
13919 case $cc_temp in
13920 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13921 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13922 \-*) ;;
13923 *) break;;
13924 esac
13925done
cristy0c60a692010-11-04 01:09:47 +000013926cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013927
13928
13929# Only perform the check for file, if the check method requires it
13930test -z "$MAGIC_CMD" && MAGIC_CMD=file
13931case $deplibs_check_method in
13932file_magic*)
13933 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13935$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013936if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013937 $as_echo_n "(cached) " >&6
13938else
13939 case $MAGIC_CMD in
13940[\\/*] | ?:[\\/]*)
13941 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13942 ;;
13943*)
13944 lt_save_MAGIC_CMD="$MAGIC_CMD"
13945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13946 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13947 for ac_dir in $ac_dummy; do
13948 IFS="$lt_save_ifs"
13949 test -z "$ac_dir" && ac_dir=.
13950 if test -f $ac_dir/${ac_tool_prefix}file; then
13951 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13952 if test -n "$file_magic_test_file"; then
13953 case $deplibs_check_method in
13954 "file_magic "*)
13955 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13958 $EGREP "$file_magic_regex" > /dev/null; then
13959 :
13960 else
13961 cat <<_LT_EOF 1>&2
13962
13963*** Warning: the command libtool uses to detect shared libraries,
13964*** $file_magic_cmd, produces output that libtool cannot recognize.
13965*** The result is that libtool may fail to recognize shared libraries
13966*** as such. This will affect the creation of libtool libraries that
13967*** depend on shared libraries, but programs linked with such libtool
13968*** libraries will work regardless of this problem. Nevertheless, you
13969*** may want to report the problem to your system manager and/or to
13970*** bug-libtool@gnu.org
13971
13972_LT_EOF
13973 fi ;;
13974 esac
13975 fi
13976 break
13977 fi
13978 done
13979 IFS="$lt_save_ifs"
13980 MAGIC_CMD="$lt_save_MAGIC_CMD"
13981 ;;
13982esac
13983fi
13984
13985MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13986if test -n "$MAGIC_CMD"; then
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13988$as_echo "$MAGIC_CMD" >&6; }
13989else
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13991$as_echo "no" >&6; }
13992fi
13993
13994
13995
13996
13997
13998if test -z "$lt_cv_path_MAGIC_CMD"; then
13999 if test -n "$ac_tool_prefix"; then
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14001$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014002if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014003 $as_echo_n "(cached) " >&6
14004else
14005 case $MAGIC_CMD in
14006[\\/*] | ?:[\\/]*)
14007 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14008 ;;
14009*)
14010 lt_save_MAGIC_CMD="$MAGIC_CMD"
14011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14012 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14013 for ac_dir in $ac_dummy; do
14014 IFS="$lt_save_ifs"
14015 test -z "$ac_dir" && ac_dir=.
14016 if test -f $ac_dir/file; then
14017 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14018 if test -n "$file_magic_test_file"; then
14019 case $deplibs_check_method in
14020 "file_magic "*)
14021 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14023 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14024 $EGREP "$file_magic_regex" > /dev/null; then
14025 :
14026 else
14027 cat <<_LT_EOF 1>&2
14028
14029*** Warning: the command libtool uses to detect shared libraries,
14030*** $file_magic_cmd, produces output that libtool cannot recognize.
14031*** The result is that libtool may fail to recognize shared libraries
14032*** as such. This will affect the creation of libtool libraries that
14033*** depend on shared libraries, but programs linked with such libtool
14034*** libraries will work regardless of this problem. Nevertheless, you
14035*** may want to report the problem to your system manager and/or to
14036*** bug-libtool@gnu.org
14037
14038_LT_EOF
14039 fi ;;
14040 esac
14041 fi
14042 break
14043 fi
14044 done
14045 IFS="$lt_save_ifs"
14046 MAGIC_CMD="$lt_save_MAGIC_CMD"
14047 ;;
14048esac
14049fi
14050
14051MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14052if test -n "$MAGIC_CMD"; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14054$as_echo "$MAGIC_CMD" >&6; }
14055else
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14057$as_echo "no" >&6; }
14058fi
14059
14060
14061 else
14062 MAGIC_CMD=:
14063 fi
14064fi
14065
14066 fi
14067 ;;
14068esac
14069
14070# Use C for the default configuration in the libtool script
14071
14072lt_save_CC="$CC"
14073ac_ext=c
14074ac_cpp='$CPP $CPPFLAGS'
14075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14077ac_compiler_gnu=$ac_cv_c_compiler_gnu
14078
14079
14080# Source file extension for C test sources.
14081ac_ext=c
14082
14083# Object file extension for compiled C test sources.
14084objext=o
14085objext=$objext
14086
14087# Code to be used in simple compile tests
14088lt_simple_compile_test_code="int some_variable = 0;"
14089
14090# Code to be used in simple link tests
14091lt_simple_link_test_code='int main(){return(0);}'
14092
14093
14094
14095
14096
14097
14098
14099# If no C compiler was specified, use CC.
14100LTCC=${LTCC-"$CC"}
14101
14102# If no C compiler flags were specified, use CFLAGS.
14103LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14104
14105# Allow CC to be a program name with arguments.
14106compiler=$CC
14107
14108# Save the default compiler, since it gets overwritten when the other
14109# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14110compiler_DEFAULT=$CC
14111
14112# save warnings/boilerplate of simple test code
14113ac_outfile=conftest.$ac_objext
14114echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14115eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14116_lt_compiler_boilerplate=`cat conftest.err`
14117$RM conftest*
14118
14119ac_outfile=conftest.$ac_objext
14120echo "$lt_simple_link_test_code" >conftest.$ac_ext
14121eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14122_lt_linker_boilerplate=`cat conftest.err`
14123$RM -r conftest*
14124
14125
14126## CAVEAT EMPTOR:
14127## There is no encapsulation within the following macros, do not change
14128## the running order or otherwise move them around unless you know exactly
14129## what you are doing...
14130if test -n "$compiler"; then
14131
14132lt_prog_compiler_no_builtin_flag=
14133
14134if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014135 case $cc_basename in
14136 nvcc*)
14137 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14138 *)
14139 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14140 esac
cristy73bd4a52010-10-05 11:24:23 +000014141
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14143$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014144if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014145 $as_echo_n "(cached) " >&6
14146else
14147 lt_cv_prog_compiler_rtti_exceptions=no
14148 ac_outfile=conftest.$ac_objext
14149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14150 lt_compiler_flag="-fno-rtti -fno-exceptions"
14151 # Insert the option either (1) after the last *FLAGS variable, or
14152 # (2) before a word containing "conftest.", or (3) at the end.
14153 # Note that $ac_compile itself does not contain backslashes and begins
14154 # with a dollar sign (not a hyphen), so the echo should work correctly.
14155 # The option is referenced via a variable to avoid confusing sed.
14156 lt_compile=`echo "$ac_compile" | $SED \
14157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14159 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014161 (eval "$lt_compile" 2>conftest.err)
14162 ac_status=$?
14163 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014165 if (exit $ac_status) && test -s "$ac_outfile"; then
14166 # The compiler can only warn and ignore the option if not recognized
14167 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014168 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14170 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14171 lt_cv_prog_compiler_rtti_exceptions=yes
14172 fi
14173 fi
14174 $RM conftest*
14175
14176fi
14177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14178$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14179
14180if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14181 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14182else
14183 :
14184fi
14185
14186fi
14187
14188
14189
14190
14191
14192
14193 lt_prog_compiler_wl=
14194lt_prog_compiler_pic=
14195lt_prog_compiler_static=
14196
cristy73bd4a52010-10-05 11:24:23 +000014197
14198 if test "$GCC" = yes; then
14199 lt_prog_compiler_wl='-Wl,'
14200 lt_prog_compiler_static='-static'
14201
14202 case $host_os in
14203 aix*)
14204 # All AIX code is PIC.
14205 if test "$host_cpu" = ia64; then
14206 # AIX 5 now supports IA64 processor
14207 lt_prog_compiler_static='-Bstatic'
14208 fi
14209 ;;
14210
14211 amigaos*)
14212 case $host_cpu in
14213 powerpc)
14214 # see comment about AmigaOS4 .so support
14215 lt_prog_compiler_pic='-fPIC'
14216 ;;
14217 m68k)
14218 # FIXME: we need at least 68020 code to build shared libraries, but
14219 # adding the `-m68020' flag to GCC prevents building anything better,
14220 # like `-m68040'.
14221 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14222 ;;
14223 esac
14224 ;;
14225
14226 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14227 # PIC is the default for these OSes.
14228 ;;
14229
14230 mingw* | cygwin* | pw32* | os2* | cegcc*)
14231 # This hack is so that the source file can tell whether it is being
14232 # built for inclusion in a dll (and should export symbols for example).
14233 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14234 # (--disable-auto-import) libraries
14235 lt_prog_compiler_pic='-DDLL_EXPORT'
14236 ;;
14237
14238 darwin* | rhapsody*)
14239 # PIC is the default on this platform
14240 # Common symbols not allowed in MH_DYLIB files
14241 lt_prog_compiler_pic='-fno-common'
14242 ;;
14243
cristy0c60a692010-11-04 01:09:47 +000014244 haiku*)
14245 # PIC is the default for Haiku.
14246 # The "-static" flag exists, but is broken.
14247 lt_prog_compiler_static=
14248 ;;
14249
cristy73bd4a52010-10-05 11:24:23 +000014250 hpux*)
14251 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14252 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14253 # sets the default TLS model and affects inlining.
14254 case $host_cpu in
14255 hppa*64*)
14256 # +Z the default
14257 ;;
14258 *)
14259 lt_prog_compiler_pic='-fPIC'
14260 ;;
14261 esac
14262 ;;
14263
14264 interix[3-9]*)
14265 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14266 # Instead, we relocate shared libraries at runtime.
14267 ;;
14268
14269 msdosdjgpp*)
14270 # Just because we use GCC doesn't mean we suddenly get shared libraries
14271 # on systems that don't support them.
14272 lt_prog_compiler_can_build_shared=no
14273 enable_shared=no
14274 ;;
14275
14276 *nto* | *qnx*)
14277 # QNX uses GNU C++, but need to define -shared option too, otherwise
14278 # it will coredump.
14279 lt_prog_compiler_pic='-fPIC -shared'
14280 ;;
14281
14282 sysv4*MP*)
14283 if test -d /usr/nec; then
14284 lt_prog_compiler_pic=-Kconform_pic
14285 fi
14286 ;;
14287
14288 *)
14289 lt_prog_compiler_pic='-fPIC'
14290 ;;
14291 esac
cristy0c60a692010-11-04 01:09:47 +000014292
14293 case $cc_basename in
14294 nvcc*) # Cuda Compiler Driver 2.2
14295 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014296 if test -n "$lt_prog_compiler_pic"; then
14297 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14298 fi
cristy0c60a692010-11-04 01:09:47 +000014299 ;;
14300 esac
cristy73bd4a52010-10-05 11:24:23 +000014301 else
14302 # PORTME Check for flag to pass linker flags through the system compiler.
14303 case $host_os in
14304 aix*)
14305 lt_prog_compiler_wl='-Wl,'
14306 if test "$host_cpu" = ia64; then
14307 # AIX 5 now supports IA64 processor
14308 lt_prog_compiler_static='-Bstatic'
14309 else
14310 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14311 fi
14312 ;;
14313
14314 mingw* | cygwin* | pw32* | os2* | cegcc*)
14315 # This hack is so that the source file can tell whether it is being
14316 # built for inclusion in a dll (and should export symbols for example).
14317 lt_prog_compiler_pic='-DDLL_EXPORT'
14318 ;;
14319
14320 hpux9* | hpux10* | hpux11*)
14321 lt_prog_compiler_wl='-Wl,'
14322 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14323 # not for PA HP-UX.
14324 case $host_cpu in
14325 hppa*64*|ia64*)
14326 # +Z the default
14327 ;;
14328 *)
14329 lt_prog_compiler_pic='+Z'
14330 ;;
14331 esac
14332 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14333 lt_prog_compiler_static='${wl}-a ${wl}archive'
14334 ;;
14335
14336 irix5* | irix6* | nonstopux*)
14337 lt_prog_compiler_wl='-Wl,'
14338 # PIC (with -KPIC) is the default.
14339 lt_prog_compiler_static='-non_shared'
14340 ;;
14341
cristy0c60a692010-11-04 01:09:47 +000014342 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014343 case $cc_basename in
14344 # old Intel for x86_64 which still supported -KPIC.
14345 ecc*)
14346 lt_prog_compiler_wl='-Wl,'
14347 lt_prog_compiler_pic='-KPIC'
14348 lt_prog_compiler_static='-static'
14349 ;;
14350 # icc used to be incompatible with GCC.
14351 # ICC 10 doesn't accept -KPIC any more.
14352 icc* | ifort*)
14353 lt_prog_compiler_wl='-Wl,'
14354 lt_prog_compiler_pic='-fPIC'
14355 lt_prog_compiler_static='-static'
14356 ;;
14357 # Lahey Fortran 8.1.
14358 lf95*)
14359 lt_prog_compiler_wl='-Wl,'
14360 lt_prog_compiler_pic='--shared'
14361 lt_prog_compiler_static='--static'
14362 ;;
cristyda16f162011-02-19 23:52:17 +000014363 nagfor*)
14364 # NAG Fortran compiler
14365 lt_prog_compiler_wl='-Wl,-Wl,,'
14366 lt_prog_compiler_pic='-PIC'
14367 lt_prog_compiler_static='-Bstatic'
14368 ;;
cristy0c60a692010-11-04 01:09:47 +000014369 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014370 # Portland Group compilers (*not* the Pentium gcc compiler,
14371 # which looks to be a dead project)
14372 lt_prog_compiler_wl='-Wl,'
14373 lt_prog_compiler_pic='-fpic'
14374 lt_prog_compiler_static='-Bstatic'
14375 ;;
14376 ccc*)
14377 lt_prog_compiler_wl='-Wl,'
14378 # All Alpha code is PIC.
14379 lt_prog_compiler_static='-non_shared'
14380 ;;
cristy0c60a692010-11-04 01:09:47 +000014381 xl* | bgxl* | bgf* | mpixl*)
14382 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014383 lt_prog_compiler_wl='-Wl,'
14384 lt_prog_compiler_pic='-qpic'
14385 lt_prog_compiler_static='-qstaticlink'
14386 ;;
14387 *)
14388 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014389 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014390 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14391 lt_prog_compiler_pic='-KPIC'
14392 lt_prog_compiler_static='-Bstatic'
14393 lt_prog_compiler_wl=''
14394 ;;
cristy99bd5232011-12-07 14:38:20 +000014395 *Sun\ F* | *Sun*Fortran*)
14396 lt_prog_compiler_pic='-KPIC'
14397 lt_prog_compiler_static='-Bstatic'
14398 lt_prog_compiler_wl='-Qoption ld '
14399 ;;
cristy73bd4a52010-10-05 11:24:23 +000014400 *Sun\ C*)
14401 # Sun C 5.9
14402 lt_prog_compiler_pic='-KPIC'
14403 lt_prog_compiler_static='-Bstatic'
14404 lt_prog_compiler_wl='-Wl,'
14405 ;;
cristy99bd5232011-12-07 14:38:20 +000014406 *Intel*\ [CF]*Compiler*)
14407 lt_prog_compiler_wl='-Wl,'
14408 lt_prog_compiler_pic='-fPIC'
14409 lt_prog_compiler_static='-static'
14410 ;;
14411 *Portland\ Group*)
14412 lt_prog_compiler_wl='-Wl,'
14413 lt_prog_compiler_pic='-fpic'
14414 lt_prog_compiler_static='-Bstatic'
14415 ;;
cristy73bd4a52010-10-05 11:24:23 +000014416 esac
14417 ;;
14418 esac
14419 ;;
14420
14421 newsos6)
14422 lt_prog_compiler_pic='-KPIC'
14423 lt_prog_compiler_static='-Bstatic'
14424 ;;
14425
14426 *nto* | *qnx*)
14427 # QNX uses GNU C++, but need to define -shared option too, otherwise
14428 # it will coredump.
14429 lt_prog_compiler_pic='-fPIC -shared'
14430 ;;
14431
14432 osf3* | osf4* | osf5*)
14433 lt_prog_compiler_wl='-Wl,'
14434 # All OSF/1 code is PIC.
14435 lt_prog_compiler_static='-non_shared'
14436 ;;
14437
14438 rdos*)
14439 lt_prog_compiler_static='-non_shared'
14440 ;;
14441
14442 solaris*)
14443 lt_prog_compiler_pic='-KPIC'
14444 lt_prog_compiler_static='-Bstatic'
14445 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014446 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014447 lt_prog_compiler_wl='-Qoption ld ';;
14448 *)
14449 lt_prog_compiler_wl='-Wl,';;
14450 esac
14451 ;;
14452
14453 sunos4*)
14454 lt_prog_compiler_wl='-Qoption ld '
14455 lt_prog_compiler_pic='-PIC'
14456 lt_prog_compiler_static='-Bstatic'
14457 ;;
14458
14459 sysv4 | sysv4.2uw2* | sysv4.3*)
14460 lt_prog_compiler_wl='-Wl,'
14461 lt_prog_compiler_pic='-KPIC'
14462 lt_prog_compiler_static='-Bstatic'
14463 ;;
14464
14465 sysv4*MP*)
14466 if test -d /usr/nec ;then
14467 lt_prog_compiler_pic='-Kconform_pic'
14468 lt_prog_compiler_static='-Bstatic'
14469 fi
14470 ;;
14471
14472 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14473 lt_prog_compiler_wl='-Wl,'
14474 lt_prog_compiler_pic='-KPIC'
14475 lt_prog_compiler_static='-Bstatic'
14476 ;;
14477
14478 unicos*)
14479 lt_prog_compiler_wl='-Wl,'
14480 lt_prog_compiler_can_build_shared=no
14481 ;;
14482
14483 uts4*)
14484 lt_prog_compiler_pic='-pic'
14485 lt_prog_compiler_static='-Bstatic'
14486 ;;
14487
14488 *)
14489 lt_prog_compiler_can_build_shared=no
14490 ;;
14491 esac
14492 fi
14493
14494case $host_os in
14495 # For platforms which do not support PIC, -DPIC is meaningless:
14496 *djgpp*)
14497 lt_prog_compiler_pic=
14498 ;;
14499 *)
14500 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14501 ;;
14502esac
cristy73bd4a52010-10-05 11:24:23 +000014503
cristyda16f162011-02-19 23:52:17 +000014504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14505$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14506if ${lt_cv_prog_compiler_pic+:} false; then :
14507 $as_echo_n "(cached) " >&6
14508else
14509 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14510fi
14511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14512$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14513lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014514
14515#
14516# Check to make sure the PIC flag actually works.
14517#
14518if test -n "$lt_prog_compiler_pic"; then
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14520$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014521if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014522 $as_echo_n "(cached) " >&6
14523else
14524 lt_cv_prog_compiler_pic_works=no
14525 ac_outfile=conftest.$ac_objext
14526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14527 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14528 # Insert the option either (1) after the last *FLAGS variable, or
14529 # (2) before a word containing "conftest.", or (3) at the end.
14530 # Note that $ac_compile itself does not contain backslashes and begins
14531 # with a dollar sign (not a hyphen), so the echo should work correctly.
14532 # The option is referenced via a variable to avoid confusing sed.
14533 lt_compile=`echo "$ac_compile" | $SED \
14534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14536 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014538 (eval "$lt_compile" 2>conftest.err)
14539 ac_status=$?
14540 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014542 if (exit $ac_status) && test -s "$ac_outfile"; then
14543 # The compiler can only warn and ignore the option if not recognized
14544 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014545 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14547 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14548 lt_cv_prog_compiler_pic_works=yes
14549 fi
14550 fi
14551 $RM conftest*
14552
14553fi
14554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14555$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14556
14557if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14558 case $lt_prog_compiler_pic in
14559 "" | " "*) ;;
14560 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14561 esac
14562else
14563 lt_prog_compiler_pic=
14564 lt_prog_compiler_can_build_shared=no
14565fi
14566
14567fi
14568
14569
14570
14571
14572
14573
cristyda16f162011-02-19 23:52:17 +000014574
14575
14576
14577
14578
cristy73bd4a52010-10-05 11:24:23 +000014579#
14580# Check to make sure the static flag actually works.
14581#
14582wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14584$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014585if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014586 $as_echo_n "(cached) " >&6
14587else
14588 lt_cv_prog_compiler_static_works=no
14589 save_LDFLAGS="$LDFLAGS"
14590 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14591 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14592 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14593 # The linker can only warn and ignore the option if not recognized
14594 # So say no if there are warnings
14595 if test -s conftest.err; then
14596 # Append any errors to the config.log.
14597 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014598 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14600 if diff conftest.exp conftest.er2 >/dev/null; then
14601 lt_cv_prog_compiler_static_works=yes
14602 fi
14603 else
14604 lt_cv_prog_compiler_static_works=yes
14605 fi
14606 fi
14607 $RM -r conftest*
14608 LDFLAGS="$save_LDFLAGS"
14609
14610fi
14611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14612$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14613
14614if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14615 :
14616else
14617 lt_prog_compiler_static=
14618fi
14619
14620
14621
14622
14623
14624
14625
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14627$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014628if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014629 $as_echo_n "(cached) " >&6
14630else
14631 lt_cv_prog_compiler_c_o=no
14632 $RM -r conftest 2>/dev/null
14633 mkdir conftest
14634 cd conftest
14635 mkdir out
14636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14637
14638 lt_compiler_flag="-o out/conftest2.$ac_objext"
14639 # Insert the option either (1) after the last *FLAGS variable, or
14640 # (2) before a word containing "conftest.", or (3) at the end.
14641 # Note that $ac_compile itself does not contain backslashes and begins
14642 # with a dollar sign (not a hyphen), so the echo should work correctly.
14643 lt_compile=`echo "$ac_compile" | $SED \
14644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14646 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014647 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014648 (eval "$lt_compile" 2>out/conftest.err)
14649 ac_status=$?
14650 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014652 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14653 then
14654 # The compiler can only warn and ignore the option if not recognized
14655 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014656 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014657 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14658 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14659 lt_cv_prog_compiler_c_o=yes
14660 fi
14661 fi
14662 chmod u+w . 2>&5
14663 $RM conftest*
14664 # SGI C++ compiler will create directory out/ii_files/ for
14665 # template instantiation
14666 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14667 $RM out/* && rmdir out
14668 cd ..
14669 $RM -r conftest
14670 $RM conftest*
14671
14672fi
14673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14674$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14675
14676
14677
14678
14679
14680
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14682$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014683if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014684 $as_echo_n "(cached) " >&6
14685else
14686 lt_cv_prog_compiler_c_o=no
14687 $RM -r conftest 2>/dev/null
14688 mkdir conftest
14689 cd conftest
14690 mkdir out
14691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14692
14693 lt_compiler_flag="-o out/conftest2.$ac_objext"
14694 # Insert the option either (1) after the last *FLAGS variable, or
14695 # (2) before a word containing "conftest.", or (3) at the end.
14696 # Note that $ac_compile itself does not contain backslashes and begins
14697 # with a dollar sign (not a hyphen), so the echo should work correctly.
14698 lt_compile=`echo "$ac_compile" | $SED \
14699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14701 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014702 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014703 (eval "$lt_compile" 2>out/conftest.err)
14704 ac_status=$?
14705 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014707 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14708 then
14709 # The compiler can only warn and ignore the option if not recognized
14710 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014711 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014712 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14713 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14714 lt_cv_prog_compiler_c_o=yes
14715 fi
14716 fi
14717 chmod u+w . 2>&5
14718 $RM conftest*
14719 # SGI C++ compiler will create directory out/ii_files/ for
14720 # template instantiation
14721 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14722 $RM out/* && rmdir out
14723 cd ..
14724 $RM -r conftest
14725 $RM conftest*
14726
14727fi
14728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14729$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14730
14731
14732
14733
14734hard_links="nottested"
14735if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14736 # do not overwrite the value of need_locks provided by the user
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14738$as_echo_n "checking if we can lock with hard links... " >&6; }
14739 hard_links=yes
14740 $RM conftest*
14741 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14742 touch conftest.a
14743 ln conftest.a conftest.b 2>&5 || hard_links=no
14744 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14746$as_echo "$hard_links" >&6; }
14747 if test "$hard_links" = no; then
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14749$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14750 need_locks=warn
14751 fi
14752else
14753 need_locks=no
14754fi
14755
14756
14757
14758
14759
14760
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14762$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14763
14764 runpath_var=
14765 allow_undefined_flag=
14766 always_export_symbols=no
14767 archive_cmds=
14768 archive_expsym_cmds=
14769 compiler_needs_object=no
14770 enable_shared_with_static_runtimes=no
14771 export_dynamic_flag_spec=
14772 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14773 hardcode_automatic=no
14774 hardcode_direct=no
14775 hardcode_direct_absolute=no
14776 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014777 hardcode_libdir_separator=
14778 hardcode_minus_L=no
14779 hardcode_shlibpath_var=unsupported
14780 inherit_rpath=no
14781 link_all_deplibs=unknown
14782 module_cmds=
14783 module_expsym_cmds=
14784 old_archive_from_new_cmds=
14785 old_archive_from_expsyms_cmds=
14786 thread_safe_flag_spec=
14787 whole_archive_flag_spec=
14788 # include_expsyms should be a list of space-separated symbols to be *always*
14789 # included in the symbol list
14790 include_expsyms=
14791 # exclude_expsyms can be an extended regexp of symbols to exclude
14792 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14793 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14794 # as well as any symbol that contains `d'.
14795 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14796 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14797 # platforms (ab)use it in PIC code, but their linkers get confused if
14798 # the symbol is explicitly referenced. Since portable code cannot
14799 # rely on this symbol name, it's probably fine to never include it in
14800 # preloaded symbol tables.
14801 # Exclude shared library initialization/finalization symbols.
14802 extract_expsyms_cmds=
14803
14804 case $host_os in
14805 cygwin* | mingw* | pw32* | cegcc*)
14806 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14807 # When not using gcc, we currently assume that we are using
14808 # Microsoft Visual C++.
14809 if test "$GCC" != yes; then
14810 with_gnu_ld=no
14811 fi
14812 ;;
14813 interix*)
14814 # we just hope/assume this is gcc and not c89 (= MSVC++)
14815 with_gnu_ld=yes
14816 ;;
14817 openbsd*)
14818 with_gnu_ld=no
14819 ;;
14820 esac
14821
14822 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014823
14824 # On some targets, GNU ld is compatible enough with the native linker
14825 # that we're better off using the native interface for both.
14826 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014827 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014828 case $host_os in
14829 aix*)
14830 # The AIX port of GNU ld has always aspired to compatibility
14831 # with the native linker. However, as the warning in the GNU ld
14832 # block says, versions before 2.19.5* couldn't really create working
14833 # shared libraries, regardless of the interface used.
14834 case `$LD -v 2>&1` in
14835 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14836 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14837 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14838 *)
14839 lt_use_gnu_ld_interface=yes
14840 ;;
14841 esac
14842 ;;
14843 *)
14844 lt_use_gnu_ld_interface=yes
14845 ;;
14846 esac
14847 fi
14848
14849 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014850 # If archive_cmds runs LD, not CC, wlarc should be empty
14851 wlarc='${wl}'
14852
14853 # Set some defaults for GNU ld with shared library support. These
14854 # are reset later if shared libraries are not supported. Putting them
14855 # here allows them to be overridden if necessary.
14856 runpath_var=LD_RUN_PATH
14857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14858 export_dynamic_flag_spec='${wl}--export-dynamic'
14859 # ancient GNU ld didn't support --whole-archive et. al.
14860 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14861 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14862 else
14863 whole_archive_flag_spec=
14864 fi
14865 supports_anon_versioning=no
14866 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014867 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014868 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14869 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14870 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14871 *\ 2.11.*) ;; # other 2.11 versions
14872 *) supports_anon_versioning=yes ;;
14873 esac
14874
14875 # See if GNU ld supports shared libraries.
14876 case $host_os in
14877 aix[3-9]*)
14878 # On AIX/PPC, the GNU linker is very broken
14879 if test "$host_cpu" != ia64; then
14880 ld_shlibs=no
14881 cat <<_LT_EOF 1>&2
14882
cristy0c60a692010-11-04 01:09:47 +000014883*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014884*** to be unable to reliably create shared libraries on AIX.
14885*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014886*** really care for shared libraries, you may want to install binutils
14887*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14888*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014889
14890_LT_EOF
14891 fi
14892 ;;
14893
14894 amigaos*)
14895 case $host_cpu in
14896 powerpc)
14897 # see comment about AmigaOS4 .so support
14898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14899 archive_expsym_cmds=''
14900 ;;
14901 m68k)
14902 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)'
14903 hardcode_libdir_flag_spec='-L$libdir'
14904 hardcode_minus_L=yes
14905 ;;
14906 esac
14907 ;;
14908
14909 beos*)
14910 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14911 allow_undefined_flag=unsupported
14912 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14913 # support --undefined. This deserves some investigation. FIXME
14914 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14915 else
14916 ld_shlibs=no
14917 fi
14918 ;;
14919
14920 cygwin* | mingw* | pw32* | cegcc*)
14921 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14922 # as there is no search path for DLLs.
14923 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014924 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014925 allow_undefined_flag=unsupported
14926 always_export_symbols=no
14927 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014928 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'
14929 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 +000014930
14931 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14933 # If the export-symbols file already is a .def file (1st line
14934 # is EXPORTS), use it as is; otherwise, prepend...
14935 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14936 cp $export_symbols $output_objdir/$soname.def;
14937 else
14938 echo EXPORTS > $output_objdir/$soname.def;
14939 cat $export_symbols >> $output_objdir/$soname.def;
14940 fi~
14941 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14942 else
14943 ld_shlibs=no
14944 fi
14945 ;;
14946
cristy0c60a692010-11-04 01:09:47 +000014947 haiku*)
14948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14949 link_all_deplibs=yes
14950 ;;
14951
cristy73bd4a52010-10-05 11:24:23 +000014952 interix[3-9]*)
14953 hardcode_direct=no
14954 hardcode_shlibpath_var=no
14955 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14956 export_dynamic_flag_spec='${wl}-E'
14957 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14958 # Instead, shared libraries are loaded at an image base (0x10000000 by
14959 # default) and relocated if they conflict, which is a slow very memory
14960 # consuming and fragmenting process. To avoid this, we pick a random,
14961 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14962 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14963 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14964 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'
14965 ;;
14966
cristy0c60a692010-11-04 01:09:47 +000014967 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014968 tmp_diet=no
14969 if test "$host_os" = linux-dietlibc; then
14970 case $cc_basename in
14971 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14972 esac
14973 fi
14974 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14975 && test "$tmp_diet" = no
14976 then
cristyda16f162011-02-19 23:52:17 +000014977 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014978 tmp_sharedflag='-shared'
14979 case $cc_basename,$host_cpu in
14980 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014981 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 +000014982 tmp_addflag=' $pic_flag'
14983 ;;
cristy0c60a692010-11-04 01:09:47 +000014984 pgf77* | pgf90* | pgf95* | pgfortran*)
14985 # Portland Group f77 and f90 compilers
14986 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 +000014987 tmp_addflag=' $pic_flag -Mnomain' ;;
14988 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14989 tmp_addflag=' -i_dynamic' ;;
14990 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14991 tmp_addflag=' -i_dynamic -nofor_main' ;;
14992 ifc* | ifort*) # Intel Fortran compiler
14993 tmp_addflag=' -nofor_main' ;;
14994 lf95*) # Lahey Fortran 8.1
14995 whole_archive_flag_spec=
14996 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014997 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014998 tmp_sharedflag='-qmkshrobj'
14999 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015000 nvcc*) # Cuda Compiler Driver 2.2
15001 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'
15002 compiler_needs_object=yes
15003 ;;
cristy73bd4a52010-10-05 11:24:23 +000015004 esac
15005 case `$CC -V 2>&1 | sed 5q` in
15006 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015007 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 +000015008 compiler_needs_object=yes
15009 tmp_sharedflag='-G' ;;
15010 *Sun\ F*) # Sun Fortran 8.3
15011 tmp_sharedflag='-G' ;;
15012 esac
15013 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15014
15015 if test "x$supports_anon_versioning" = xyes; then
15016 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15017 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15018 echo "local: *; };" >> $output_objdir/$libname.ver~
15019 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15020 fi
15021
15022 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015023 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015024 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15025 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015027 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015028 if test "x$supports_anon_versioning" = xyes; then
15029 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15030 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15031 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015032 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015033 fi
15034 ;;
15035 esac
15036 else
15037 ld_shlibs=no
15038 fi
15039 ;;
15040
15041 netbsd*)
15042 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15043 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15044 wlarc=
15045 else
cristyda16f162011-02-19 23:52:17 +000015046 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15047 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 +000015048 fi
15049 ;;
15050
15051 solaris*)
15052 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15053 ld_shlibs=no
15054 cat <<_LT_EOF 1>&2
15055
15056*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15057*** create shared libraries on Solaris systems. Therefore, libtool
15058*** is disabling shared libraries support. We urge you to upgrade GNU
15059*** binutils to release 2.9.1 or newer. Another option is to modify
15060*** your PATH or compiler configuration so that the native linker is
15061*** used, and then restart.
15062
15063_LT_EOF
15064 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015065 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15066 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 +000015067 else
15068 ld_shlibs=no
15069 fi
15070 ;;
15071
15072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15073 case `$LD -v 2>&1` in
15074 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15075 ld_shlibs=no
15076 cat <<_LT_EOF 1>&2
15077
15078*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15079*** reliably create shared libraries on SCO systems. Therefore, libtool
15080*** is disabling shared libraries support. We urge you to upgrade GNU
15081*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15082*** your PATH or compiler configuration so that the native linker is
15083*** used, and then restart.
15084
15085_LT_EOF
15086 ;;
15087 *)
15088 # For security reasons, it is highly recommended that you always
15089 # use absolute paths for naming shared libraries, and exclude the
15090 # DT_RUNPATH tag from executables and libraries. But doing so
15091 # requires that you compile everything twice, which is a pain.
15092 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15095 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15096 else
15097 ld_shlibs=no
15098 fi
15099 ;;
15100 esac
15101 ;;
15102
15103 sunos4*)
15104 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15105 wlarc=
15106 hardcode_direct=yes
15107 hardcode_shlibpath_var=no
15108 ;;
15109
15110 *)
15111 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015112 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15113 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015114 else
15115 ld_shlibs=no
15116 fi
15117 ;;
15118 esac
15119
15120 if test "$ld_shlibs" = no; then
15121 runpath_var=
15122 hardcode_libdir_flag_spec=
15123 export_dynamic_flag_spec=
15124 whole_archive_flag_spec=
15125 fi
15126 else
15127 # PORTME fill in a description of your system's linker (not GNU ld)
15128 case $host_os in
15129 aix3*)
15130 allow_undefined_flag=unsupported
15131 always_export_symbols=yes
15132 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'
15133 # Note: this linker hardcodes the directories in LIBPATH if there
15134 # are no directories specified by -L.
15135 hardcode_minus_L=yes
15136 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15137 # Neither direct hardcoding nor static linking is supported with a
15138 # broken collect2.
15139 hardcode_direct=unsupported
15140 fi
15141 ;;
15142
15143 aix[4-9]*)
15144 if test "$host_cpu" = ia64; then
15145 # On IA64, the linker does run time linking by default, so we don't
15146 # have to do anything special.
15147 aix_use_runtimelinking=no
15148 exp_sym_flag='-Bexport'
15149 no_entry_flag=""
15150 else
15151 # If we're using GNU nm, then we don't want the "-C" option.
15152 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015153 # Also, AIX nm treats weak defined symbols like other global
15154 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015155 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015156 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 +000015157 else
15158 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'
15159 fi
15160 aix_use_runtimelinking=no
15161
15162 # Test if we are trying to use run time linking or normal
15163 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15164 # need to do runtime linking.
15165 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15166 for ld_flag in $LDFLAGS; do
15167 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15168 aix_use_runtimelinking=yes
15169 break
15170 fi
15171 done
15172 ;;
15173 esac
15174
15175 exp_sym_flag='-bexport'
15176 no_entry_flag='-bnoentry'
15177 fi
15178
15179 # When large executables or shared objects are built, AIX ld can
15180 # have problems creating the table of contents. If linking a library
15181 # or program results in "error TOC overflow" add -mminimal-toc to
15182 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15183 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15184
15185 archive_cmds=''
15186 hardcode_direct=yes
15187 hardcode_direct_absolute=yes
15188 hardcode_libdir_separator=':'
15189 link_all_deplibs=yes
15190 file_list_spec='${wl}-f,'
15191
15192 if test "$GCC" = yes; then
15193 case $host_os in aix4.[012]|aix4.[012].*)
15194 # We only want to do this on AIX 4.2 and lower, the check
15195 # below for broken collect2 doesn't work under 4.3+
15196 collect2name=`${CC} -print-prog-name=collect2`
15197 if test -f "$collect2name" &&
15198 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15199 then
15200 # We have reworked collect2
15201 :
15202 else
15203 # We have old collect2
15204 hardcode_direct=unsupported
15205 # It fails to find uninstalled libraries when the uninstalled
15206 # path is not listed in the libpath. Setting hardcode_minus_L
15207 # to unsupported forces relinking
15208 hardcode_minus_L=yes
15209 hardcode_libdir_flag_spec='-L$libdir'
15210 hardcode_libdir_separator=
15211 fi
15212 ;;
15213 esac
15214 shared_flag='-shared'
15215 if test "$aix_use_runtimelinking" = yes; then
15216 shared_flag="$shared_flag "'${wl}-G'
15217 fi
15218 else
15219 # not using gcc
15220 if test "$host_cpu" = ia64; then
15221 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15222 # chokes on -Wl,-G. The following line is correct:
15223 shared_flag='-G'
15224 else
15225 if test "$aix_use_runtimelinking" = yes; then
15226 shared_flag='${wl}-G'
15227 else
15228 shared_flag='${wl}-bM:SRE'
15229 fi
15230 fi
15231 fi
15232
15233 export_dynamic_flag_spec='${wl}-bexpall'
15234 # It seems that -bexpall does not export symbols beginning with
15235 # underscore (_), so it is better to generate a list of symbols to export.
15236 always_export_symbols=yes
15237 if test "$aix_use_runtimelinking" = yes; then
15238 # Warning - without using the other runtime loading flags (-brtl),
15239 # -berok will link without error, but may produce a broken library.
15240 allow_undefined_flag='-berok'
15241 # Determine the default libpath from the value encoded in an
15242 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015243 if test "${lt_cv_aix_libpath+set}" = set; then
15244 aix_libpath=$lt_cv_aix_libpath
15245else
15246 if ${lt_cv_aix_libpath_+:} false; then :
15247 $as_echo_n "(cached) " >&6
15248else
15249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015250/* end confdefs.h. */
15251
15252int
15253main ()
15254{
15255
15256 ;
15257 return 0;
15258}
15259_ACEOF
15260if ac_fn_c_try_link "$LINENO"; then :
15261
cristyda16f162011-02-19 23:52:17 +000015262 lt_aix_libpath_sed='
15263 /Import File Strings/,/^$/ {
15264 /^0/ {
15265 s/^0 *\([^ ]*\) *$/\1/
15266 p
15267 }
15268 }'
15269 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15270 # Check for a 64-bit object if we didn't find anything.
15271 if test -z "$lt_cv_aix_libpath_"; then
15272 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15273 fi
cristy73bd4a52010-10-05 11:24:23 +000015274fi
15275rm -f core conftest.err conftest.$ac_objext \
15276 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015277 if test -z "$lt_cv_aix_libpath_"; then
15278 lt_cv_aix_libpath_="/usr/lib:/lib"
15279 fi
15280
15281fi
15282
15283 aix_libpath=$lt_cv_aix_libpath_
15284fi
cristy73bd4a52010-10-05 11:24:23 +000015285
15286 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015287 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 +000015288 else
15289 if test "$host_cpu" = ia64; then
15290 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15291 allow_undefined_flag="-z nodefs"
15292 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"
15293 else
15294 # Determine the default libpath from the value encoded in an
15295 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015296 if test "${lt_cv_aix_libpath+set}" = set; then
15297 aix_libpath=$lt_cv_aix_libpath
15298else
15299 if ${lt_cv_aix_libpath_+:} false; then :
15300 $as_echo_n "(cached) " >&6
15301else
15302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015303/* end confdefs.h. */
15304
15305int
15306main ()
15307{
15308
15309 ;
15310 return 0;
15311}
15312_ACEOF
15313if ac_fn_c_try_link "$LINENO"; then :
15314
cristyda16f162011-02-19 23:52:17 +000015315 lt_aix_libpath_sed='
15316 /Import File Strings/,/^$/ {
15317 /^0/ {
15318 s/^0 *\([^ ]*\) *$/\1/
15319 p
15320 }
15321 }'
15322 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15323 # Check for a 64-bit object if we didn't find anything.
15324 if test -z "$lt_cv_aix_libpath_"; then
15325 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15326 fi
cristy73bd4a52010-10-05 11:24:23 +000015327fi
15328rm -f core conftest.err conftest.$ac_objext \
15329 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015330 if test -z "$lt_cv_aix_libpath_"; then
15331 lt_cv_aix_libpath_="/usr/lib:/lib"
15332 fi
15333
15334fi
15335
15336 aix_libpath=$lt_cv_aix_libpath_
15337fi
cristy73bd4a52010-10-05 11:24:23 +000015338
15339 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15340 # Warning - without using the other run time loading flags,
15341 # -berok will link without error, but may produce a broken library.
15342 no_undefined_flag=' ${wl}-bernotok'
15343 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015344 if test "$with_gnu_ld" = yes; then
15345 # We only use this code for GNU lds that support --whole-archive.
15346 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15347 else
15348 # Exported symbols can be pulled into shared objects from archives
15349 whole_archive_flag_spec='$convenience'
15350 fi
cristy73bd4a52010-10-05 11:24:23 +000015351 archive_cmds_need_lc=yes
15352 # This is similar to how AIX traditionally builds its shared libraries.
15353 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'
15354 fi
15355 fi
15356 ;;
15357
15358 amigaos*)
15359 case $host_cpu in
15360 powerpc)
15361 # see comment about AmigaOS4 .so support
15362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15363 archive_expsym_cmds=''
15364 ;;
15365 m68k)
15366 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)'
15367 hardcode_libdir_flag_spec='-L$libdir'
15368 hardcode_minus_L=yes
15369 ;;
15370 esac
15371 ;;
15372
15373 bsdi[45]*)
15374 export_dynamic_flag_spec=-rdynamic
15375 ;;
15376
15377 cygwin* | mingw* | pw32* | cegcc*)
15378 # When not using gcc, we currently assume that we are using
15379 # Microsoft Visual C++.
15380 # hardcode_libdir_flag_spec is actually meaningless, as there is
15381 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015382 case $cc_basename in
15383 cl*)
15384 # Native MSVC
15385 hardcode_libdir_flag_spec=' '
15386 allow_undefined_flag=unsupported
15387 always_export_symbols=yes
15388 file_list_spec='@'
15389 # Tell ltmain to make .lib files, not .a files.
15390 libext=lib
15391 # Tell ltmain to make .dll files, not .so files.
15392 shrext_cmds=".dll"
15393 # FIXME: Setting linknames here is a bad hack.
15394 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15395 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15396 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15397 else
15398 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15399 fi~
15400 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15401 linknames='
15402 # The linker will not automatically build a static lib if we build a DLL.
15403 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15404 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015405 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015406 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15407 # Don't use ranlib
15408 old_postinstall_cmds='chmod 644 $oldlib'
15409 postlink_cmds='lt_outputfile="@OUTPUT@"~
15410 lt_tool_outputfile="@TOOL_OUTPUT@"~
15411 case $lt_outputfile in
15412 *.exe|*.EXE) ;;
15413 *)
15414 lt_outputfile="$lt_outputfile.exe"
15415 lt_tool_outputfile="$lt_tool_outputfile.exe"
15416 ;;
15417 esac~
15418 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15419 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15420 $RM "$lt_outputfile.manifest";
15421 fi'
15422 ;;
15423 *)
15424 # Assume MSVC wrapper
15425 hardcode_libdir_flag_spec=' '
15426 allow_undefined_flag=unsupported
15427 # Tell ltmain to make .lib files, not .a files.
15428 libext=lib
15429 # Tell ltmain to make .dll files, not .so files.
15430 shrext_cmds=".dll"
15431 # FIXME: Setting linknames here is a bad hack.
15432 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15433 # The linker will automatically build a .lib file if we build a DLL.
15434 old_archive_from_new_cmds='true'
15435 # FIXME: Should let the user specify the lib program.
15436 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15437 enable_shared_with_static_runtimes=yes
15438 ;;
15439 esac
cristy73bd4a52010-10-05 11:24:23 +000015440 ;;
15441
15442 darwin* | rhapsody*)
15443
15444
15445 archive_cmds_need_lc=no
15446 hardcode_direct=no
15447 hardcode_automatic=yes
15448 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015449 if test "$lt_cv_ld_force_load" = "yes"; then
15450 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 +000015451
cristy0c60a692010-11-04 01:09:47 +000015452 else
15453 whole_archive_flag_spec=''
15454 fi
cristy73bd4a52010-10-05 11:24:23 +000015455 link_all_deplibs=yes
15456 allow_undefined_flag="$_lt_dar_allow_undefined"
15457 case $cc_basename in
15458 ifort*) _lt_dar_can_shared=yes ;;
15459 *) _lt_dar_can_shared=$GCC ;;
15460 esac
15461 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015462 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015463 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15464 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15465 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}"
15466 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}"
15467
15468 else
15469 ld_shlibs=no
15470 fi
15471
15472 ;;
15473
15474 dgux*)
15475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15476 hardcode_libdir_flag_spec='-L$libdir'
15477 hardcode_shlibpath_var=no
15478 ;;
15479
cristy73bd4a52010-10-05 11:24:23 +000015480 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15481 # support. Future versions do this automatically, but an explicit c++rt0.o
15482 # does not break anything, and helps significantly (at the cost of a little
15483 # extra space).
15484 freebsd2.2*)
15485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15486 hardcode_libdir_flag_spec='-R$libdir'
15487 hardcode_direct=yes
15488 hardcode_shlibpath_var=no
15489 ;;
15490
15491 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015492 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015493 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15494 hardcode_direct=yes
15495 hardcode_minus_L=yes
15496 hardcode_shlibpath_var=no
15497 ;;
15498
15499 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15500 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015501 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015502 hardcode_libdir_flag_spec='-R$libdir'
15503 hardcode_direct=yes
15504 hardcode_shlibpath_var=no
15505 ;;
15506
15507 hpux9*)
15508 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015509 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 +000015510 else
15511 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'
15512 fi
15513 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15514 hardcode_libdir_separator=:
15515 hardcode_direct=yes
15516
15517 # hardcode_minus_L: Not really in the search PATH,
15518 # but as the default location of the library.
15519 hardcode_minus_L=yes
15520 export_dynamic_flag_spec='${wl}-E'
15521 ;;
15522
15523 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015524 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015525 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 +000015526 else
15527 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15528 fi
15529 if test "$with_gnu_ld" = no; then
15530 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015531 hardcode_libdir_separator=:
15532 hardcode_direct=yes
15533 hardcode_direct_absolute=yes
15534 export_dynamic_flag_spec='${wl}-E'
15535 # hardcode_minus_L: Not really in the search PATH,
15536 # but as the default location of the library.
15537 hardcode_minus_L=yes
15538 fi
15539 ;;
15540
15541 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015542 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015543 case $host_cpu in
15544 hppa*64*)
15545 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15546 ;;
15547 ia64*)
cristyda16f162011-02-19 23:52:17 +000015548 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015549 ;;
15550 *)
cristyda16f162011-02-19 23:52:17 +000015551 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 +000015552 ;;
15553 esac
15554 else
15555 case $host_cpu in
15556 hppa*64*)
15557 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15558 ;;
15559 ia64*)
15560 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15561 ;;
15562 *)
cristy0c60a692010-11-04 01:09:47 +000015563
15564 # Older versions of the 11.00 compiler do not understand -b yet
15565 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15567$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015568if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015569 $as_echo_n "(cached) " >&6
15570else
15571 lt_cv_prog_compiler__b=no
15572 save_LDFLAGS="$LDFLAGS"
15573 LDFLAGS="$LDFLAGS -b"
15574 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15575 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15576 # The linker can only warn and ignore the option if not recognized
15577 # So say no if there are warnings
15578 if test -s conftest.err; then
15579 # Append any errors to the config.log.
15580 cat conftest.err 1>&5
15581 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15583 if diff conftest.exp conftest.er2 >/dev/null; then
15584 lt_cv_prog_compiler__b=yes
15585 fi
15586 else
15587 lt_cv_prog_compiler__b=yes
15588 fi
15589 fi
15590 $RM -r conftest*
15591 LDFLAGS="$save_LDFLAGS"
15592
15593fi
15594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15595$as_echo "$lt_cv_prog_compiler__b" >&6; }
15596
15597if test x"$lt_cv_prog_compiler__b" = xyes; then
15598 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15599else
15600 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15601fi
15602
cristy73bd4a52010-10-05 11:24:23 +000015603 ;;
15604 esac
15605 fi
15606 if test "$with_gnu_ld" = no; then
15607 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15608 hardcode_libdir_separator=:
15609
15610 case $host_cpu in
15611 hppa*64*|ia64*)
15612 hardcode_direct=no
15613 hardcode_shlibpath_var=no
15614 ;;
15615 *)
15616 hardcode_direct=yes
15617 hardcode_direct_absolute=yes
15618 export_dynamic_flag_spec='${wl}-E'
15619
15620 # hardcode_minus_L: Not really in the search PATH,
15621 # but as the default location of the library.
15622 hardcode_minus_L=yes
15623 ;;
15624 esac
15625 fi
15626 ;;
15627
15628 irix5* | irix6* | nonstopux*)
15629 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015630 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 +000015631 # Try to use the -exported_symbol ld option, if it does not
15632 # work, assume that -exports_file does not work either and
15633 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015634 # This should be the same for all languages, so no per-tag cache variable.
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15636$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15637if ${lt_cv_irix_exported_symbol+:} false; then :
15638 $as_echo_n "(cached) " >&6
15639else
15640 save_LDFLAGS="$LDFLAGS"
15641 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015643/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015644int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015645_ACEOF
15646if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015647 lt_cv_irix_exported_symbol=yes
15648else
15649 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015650fi
15651rm -f core conftest.err conftest.$ac_objext \
15652 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015653 LDFLAGS="$save_LDFLAGS"
15654fi
15655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15656$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15657 if test "$lt_cv_irix_exported_symbol" = yes; then
15658 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'
15659 fi
cristy73bd4a52010-10-05 11:24:23 +000015660 else
cristy0c60a692010-11-04 01:09:47 +000015661 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'
15662 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 +000015663 fi
15664 archive_cmds_need_lc='no'
15665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15666 hardcode_libdir_separator=:
15667 inherit_rpath=yes
15668 link_all_deplibs=yes
15669 ;;
15670
15671 netbsd*)
15672 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15674 else
15675 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15676 fi
15677 hardcode_libdir_flag_spec='-R$libdir'
15678 hardcode_direct=yes
15679 hardcode_shlibpath_var=no
15680 ;;
15681
15682 newsos6)
15683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15684 hardcode_direct=yes
15685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15686 hardcode_libdir_separator=:
15687 hardcode_shlibpath_var=no
15688 ;;
15689
15690 *nto* | *qnx*)
15691 ;;
15692
15693 openbsd*)
15694 if test -f /usr/libexec/ld.so; then
15695 hardcode_direct=yes
15696 hardcode_shlibpath_var=no
15697 hardcode_direct_absolute=yes
15698 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15700 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15701 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15702 export_dynamic_flag_spec='${wl}-E'
15703 else
15704 case $host_os in
15705 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15706 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15707 hardcode_libdir_flag_spec='-R$libdir'
15708 ;;
15709 *)
15710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15711 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15712 ;;
15713 esac
15714 fi
15715 else
15716 ld_shlibs=no
15717 fi
15718 ;;
15719
15720 os2*)
15721 hardcode_libdir_flag_spec='-L$libdir'
15722 hardcode_minus_L=yes
15723 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015724 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 +000015725 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15726 ;;
15727
15728 osf3*)
15729 if test "$GCC" = yes; then
15730 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015731 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 +000015732 else
15733 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015734 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 +000015735 fi
15736 archive_cmds_need_lc='no'
15737 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15738 hardcode_libdir_separator=:
15739 ;;
15740
15741 osf4* | osf5*) # as osf3* with the addition of -msym flag
15742 if test "$GCC" = yes; then
15743 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015744 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 +000015745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15746 else
15747 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015748 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 +000015749 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 +000015750 $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 +000015751
15752 # Both c and cxx compiler support -rpath directly
15753 hardcode_libdir_flag_spec='-rpath $libdir'
15754 fi
15755 archive_cmds_need_lc='no'
15756 hardcode_libdir_separator=:
15757 ;;
15758
15759 solaris*)
15760 no_undefined_flag=' -z defs'
15761 if test "$GCC" = yes; then
15762 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015763 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 +000015764 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 +000015765 $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 +000015766 else
15767 case `$CC -V 2>&1` in
15768 *"Compilers 5.0"*)
15769 wlarc=''
15770 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15771 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15772 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15773 ;;
15774 *)
15775 wlarc='${wl}'
15776 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15777 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15778 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15779 ;;
15780 esac
15781 fi
15782 hardcode_libdir_flag_spec='-R$libdir'
15783 hardcode_shlibpath_var=no
15784 case $host_os in
15785 solaris2.[0-5] | solaris2.[0-5].*) ;;
15786 *)
15787 # The compiler driver will combine and reorder linker options,
15788 # but understands `-z linker_flag'. GCC discards it without `$wl',
15789 # but is careful enough not to reorder.
15790 # Supported since Solaris 2.6 (maybe 2.5.1?)
15791 if test "$GCC" = yes; then
15792 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15793 else
15794 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15795 fi
15796 ;;
15797 esac
15798 link_all_deplibs=yes
15799 ;;
15800
15801 sunos4*)
15802 if test "x$host_vendor" = xsequent; then
15803 # Use $CC to link under sequent, because it throws in some extra .o
15804 # files that make .init and .fini sections work.
15805 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15806 else
15807 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15808 fi
15809 hardcode_libdir_flag_spec='-L$libdir'
15810 hardcode_direct=yes
15811 hardcode_minus_L=yes
15812 hardcode_shlibpath_var=no
15813 ;;
15814
15815 sysv4)
15816 case $host_vendor in
15817 sni)
15818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15819 hardcode_direct=yes # is this really true???
15820 ;;
15821 siemens)
15822 ## LD is ld it makes a PLAMLIB
15823 ## CC just makes a GrossModule.
15824 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15825 reload_cmds='$CC -r -o $output$reload_objs'
15826 hardcode_direct=no
15827 ;;
15828 motorola)
15829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15830 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15831 ;;
15832 esac
15833 runpath_var='LD_RUN_PATH'
15834 hardcode_shlibpath_var=no
15835 ;;
15836
15837 sysv4.3*)
15838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15839 hardcode_shlibpath_var=no
15840 export_dynamic_flag_spec='-Bexport'
15841 ;;
15842
15843 sysv4*MP*)
15844 if test -d /usr/nec; then
15845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15846 hardcode_shlibpath_var=no
15847 runpath_var=LD_RUN_PATH
15848 hardcode_runpath_var=yes
15849 ld_shlibs=yes
15850 fi
15851 ;;
15852
15853 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15854 no_undefined_flag='${wl}-z,text'
15855 archive_cmds_need_lc=no
15856 hardcode_shlibpath_var=no
15857 runpath_var='LD_RUN_PATH'
15858
15859 if test "$GCC" = yes; then
15860 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15861 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15862 else
15863 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15864 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15865 fi
15866 ;;
15867
15868 sysv5* | sco3.2v5* | sco5v6*)
15869 # Note: We can NOT use -z defs as we might desire, because we do not
15870 # link with -lc, and that would cause any symbols used from libc to
15871 # always be unresolved, which means just about no library would
15872 # ever link correctly. If we're not using GNU ld we use -z text
15873 # though, which does catch some bad symbols but isn't as heavy-handed
15874 # as -z defs.
15875 no_undefined_flag='${wl}-z,text'
15876 allow_undefined_flag='${wl}-z,nodefs'
15877 archive_cmds_need_lc=no
15878 hardcode_shlibpath_var=no
15879 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15880 hardcode_libdir_separator=':'
15881 link_all_deplibs=yes
15882 export_dynamic_flag_spec='${wl}-Bexport'
15883 runpath_var='LD_RUN_PATH'
15884
15885 if test "$GCC" = yes; then
15886 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15887 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15888 else
15889 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15890 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15891 fi
15892 ;;
15893
15894 uts4*)
15895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15896 hardcode_libdir_flag_spec='-L$libdir'
15897 hardcode_shlibpath_var=no
15898 ;;
15899
15900 *)
15901 ld_shlibs=no
15902 ;;
15903 esac
15904
15905 if test x$host_vendor = xsni; then
15906 case $host in
15907 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15908 export_dynamic_flag_spec='${wl}-Blargedynsym'
15909 ;;
15910 esac
15911 fi
15912 fi
15913
15914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15915$as_echo "$ld_shlibs" >&6; }
15916test "$ld_shlibs" = no && can_build_shared=no
15917
15918with_gnu_ld=$with_gnu_ld
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934#
15935# Do we need to explicitly link libc?
15936#
15937case "x$archive_cmds_need_lc" in
15938x|xyes)
15939 # Assume -lc should be added
15940 archive_cmds_need_lc=yes
15941
15942 if test "$enable_shared" = yes && test "$GCC" = yes; then
15943 case $archive_cmds in
15944 *'~'*)
15945 # FIXME: we may have to deal with multi-command sequences.
15946 ;;
15947 '$CC '*)
15948 # Test whether the compiler implicitly links with -lc since on some
15949 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15950 # to ld, don't add -lc before -lgcc.
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15952$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015953if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015954 $as_echo_n "(cached) " >&6
15955else
15956 $RM conftest*
15957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015958
cristy0c60a692010-11-04 01:09:47 +000015959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015960 (eval $ac_compile) 2>&5
15961 ac_status=$?
15962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15963 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015964 soname=conftest
15965 lib=conftest
15966 libobjs=conftest.$ac_objext
15967 deplibs=
15968 wl=$lt_prog_compiler_wl
15969 pic_flag=$lt_prog_compiler_pic
15970 compiler_flags=-v
15971 linker_flags=-v
15972 verstring=
15973 output_objdir=.
15974 libname=conftest
15975 lt_save_allow_undefined_flag=$allow_undefined_flag
15976 allow_undefined_flag=
15977 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 +000015978 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15979 ac_status=$?
15980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15981 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015982 then
15983 lt_cv_archive_cmds_need_lc=no
15984 else
15985 lt_cv_archive_cmds_need_lc=yes
15986 fi
15987 allow_undefined_flag=$lt_save_allow_undefined_flag
15988 else
15989 cat conftest.err 1>&5
15990 fi
15991 $RM conftest*
15992
15993fi
15994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15995$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15996 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015997 ;;
15998 esac
15999 fi
16000 ;;
16001esac
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
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
cristy73bd4a52010-10-05 11:24:23 +000016154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16155$as_echo_n "checking dynamic linker characteristics... " >&6; }
16156
16157if test "$GCC" = yes; then
16158 case $host_os in
16159 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16160 *) lt_awk_arg="/^libraries:/" ;;
16161 esac
cristy0c60a692010-11-04 01:09:47 +000016162 case $host_os in
16163 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16164 *) lt_sed_strip_eq="s,=/,/,g" ;;
16165 esac
16166 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16167 case $lt_search_path_spec in
16168 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016169 # if the path contains ";" then we assume it to be the separator
16170 # otherwise default to the standard path separator (i.e. ":") - it is
16171 # assumed that no part of a normal pathname contains ";" but that should
16172 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016173 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16174 ;;
16175 *)
16176 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16177 ;;
16178 esac
cristy73bd4a52010-10-05 11:24:23 +000016179 # Ok, now we have the path, separated by spaces, we can step through it
16180 # and add multilib dir if necessary.
16181 lt_tmp_lt_search_path_spec=
16182 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16183 for lt_sys_path in $lt_search_path_spec; do
16184 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16185 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16186 else
16187 test -d "$lt_sys_path" && \
16188 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16189 fi
16190 done
cristy0c60a692010-11-04 01:09:47 +000016191 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016192BEGIN {RS=" "; FS="/|\n";} {
16193 lt_foo="";
16194 lt_count=0;
16195 for (lt_i = NF; lt_i > 0; lt_i--) {
16196 if ($lt_i != "" && $lt_i != ".") {
16197 if ($lt_i == "..") {
16198 lt_count++;
16199 } else {
16200 if (lt_count == 0) {
16201 lt_foo="/" $lt_i lt_foo;
16202 } else {
16203 lt_count--;
16204 }
16205 }
16206 }
16207 }
16208 if (lt_foo != "") { lt_freq[lt_foo]++; }
16209 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16210}'`
cristy0c60a692010-11-04 01:09:47 +000016211 # AWK program above erroneously prepends '/' to C:/dos/paths
16212 # for these hosts.
16213 case $host_os in
16214 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16215 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16216 esac
16217 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016218else
16219 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16220fi
16221library_names_spec=
16222libname_spec='lib$name'
16223soname_spec=
16224shrext_cmds=".so"
16225postinstall_cmds=
16226postuninstall_cmds=
16227finish_cmds=
16228finish_eval=
16229shlibpath_var=
16230shlibpath_overrides_runpath=unknown
16231version_type=none
16232dynamic_linker="$host_os ld.so"
16233sys_lib_dlsearch_path_spec="/lib /usr/lib"
16234need_lib_prefix=unknown
16235hardcode_into_libs=no
16236
16237# when you set need_version to no, make sure it does not cause -set_version
16238# flags to be left without arguments
16239need_version=unknown
16240
16241case $host_os in
16242aix3*)
cristy99bd5232011-12-07 14:38:20 +000016243 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016244 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16245 shlibpath_var=LIBPATH
16246
16247 # AIX 3 has no versioning support, so we append a major version to the name.
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 ;;
16250
16251aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016252 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016253 need_lib_prefix=no
16254 need_version=no
16255 hardcode_into_libs=yes
16256 if test "$host_cpu" = ia64; then
16257 # AIX 5 supports IA64
16258 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16259 shlibpath_var=LD_LIBRARY_PATH
16260 else
16261 # With GCC up to 2.95.x, collect2 would create an import file
16262 # for dependence libraries. The import file would start with
16263 # the line `#! .'. This would cause the generated library to
16264 # depend on `.', always an invalid library. This was fixed in
16265 # development snapshots of GCC prior to 3.0.
16266 case $host_os in
16267 aix4 | aix4.[01] | aix4.[01].*)
16268 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16269 echo ' yes '
16270 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16271 :
16272 else
16273 can_build_shared=no
16274 fi
16275 ;;
16276 esac
16277 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16278 # soname into executable. Probably we can add versioning support to
16279 # collect2, so additional links can be useful in future.
16280 if test "$aix_use_runtimelinking" = yes; then
16281 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16282 # instead of lib<name>.a to let people know that these are not
16283 # typical AIX shared libraries.
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285 else
16286 # We preserve .a as extension for shared libraries through AIX4.2
16287 # and later when we are not doing run time linking.
16288 library_names_spec='${libname}${release}.a $libname.a'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16290 fi
16291 shlibpath_var=LIBPATH
16292 fi
16293 ;;
16294
16295amigaos*)
16296 case $host_cpu in
16297 powerpc)
16298 # Since July 2007 AmigaOS4 officially supports .so libraries.
16299 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301 ;;
16302 m68k)
16303 library_names_spec='$libname.ixlibrary $libname.a'
16304 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016305 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 +000016306 ;;
16307 esac
16308 ;;
16309
16310beos*)
16311 library_names_spec='${libname}${shared_ext}'
16312 dynamic_linker="$host_os ld.so"
16313 shlibpath_var=LIBRARY_PATH
16314 ;;
16315
16316bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016317 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016318 need_version=no
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16320 soname_spec='${libname}${release}${shared_ext}$major'
16321 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16322 shlibpath_var=LD_LIBRARY_PATH
16323 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16324 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16325 # the default ld.so.conf also contains /usr/contrib/lib and
16326 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16327 # libtool to hard-code these into programs
16328 ;;
16329
16330cygwin* | mingw* | pw32* | cegcc*)
16331 version_type=windows
16332 shrext_cmds=".dll"
16333 need_version=no
16334 need_lib_prefix=no
16335
cristyda16f162011-02-19 23:52:17 +000016336 case $GCC,$cc_basename in
16337 yes,*)
16338 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016339 library_names_spec='$libname.dll.a'
16340 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16341 postinstall_cmds='base_file=`basename \${file}`~
16342 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16343 dldir=$destdir/`dirname \$dlpath`~
16344 test -d \$dldir || mkdir -p \$dldir~
16345 $install_prog $dir/$dlname \$dldir/$dlname~
16346 chmod a+x \$dldir/$dlname~
16347 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16348 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16349 fi'
16350 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16351 dlpath=$dir/\$dldll~
16352 $RM \$dlpath'
16353 shlibpath_overrides_runpath=yes
16354
16355 case $host_os in
16356 cygwin*)
16357 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16358 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016359
16360 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016361 ;;
16362 mingw* | cegcc*)
16363 # MinGW DLLs use traditional 'lib' prefix
16364 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016365 ;;
16366 pw32*)
16367 # pw32 DLLs use 'pw' prefix rather than 'lib'
16368 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16369 ;;
16370 esac
cristyda16f162011-02-19 23:52:17 +000016371 dynamic_linker='Win32 ld.exe'
16372 ;;
16373
16374 *,cl*)
16375 # Native MSVC
16376 libname_spec='$name'
16377 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16378 library_names_spec='${libname}.dll.lib'
16379
16380 case $build_os in
16381 mingw*)
16382 sys_lib_search_path_spec=
16383 lt_save_ifs=$IFS
16384 IFS=';'
16385 for lt_path in $LIB
16386 do
16387 IFS=$lt_save_ifs
16388 # Let DOS variable expansion print the short 8.3 style file name.
16389 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16390 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16391 done
16392 IFS=$lt_save_ifs
16393 # Convert to MSYS style.
16394 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16395 ;;
16396 cygwin*)
16397 # Convert to unix form, then to dos form, then back to unix form
16398 # but this time dos style (no spaces!) so that the unix form looks
16399 # like /cygdrive/c/PROGRA~1:/cygdr...
16400 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16401 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16402 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16403 ;;
16404 *)
16405 sys_lib_search_path_spec="$LIB"
16406 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16407 # It is most probably a Windows format PATH.
16408 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16409 else
16410 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16411 fi
16412 # FIXME: find the short name or the path components, as spaces are
16413 # common. (e.g. "Program Files" -> "PROGRA~1")
16414 ;;
16415 esac
16416
16417 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16418 postinstall_cmds='base_file=`basename \${file}`~
16419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16420 dldir=$destdir/`dirname \$dlpath`~
16421 test -d \$dldir || mkdir -p \$dldir~
16422 $install_prog $dir/$dlname \$dldir/$dlname'
16423 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16424 dlpath=$dir/\$dldll~
16425 $RM \$dlpath'
16426 shlibpath_overrides_runpath=yes
16427 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016428 ;;
16429
16430 *)
cristyda16f162011-02-19 23:52:17 +000016431 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016432 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016433 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016434 ;;
16435 esac
cristy73bd4a52010-10-05 11:24:23 +000016436 # FIXME: first we should search . and the directory the executable is in
16437 shlibpath_var=PATH
16438 ;;
16439
16440darwin* | rhapsody*)
16441 dynamic_linker="$host_os dyld"
16442 version_type=darwin
16443 need_lib_prefix=no
16444 need_version=no
16445 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16446 soname_spec='${libname}${release}${major}$shared_ext'
16447 shlibpath_overrides_runpath=yes
16448 shlibpath_var=DYLD_LIBRARY_PATH
16449 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16450
16451 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16452 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16453 ;;
16454
16455dgux*)
cristy99bd5232011-12-07 14:38:20 +000016456 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016457 need_lib_prefix=no
16458 need_version=no
16459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16460 soname_spec='${libname}${release}${shared_ext}$major'
16461 shlibpath_var=LD_LIBRARY_PATH
16462 ;;
16463
cristy73bd4a52010-10-05 11:24:23 +000016464freebsd* | dragonfly*)
16465 # DragonFly does not have aout. When/if they implement a new
16466 # versioning mechanism, adjust this.
16467 if test -x /usr/bin/objformat; then
16468 objformat=`/usr/bin/objformat`
16469 else
16470 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016471 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016472 *) objformat=elf ;;
16473 esac
16474 fi
16475 version_type=freebsd-$objformat
16476 case $version_type in
16477 freebsd-elf*)
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16479 need_version=no
16480 need_lib_prefix=no
16481 ;;
16482 freebsd-*)
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16484 need_version=yes
16485 ;;
16486 esac
16487 shlibpath_var=LD_LIBRARY_PATH
16488 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016489 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016490 shlibpath_overrides_runpath=yes
16491 ;;
16492 freebsd3.[01]* | freebsdelf3.[01]*)
16493 shlibpath_overrides_runpath=yes
16494 hardcode_into_libs=yes
16495 ;;
16496 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16497 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16498 shlibpath_overrides_runpath=no
16499 hardcode_into_libs=yes
16500 ;;
16501 *) # from 4.6 on, and DragonFly
16502 shlibpath_overrides_runpath=yes
16503 hardcode_into_libs=yes
16504 ;;
16505 esac
16506 ;;
16507
16508gnu*)
cristy99bd5232011-12-07 14:38:20 +000016509 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016510 need_lib_prefix=no
16511 need_version=no
16512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16513 soname_spec='${libname}${release}${shared_ext}$major'
16514 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016515 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016516 hardcode_into_libs=yes
16517 ;;
16518
cristy0c60a692010-11-04 01:09:47 +000016519haiku*)
cristy99bd5232011-12-07 14:38:20 +000016520 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016521 need_lib_prefix=no
16522 need_version=no
16523 dynamic_linker="$host_os runtime_loader"
16524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16525 soname_spec='${libname}${release}${shared_ext}$major'
16526 shlibpath_var=LIBRARY_PATH
16527 shlibpath_overrides_runpath=yes
16528 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16529 hardcode_into_libs=yes
16530 ;;
16531
cristy73bd4a52010-10-05 11:24:23 +000016532hpux9* | hpux10* | hpux11*)
16533 # Give a soname corresponding to the major version so that dld.sl refuses to
16534 # link against other versions.
16535 version_type=sunos
16536 need_lib_prefix=no
16537 need_version=no
16538 case $host_cpu in
16539 ia64*)
16540 shrext_cmds='.so'
16541 hardcode_into_libs=yes
16542 dynamic_linker="$host_os dld.so"
16543 shlibpath_var=LD_LIBRARY_PATH
16544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546 soname_spec='${libname}${release}${shared_ext}$major'
16547 if test "X$HPUX_IA64_MODE" = X32; then
16548 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16549 else
16550 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16551 fi
16552 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16553 ;;
16554 hppa*64*)
16555 shrext_cmds='.sl'
16556 hardcode_into_libs=yes
16557 dynamic_linker="$host_os dld.sl"
16558 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16561 soname_spec='${libname}${release}${shared_ext}$major'
16562 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16564 ;;
16565 *)
16566 shrext_cmds='.sl'
16567 dynamic_linker="$host_os dld.sl"
16568 shlibpath_var=SHLIB_PATH
16569 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16571 soname_spec='${libname}${release}${shared_ext}$major'
16572 ;;
16573 esac
cristy0c60a692010-11-04 01:09:47 +000016574 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016575 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016576 # or fails outright, so override atomically:
16577 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016578 ;;
16579
16580interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016581 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016582 need_lib_prefix=no
16583 need_version=no
16584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16585 soname_spec='${libname}${release}${shared_ext}$major'
16586 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16587 shlibpath_var=LD_LIBRARY_PATH
16588 shlibpath_overrides_runpath=no
16589 hardcode_into_libs=yes
16590 ;;
16591
16592irix5* | irix6* | nonstopux*)
16593 case $host_os in
16594 nonstopux*) version_type=nonstopux ;;
16595 *)
16596 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016597 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016598 else
16599 version_type=irix
16600 fi ;;
16601 esac
16602 need_lib_prefix=no
16603 need_version=no
16604 soname_spec='${libname}${release}${shared_ext}$major'
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16606 case $host_os in
16607 irix5* | nonstopux*)
16608 libsuff= shlibsuff=
16609 ;;
16610 *)
16611 case $LD in # libtool.m4 will add one of these switches to LD
16612 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16613 libsuff= shlibsuff= libmagic=32-bit;;
16614 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16615 libsuff=32 shlibsuff=N32 libmagic=N32;;
16616 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16617 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16618 *) libsuff= shlibsuff= libmagic=never-match;;
16619 esac
16620 ;;
16621 esac
16622 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16623 shlibpath_overrides_runpath=no
16624 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16625 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16626 hardcode_into_libs=yes
16627 ;;
16628
16629# No shared lib support for Linux oldld, aout, or coff.
16630linux*oldld* | linux*aout* | linux*coff*)
16631 dynamic_linker=no
16632 ;;
16633
cristy99bd5232011-12-07 14:38:20 +000016634# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016635linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016636 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016637 need_lib_prefix=no
16638 need_version=no
16639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640 soname_spec='${libname}${release}${shared_ext}$major'
16641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16642 shlibpath_var=LD_LIBRARY_PATH
16643 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016644
cristy73bd4a52010-10-05 11:24:23 +000016645 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016646 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016647 $as_echo_n "(cached) " >&6
16648else
16649 lt_cv_shlibpath_overrides_runpath=no
16650 save_LDFLAGS=$LDFLAGS
16651 save_libdir=$libdir
16652 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16653 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016655/* end confdefs.h. */
16656
16657int
16658main ()
16659{
16660
16661 ;
16662 return 0;
16663}
16664_ACEOF
16665if ac_fn_c_try_link "$LINENO"; then :
16666 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016667 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016668fi
16669fi
16670rm -f core conftest.err conftest.$ac_objext \
16671 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016672 LDFLAGS=$save_LDFLAGS
16673 libdir=$save_libdir
16674
16675fi
16676
16677 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016678
16679 # This implies no fast_install, which is unacceptable.
16680 # Some rework will be needed to allow for fast_install
16681 # before this can be enabled.
16682 hardcode_into_libs=yes
16683
16684 # Add ABI-specific directories to the system library path.
16685 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16686
16687 # Append ld.so.conf contents to the search path
16688 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016689 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 +000016690 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016691
cristy73bd4a52010-10-05 11:24:23 +000016692 fi
16693
16694 # We used to test for /lib/ld.so.1 and disable shared libraries on
16695 # powerpc, because MkLinux only supported shared libraries with the
16696 # GNU dynamic linker. Since this was broken with cross compilers,
16697 # most powerpc-linux boxes support dynamic linking these days and
16698 # people can always --disable-shared, the test was removed, and we
16699 # assume the GNU/Linux dynamic linker is in use.
16700 dynamic_linker='GNU/Linux ld.so'
16701 ;;
16702
16703netbsd*)
16704 version_type=sunos
16705 need_lib_prefix=no
16706 need_version=no
16707 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16710 dynamic_linker='NetBSD (a.out) ld.so'
16711 else
16712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16713 soname_spec='${libname}${release}${shared_ext}$major'
16714 dynamic_linker='NetBSD ld.elf_so'
16715 fi
16716 shlibpath_var=LD_LIBRARY_PATH
16717 shlibpath_overrides_runpath=yes
16718 hardcode_into_libs=yes
16719 ;;
16720
16721newsos6)
cristy99bd5232011-12-07 14:38:20 +000016722 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16724 shlibpath_var=LD_LIBRARY_PATH
16725 shlibpath_overrides_runpath=yes
16726 ;;
16727
16728*nto* | *qnx*)
16729 version_type=qnx
16730 need_lib_prefix=no
16731 need_version=no
16732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16733 soname_spec='${libname}${release}${shared_ext}$major'
16734 shlibpath_var=LD_LIBRARY_PATH
16735 shlibpath_overrides_runpath=no
16736 hardcode_into_libs=yes
16737 dynamic_linker='ldqnx.so'
16738 ;;
16739
16740openbsd*)
16741 version_type=sunos
16742 sys_lib_dlsearch_path_spec="/usr/lib"
16743 need_lib_prefix=no
16744 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16745 case $host_os in
16746 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16747 *) need_version=no ;;
16748 esac
16749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16751 shlibpath_var=LD_LIBRARY_PATH
16752 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16753 case $host_os in
16754 openbsd2.[89] | openbsd2.[89].*)
16755 shlibpath_overrides_runpath=no
16756 ;;
16757 *)
16758 shlibpath_overrides_runpath=yes
16759 ;;
16760 esac
16761 else
16762 shlibpath_overrides_runpath=yes
16763 fi
16764 ;;
16765
16766os2*)
16767 libname_spec='$name'
16768 shrext_cmds=".dll"
16769 need_lib_prefix=no
16770 library_names_spec='$libname${shared_ext} $libname.a'
16771 dynamic_linker='OS/2 ld.exe'
16772 shlibpath_var=LIBPATH
16773 ;;
16774
16775osf3* | osf4* | osf5*)
16776 version_type=osf
16777 need_lib_prefix=no
16778 need_version=no
16779 soname_spec='${libname}${release}${shared_ext}$major'
16780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781 shlibpath_var=LD_LIBRARY_PATH
16782 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16783 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16784 ;;
16785
16786rdos*)
16787 dynamic_linker=no
16788 ;;
16789
16790solaris*)
cristy99bd5232011-12-07 14:38:20 +000016791 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016792 need_lib_prefix=no
16793 need_version=no
16794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16795 soname_spec='${libname}${release}${shared_ext}$major'
16796 shlibpath_var=LD_LIBRARY_PATH
16797 shlibpath_overrides_runpath=yes
16798 hardcode_into_libs=yes
16799 # ldd complains unless libraries are executable
16800 postinstall_cmds='chmod +x $lib'
16801 ;;
16802
16803sunos4*)
16804 version_type=sunos
16805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16806 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16807 shlibpath_var=LD_LIBRARY_PATH
16808 shlibpath_overrides_runpath=yes
16809 if test "$with_gnu_ld" = yes; then
16810 need_lib_prefix=no
16811 fi
16812 need_version=yes
16813 ;;
16814
16815sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016816 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818 soname_spec='${libname}${release}${shared_ext}$major'
16819 shlibpath_var=LD_LIBRARY_PATH
16820 case $host_vendor in
16821 sni)
16822 shlibpath_overrides_runpath=no
16823 need_lib_prefix=no
16824 runpath_var=LD_RUN_PATH
16825 ;;
16826 siemens)
16827 need_lib_prefix=no
16828 ;;
16829 motorola)
16830 need_lib_prefix=no
16831 need_version=no
16832 shlibpath_overrides_runpath=no
16833 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16834 ;;
16835 esac
16836 ;;
16837
16838sysv4*MP*)
16839 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016840 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016841 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16842 soname_spec='$libname${shared_ext}.$major'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 fi
16845 ;;
16846
16847sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16848 version_type=freebsd-elf
16849 need_lib_prefix=no
16850 need_version=no
16851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16852 soname_spec='${libname}${release}${shared_ext}$major'
16853 shlibpath_var=LD_LIBRARY_PATH
16854 shlibpath_overrides_runpath=yes
16855 hardcode_into_libs=yes
16856 if test "$with_gnu_ld" = yes; then
16857 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16858 else
16859 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16860 case $host_os in
16861 sco3.2v5*)
16862 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16863 ;;
16864 esac
16865 fi
16866 sys_lib_dlsearch_path_spec='/usr/lib'
16867 ;;
16868
16869tpf*)
16870 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016871 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016872 need_lib_prefix=no
16873 need_version=no
16874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16875 shlibpath_var=LD_LIBRARY_PATH
16876 shlibpath_overrides_runpath=no
16877 hardcode_into_libs=yes
16878 ;;
16879
16880uts4*)
cristy99bd5232011-12-07 14:38:20 +000016881 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883 soname_spec='${libname}${release}${shared_ext}$major'
16884 shlibpath_var=LD_LIBRARY_PATH
16885 ;;
16886
16887*)
16888 dynamic_linker=no
16889 ;;
16890esac
16891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16892$as_echo "$dynamic_linker" >&6; }
16893test "$dynamic_linker" = no && can_build_shared=no
16894
16895variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16896if test "$GCC" = yes; then
16897 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16898fi
16899
16900if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16901 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16902fi
16903if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16904 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16905fi
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
cristy0c60a692010-11-04 01:09:47 +000016993
16994
16995
16996
16997
cristy73bd4a52010-10-05 11:24:23 +000016998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16999$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17000hardcode_action=
17001if test -n "$hardcode_libdir_flag_spec" ||
17002 test -n "$runpath_var" ||
17003 test "X$hardcode_automatic" = "Xyes" ; then
17004
17005 # We can hardcode non-existent directories.
17006 if test "$hardcode_direct" != no &&
17007 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17008 # have to relink, otherwise we might link with an installed library
17009 # when we should be linking with a yet-to-be-installed one
17010 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17011 test "$hardcode_minus_L" != no; then
17012 # Linking always hardcodes the temporary library directory.
17013 hardcode_action=relink
17014 else
17015 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17016 hardcode_action=immediate
17017 fi
17018else
17019 # We cannot hardcode anything, or else we can only hardcode existing
17020 # directories.
17021 hardcode_action=unsupported
17022fi
17023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17024$as_echo "$hardcode_action" >&6; }
17025
17026if test "$hardcode_action" = relink ||
17027 test "$inherit_rpath" = yes; then
17028 # Fast installation is not supported
17029 enable_fast_install=no
17030elif test "$shlibpath_overrides_runpath" = yes ||
17031 test "$enable_shared" = no; then
17032 # Fast installation is not necessary
17033 enable_fast_install=needless
17034fi
17035
17036
17037
17038
17039
17040
17041 if test "x$enable_dlopen" != xyes; then
17042 enable_dlopen=unknown
17043 enable_dlopen_self=unknown
17044 enable_dlopen_self_static=unknown
17045else
17046 lt_cv_dlopen=no
17047 lt_cv_dlopen_libs=
17048
17049 case $host_os in
17050 beos*)
17051 lt_cv_dlopen="load_add_on"
17052 lt_cv_dlopen_libs=
17053 lt_cv_dlopen_self=yes
17054 ;;
17055
17056 mingw* | pw32* | cegcc*)
17057 lt_cv_dlopen="LoadLibrary"
17058 lt_cv_dlopen_libs=
17059 ;;
17060
17061 cygwin*)
17062 lt_cv_dlopen="dlopen"
17063 lt_cv_dlopen_libs=
17064 ;;
17065
17066 darwin*)
17067 # if libdl is installed we need to link against it
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17069$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017070if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017071 $as_echo_n "(cached) " >&6
17072else
17073 ac_check_lib_save_LIBS=$LIBS
17074LIBS="-ldl $LIBS"
17075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17076/* end confdefs.h. */
17077
17078/* Override any GCC internal prototype to avoid an error.
17079 Use char because int might match the return type of a GCC
17080 builtin and then its argument prototype would still apply. */
17081#ifdef __cplusplus
17082extern "C"
17083#endif
17084char dlopen ();
17085int
17086main ()
17087{
17088return dlopen ();
17089 ;
17090 return 0;
17091}
17092_ACEOF
17093if ac_fn_c_try_link "$LINENO"; then :
17094 ac_cv_lib_dl_dlopen=yes
17095else
17096 ac_cv_lib_dl_dlopen=no
17097fi
17098rm -f core conftest.err conftest.$ac_objext \
17099 conftest$ac_exeext conftest.$ac_ext
17100LIBS=$ac_check_lib_save_LIBS
17101fi
17102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17103$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017104if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017105 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17106else
17107
17108 lt_cv_dlopen="dyld"
17109 lt_cv_dlopen_libs=
17110 lt_cv_dlopen_self=yes
17111
17112fi
17113
17114 ;;
17115
17116 *)
17117 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017118if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017119 lt_cv_dlopen="shl_load"
17120else
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17122$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017123if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017124 $as_echo_n "(cached) " >&6
17125else
17126 ac_check_lib_save_LIBS=$LIBS
17127LIBS="-ldld $LIBS"
17128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129/* end confdefs.h. */
17130
17131/* Override any GCC internal prototype to avoid an error.
17132 Use char because int might match the return type of a GCC
17133 builtin and then its argument prototype would still apply. */
17134#ifdef __cplusplus
17135extern "C"
17136#endif
17137char shl_load ();
17138int
17139main ()
17140{
17141return shl_load ();
17142 ;
17143 return 0;
17144}
17145_ACEOF
17146if ac_fn_c_try_link "$LINENO"; then :
17147 ac_cv_lib_dld_shl_load=yes
17148else
17149 ac_cv_lib_dld_shl_load=no
17150fi
17151rm -f core conftest.err conftest.$ac_objext \
17152 conftest$ac_exeext conftest.$ac_ext
17153LIBS=$ac_check_lib_save_LIBS
17154fi
17155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17156$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017157if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017158 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17159else
17160 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017161if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017162 lt_cv_dlopen="dlopen"
17163else
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17165$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017166if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017167 $as_echo_n "(cached) " >&6
17168else
17169 ac_check_lib_save_LIBS=$LIBS
17170LIBS="-ldl $LIBS"
17171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172/* end confdefs.h. */
17173
17174/* Override any GCC internal prototype to avoid an error.
17175 Use char because int might match the return type of a GCC
17176 builtin and then its argument prototype would still apply. */
17177#ifdef __cplusplus
17178extern "C"
17179#endif
17180char dlopen ();
17181int
17182main ()
17183{
17184return dlopen ();
17185 ;
17186 return 0;
17187}
17188_ACEOF
17189if ac_fn_c_try_link "$LINENO"; then :
17190 ac_cv_lib_dl_dlopen=yes
17191else
17192 ac_cv_lib_dl_dlopen=no
17193fi
17194rm -f core conftest.err conftest.$ac_objext \
17195 conftest$ac_exeext conftest.$ac_ext
17196LIBS=$ac_check_lib_save_LIBS
17197fi
17198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17199$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017200if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17202else
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17204$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017205if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017206 $as_echo_n "(cached) " >&6
17207else
17208 ac_check_lib_save_LIBS=$LIBS
17209LIBS="-lsvld $LIBS"
17210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17211/* end confdefs.h. */
17212
17213/* Override any GCC internal prototype to avoid an error.
17214 Use char because int might match the return type of a GCC
17215 builtin and then its argument prototype would still apply. */
17216#ifdef __cplusplus
17217extern "C"
17218#endif
17219char dlopen ();
17220int
17221main ()
17222{
17223return dlopen ();
17224 ;
17225 return 0;
17226}
17227_ACEOF
17228if ac_fn_c_try_link "$LINENO"; then :
17229 ac_cv_lib_svld_dlopen=yes
17230else
17231 ac_cv_lib_svld_dlopen=no
17232fi
17233rm -f core conftest.err conftest.$ac_objext \
17234 conftest$ac_exeext conftest.$ac_ext
17235LIBS=$ac_check_lib_save_LIBS
17236fi
17237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17238$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017239if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017240 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17241else
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17243$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017244if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017245 $as_echo_n "(cached) " >&6
17246else
17247 ac_check_lib_save_LIBS=$LIBS
17248LIBS="-ldld $LIBS"
17249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17250/* end confdefs.h. */
17251
17252/* Override any GCC internal prototype to avoid an error.
17253 Use char because int might match the return type of a GCC
17254 builtin and then its argument prototype would still apply. */
17255#ifdef __cplusplus
17256extern "C"
17257#endif
17258char dld_link ();
17259int
17260main ()
17261{
17262return dld_link ();
17263 ;
17264 return 0;
17265}
17266_ACEOF
17267if ac_fn_c_try_link "$LINENO"; then :
17268 ac_cv_lib_dld_dld_link=yes
17269else
17270 ac_cv_lib_dld_dld_link=no
17271fi
17272rm -f core conftest.err conftest.$ac_objext \
17273 conftest$ac_exeext conftest.$ac_ext
17274LIBS=$ac_check_lib_save_LIBS
17275fi
17276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17277$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017278if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017279 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17280fi
17281
17282
17283fi
17284
17285
17286fi
17287
17288
17289fi
17290
17291
17292fi
17293
17294
17295fi
17296
17297 ;;
17298 esac
17299
17300 if test "x$lt_cv_dlopen" != xno; then
17301 enable_dlopen=yes
17302 else
17303 enable_dlopen=no
17304 fi
17305
17306 case $lt_cv_dlopen in
17307 dlopen)
17308 save_CPPFLAGS="$CPPFLAGS"
17309 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17310
17311 save_LDFLAGS="$LDFLAGS"
17312 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17313
17314 save_LIBS="$LIBS"
17315 LIBS="$lt_cv_dlopen_libs $LIBS"
17316
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17318$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017319if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017320 $as_echo_n "(cached) " >&6
17321else
17322 if test "$cross_compiling" = yes; then :
17323 lt_cv_dlopen_self=cross
17324else
17325 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17326 lt_status=$lt_dlunknown
17327 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017328#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017329#include "confdefs.h"
17330
17331#if HAVE_DLFCN_H
17332#include <dlfcn.h>
17333#endif
17334
17335#include <stdio.h>
17336
17337#ifdef RTLD_GLOBAL
17338# define LT_DLGLOBAL RTLD_GLOBAL
17339#else
17340# ifdef DL_GLOBAL
17341# define LT_DLGLOBAL DL_GLOBAL
17342# else
17343# define LT_DLGLOBAL 0
17344# endif
17345#endif
17346
17347/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17348 find out it does not work in some platform. */
17349#ifndef LT_DLLAZY_OR_NOW
17350# ifdef RTLD_LAZY
17351# define LT_DLLAZY_OR_NOW RTLD_LAZY
17352# else
17353# ifdef DL_LAZY
17354# define LT_DLLAZY_OR_NOW DL_LAZY
17355# else
17356# ifdef RTLD_NOW
17357# define LT_DLLAZY_OR_NOW RTLD_NOW
17358# else
17359# ifdef DL_NOW
17360# define LT_DLLAZY_OR_NOW DL_NOW
17361# else
17362# define LT_DLLAZY_OR_NOW 0
17363# endif
17364# endif
17365# endif
17366# endif
17367#endif
17368
cristy0c60a692010-11-04 01:09:47 +000017369/* When -fvisbility=hidden is used, assume the code has been annotated
17370 correspondingly for the symbols needed. */
17371#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017372int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017373#endif
17374
cristyda16f162011-02-19 23:52:17 +000017375int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017376int main ()
17377{
17378 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17379 int status = $lt_dlunknown;
17380
17381 if (self)
17382 {
17383 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017384 else
17385 {
17386 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17387 else puts (dlerror ());
17388 }
cristy73bd4a52010-10-05 11:24:23 +000017389 /* dlclose (self); */
17390 }
17391 else
17392 puts (dlerror ());
17393
17394 return status;
17395}
17396_LT_EOF
17397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17398 (eval $ac_link) 2>&5
17399 ac_status=$?
17400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17401 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17402 (./conftest; exit; ) >&5 2>/dev/null
17403 lt_status=$?
17404 case x$lt_status in
17405 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17406 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17407 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17408 esac
17409 else :
17410 # compilation failed
17411 lt_cv_dlopen_self=no
17412 fi
17413fi
17414rm -fr conftest*
17415
17416
17417fi
17418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17419$as_echo "$lt_cv_dlopen_self" >&6; }
17420
17421 if test "x$lt_cv_dlopen_self" = xyes; then
17422 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17424$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017425if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017426 $as_echo_n "(cached) " >&6
17427else
17428 if test "$cross_compiling" = yes; then :
17429 lt_cv_dlopen_self_static=cross
17430else
17431 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17432 lt_status=$lt_dlunknown
17433 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017434#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017435#include "confdefs.h"
17436
17437#if HAVE_DLFCN_H
17438#include <dlfcn.h>
17439#endif
17440
17441#include <stdio.h>
17442
17443#ifdef RTLD_GLOBAL
17444# define LT_DLGLOBAL RTLD_GLOBAL
17445#else
17446# ifdef DL_GLOBAL
17447# define LT_DLGLOBAL DL_GLOBAL
17448# else
17449# define LT_DLGLOBAL 0
17450# endif
17451#endif
17452
17453/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17454 find out it does not work in some platform. */
17455#ifndef LT_DLLAZY_OR_NOW
17456# ifdef RTLD_LAZY
17457# define LT_DLLAZY_OR_NOW RTLD_LAZY
17458# else
17459# ifdef DL_LAZY
17460# define LT_DLLAZY_OR_NOW DL_LAZY
17461# else
17462# ifdef RTLD_NOW
17463# define LT_DLLAZY_OR_NOW RTLD_NOW
17464# else
17465# ifdef DL_NOW
17466# define LT_DLLAZY_OR_NOW DL_NOW
17467# else
17468# define LT_DLLAZY_OR_NOW 0
17469# endif
17470# endif
17471# endif
17472# endif
17473#endif
17474
cristy0c60a692010-11-04 01:09:47 +000017475/* When -fvisbility=hidden is used, assume the code has been annotated
17476 correspondingly for the symbols needed. */
17477#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017478int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017479#endif
17480
cristyda16f162011-02-19 23:52:17 +000017481int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017482int main ()
17483{
17484 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17485 int status = $lt_dlunknown;
17486
17487 if (self)
17488 {
17489 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017490 else
17491 {
17492 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17493 else puts (dlerror ());
17494 }
cristy73bd4a52010-10-05 11:24:23 +000017495 /* dlclose (self); */
17496 }
17497 else
17498 puts (dlerror ());
17499
17500 return status;
17501}
17502_LT_EOF
17503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17504 (eval $ac_link) 2>&5
17505 ac_status=$?
17506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17507 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17508 (./conftest; exit; ) >&5 2>/dev/null
17509 lt_status=$?
17510 case x$lt_status in
17511 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17512 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17513 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17514 esac
17515 else :
17516 # compilation failed
17517 lt_cv_dlopen_self_static=no
17518 fi
17519fi
17520rm -fr conftest*
17521
17522
17523fi
17524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17525$as_echo "$lt_cv_dlopen_self_static" >&6; }
17526 fi
17527
17528 CPPFLAGS="$save_CPPFLAGS"
17529 LDFLAGS="$save_LDFLAGS"
17530 LIBS="$save_LIBS"
17531 ;;
17532 esac
17533
17534 case $lt_cv_dlopen_self in
17535 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17536 *) enable_dlopen_self=unknown ;;
17537 esac
17538
17539 case $lt_cv_dlopen_self_static in
17540 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17541 *) enable_dlopen_self_static=unknown ;;
17542 esac
17543fi
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561striplib=
17562old_striplib=
17563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17564$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17565if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17566 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17567 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17569$as_echo "yes" >&6; }
17570else
17571# FIXME - insert some real tests, host_os isn't really good enough
17572 case $host_os in
17573 darwin*)
17574 if test -n "$STRIP" ; then
17575 striplib="$STRIP -x"
17576 old_striplib="$STRIP -S"
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17578$as_echo "yes" >&6; }
17579 else
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17581$as_echo "no" >&6; }
17582 fi
17583 ;;
17584 *)
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17586$as_echo "no" >&6; }
17587 ;;
17588 esac
17589fi
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602 # Report which library types will actually be built
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17604$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17606$as_echo "$can_build_shared" >&6; }
17607
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17609$as_echo_n "checking whether to build shared libraries... " >&6; }
17610 test "$can_build_shared" = "no" && enable_shared=no
17611
17612 # On AIX, shared libraries and static libraries use the same namespace, and
17613 # are all built from PIC.
17614 case $host_os in
17615 aix3*)
17616 test "$enable_shared" = yes && enable_static=no
17617 if test -n "$RANLIB"; then
17618 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17619 postinstall_cmds='$RANLIB $lib'
17620 fi
17621 ;;
17622
17623 aix[4-9]*)
17624 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17625 test "$enable_shared" = yes && enable_static=no
17626 fi
17627 ;;
17628 esac
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17630$as_echo "$enable_shared" >&6; }
17631
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17633$as_echo_n "checking whether to build static libraries... " >&6; }
17634 # Make sure either enable_shared or enable_static is yes.
17635 test "$enable_shared" = yes || enable_static=yes
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17637$as_echo "$enable_static" >&6; }
17638
17639
17640
17641
17642fi
17643ac_ext=c
17644ac_cpp='$CPP $CPPFLAGS'
17645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17647ac_compiler_gnu=$ac_cv_c_compiler_gnu
17648
17649CC="$lt_save_CC"
17650
cristy0c60a692010-11-04 01:09:47 +000017651 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17652 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17653 (test "X$CXX" != "Xg++"))) ; then
17654 ac_ext=cpp
17655ac_cpp='$CXXCPP $CPPFLAGS'
17656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17660$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17661if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017662 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017663 $as_echo_n "(cached) " >&6
17664else
17665 # Double quotes because CXXCPP needs to be expanded
17666 for CXXCPP in "$CXX -E" "/lib/cpp"
17667 do
17668 ac_preproc_ok=false
17669for ac_cxx_preproc_warn_flag in '' yes
17670do
17671 # Use a header file that comes with gcc, so configuring glibc
17672 # with a fresh cross-compiler works.
17673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17674 # <limits.h> exists even on freestanding compilers.
17675 # On the NeXT, cc -E runs the code through the compiler's parser,
17676 # not just through cpp. "Syntax error" is here to catch this case.
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678/* end confdefs.h. */
17679#ifdef __STDC__
17680# include <limits.h>
17681#else
17682# include <assert.h>
17683#endif
17684 Syntax error
17685_ACEOF
17686if ac_fn_cxx_try_cpp "$LINENO"; then :
17687
17688else
17689 # Broken: fails on valid input.
17690continue
17691fi
cristyda16f162011-02-19 23:52:17 +000017692rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017693
17694 # OK, works on sane cases. Now check whether nonexistent headers
17695 # can be detected and how.
17696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17697/* end confdefs.h. */
17698#include <ac_nonexistent.h>
17699_ACEOF
17700if ac_fn_cxx_try_cpp "$LINENO"; then :
17701 # Broken: success on invalid input.
17702continue
17703else
17704 # Passes both tests.
17705ac_preproc_ok=:
17706break
17707fi
cristyda16f162011-02-19 23:52:17 +000017708rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017709
17710done
17711# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017712rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017713if $ac_preproc_ok; then :
17714 break
17715fi
17716
17717 done
17718 ac_cv_prog_CXXCPP=$CXXCPP
17719
17720fi
17721 CXXCPP=$ac_cv_prog_CXXCPP
17722else
17723 ac_cv_prog_CXXCPP=$CXXCPP
17724fi
17725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17726$as_echo "$CXXCPP" >&6; }
17727ac_preproc_ok=false
17728for ac_cxx_preproc_warn_flag in '' yes
17729do
17730 # Use a header file that comes with gcc, so configuring glibc
17731 # with a fresh cross-compiler works.
17732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17733 # <limits.h> exists even on freestanding compilers.
17734 # On the NeXT, cc -E runs the code through the compiler's parser,
17735 # not just through cpp. "Syntax error" is here to catch this case.
17736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17737/* end confdefs.h. */
17738#ifdef __STDC__
17739# include <limits.h>
17740#else
17741# include <assert.h>
17742#endif
17743 Syntax error
17744_ACEOF
17745if ac_fn_cxx_try_cpp "$LINENO"; then :
17746
17747else
17748 # Broken: fails on valid input.
17749continue
17750fi
cristyda16f162011-02-19 23:52:17 +000017751rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017752
17753 # OK, works on sane cases. Now check whether nonexistent headers
17754 # can be detected and how.
17755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17756/* end confdefs.h. */
17757#include <ac_nonexistent.h>
17758_ACEOF
17759if ac_fn_cxx_try_cpp "$LINENO"; then :
17760 # Broken: success on invalid input.
17761continue
17762else
17763 # Passes both tests.
17764ac_preproc_ok=:
17765break
17766fi
cristyda16f162011-02-19 23:52:17 +000017767rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017768
17769done
17770# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017771rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017772if $ac_preproc_ok; then :
17773
17774else
17775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17777as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17778See \`config.log' for more details" "$LINENO" 5; }
17779fi
17780
17781ac_ext=c
17782ac_cpp='$CPP $CPPFLAGS'
17783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17785ac_compiler_gnu=$ac_cv_c_compiler_gnu
17786
17787else
17788 _lt_caught_CXX_error=yes
17789fi
cristy73bd4a52010-10-05 11:24:23 +000017790
17791ac_ext=cpp
17792ac_cpp='$CXXCPP $CPPFLAGS'
17793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17796
17797archive_cmds_need_lc_CXX=no
17798allow_undefined_flag_CXX=
17799always_export_symbols_CXX=no
17800archive_expsym_cmds_CXX=
17801compiler_needs_object_CXX=no
17802export_dynamic_flag_spec_CXX=
17803hardcode_direct_CXX=no
17804hardcode_direct_absolute_CXX=no
17805hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017806hardcode_libdir_separator_CXX=
17807hardcode_minus_L_CXX=no
17808hardcode_shlibpath_var_CXX=unsupported
17809hardcode_automatic_CXX=no
17810inherit_rpath_CXX=no
17811module_cmds_CXX=
17812module_expsym_cmds_CXX=
17813link_all_deplibs_CXX=unknown
17814old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017815reload_flag_CXX=$reload_flag
17816reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017817no_undefined_flag_CXX=
17818whole_archive_flag_spec_CXX=
17819enable_shared_with_static_runtimes_CXX=no
17820
17821# Source file extension for C++ test sources.
17822ac_ext=cpp
17823
17824# Object file extension for compiled C++ test sources.
17825objext=o
17826objext_CXX=$objext
17827
17828# No sense in running all these tests if we already determined that
17829# the CXX compiler isn't working. Some variables (like enable_shared)
17830# are currently assumed to apply to all compilers on this platform,
17831# and will be corrupted by setting them based on a non-working compiler.
17832if test "$_lt_caught_CXX_error" != yes; then
17833 # Code to be used in simple compile tests
17834 lt_simple_compile_test_code="int some_variable = 0;"
17835
17836 # Code to be used in simple link tests
17837 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17838
17839 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17840
17841
17842
17843
17844
17845
17846# If no C compiler was specified, use CC.
17847LTCC=${LTCC-"$CC"}
17848
17849# If no C compiler flags were specified, use CFLAGS.
17850LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17851
17852# Allow CC to be a program name with arguments.
17853compiler=$CC
17854
17855
17856 # save warnings/boilerplate of simple test code
17857 ac_outfile=conftest.$ac_objext
17858echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17859eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17860_lt_compiler_boilerplate=`cat conftest.err`
17861$RM conftest*
17862
17863 ac_outfile=conftest.$ac_objext
17864echo "$lt_simple_link_test_code" >conftest.$ac_ext
17865eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17866_lt_linker_boilerplate=`cat conftest.err`
17867$RM -r conftest*
17868
17869
17870 # Allow CC to be a program name with arguments.
17871 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017872 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017873 lt_save_LD=$LD
17874 lt_save_GCC=$GCC
17875 GCC=$GXX
17876 lt_save_with_gnu_ld=$with_gnu_ld
17877 lt_save_path_LD=$lt_cv_path_LD
17878 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17879 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17880 else
17881 $as_unset lt_cv_prog_gnu_ld
17882 fi
17883 if test -n "${lt_cv_path_LDCXX+set}"; then
17884 lt_cv_path_LD=$lt_cv_path_LDCXX
17885 else
17886 $as_unset lt_cv_path_LD
17887 fi
17888 test -z "${LDCXX+set}" || LD=$LDCXX
17889 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017890 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017891 compiler=$CC
17892 compiler_CXX=$CC
17893 for cc_temp in $compiler""; do
17894 case $cc_temp in
17895 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17896 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17897 \-*) ;;
17898 *) break;;
17899 esac
17900done
cristy0c60a692010-11-04 01:09:47 +000017901cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017902
17903
17904 if test -n "$compiler"; then
17905 # We don't want -fno-exception when compiling C++ code, so set the
17906 # no_builtin_flag separately
17907 if test "$GXX" = yes; then
17908 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17909 else
17910 lt_prog_compiler_no_builtin_flag_CXX=
17911 fi
17912
17913 if test "$GXX" = yes; then
17914 # Set up default GNU C++ configuration
17915
17916
17917
17918# Check whether --with-gnu-ld was given.
17919if test "${with_gnu_ld+set}" = set; then :
17920 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17921else
17922 with_gnu_ld=no
17923fi
17924
17925ac_prog=ld
17926if test "$GCC" = yes; then
17927 # Check if gcc -print-prog-name=ld gives a path.
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17929$as_echo_n "checking for ld used by $CC... " >&6; }
17930 case $host in
17931 *-*-mingw*)
17932 # gcc leaves a trailing carriage return which upsets mingw
17933 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17934 *)
17935 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17936 esac
17937 case $ac_prog in
17938 # Accept absolute paths.
17939 [\\/]* | ?:[\\/]*)
17940 re_direlt='/[^/][^/]*/\.\./'
17941 # Canonicalize the pathname of ld
17942 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17943 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17944 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17945 done
17946 test -z "$LD" && LD="$ac_prog"
17947 ;;
17948 "")
17949 # If it fails, then pretend we aren't using GCC.
17950 ac_prog=ld
17951 ;;
17952 *)
17953 # If it is relative, then search for the first ld in PATH.
17954 with_gnu_ld=unknown
17955 ;;
17956 esac
17957elif test "$with_gnu_ld" = yes; then
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17959$as_echo_n "checking for GNU ld... " >&6; }
17960else
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17962$as_echo_n "checking for non-GNU ld... " >&6; }
17963fi
cristyda16f162011-02-19 23:52:17 +000017964if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017965 $as_echo_n "(cached) " >&6
17966else
17967 if test -z "$LD"; then
17968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17969 for ac_dir in $PATH; do
17970 IFS="$lt_save_ifs"
17971 test -z "$ac_dir" && ac_dir=.
17972 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17973 lt_cv_path_LD="$ac_dir/$ac_prog"
17974 # Check to see if the program is GNU ld. I'd rather use --version,
17975 # but apparently some variants of GNU ld only accept -v.
17976 # Break only if it was the GNU/non-GNU ld that we prefer.
17977 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17978 *GNU* | *'with BFD'*)
17979 test "$with_gnu_ld" != no && break
17980 ;;
17981 *)
17982 test "$with_gnu_ld" != yes && break
17983 ;;
17984 esac
17985 fi
17986 done
17987 IFS="$lt_save_ifs"
17988else
17989 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17990fi
17991fi
17992
17993LD="$lt_cv_path_LD"
17994if test -n "$LD"; then
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17996$as_echo "$LD" >&6; }
17997else
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17999$as_echo "no" >&6; }
18000fi
cristy98dddb52010-11-04 00:30:15 +000018001test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18003$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018004if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018005 $as_echo_n "(cached) " >&6
18006else
18007 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18008case `$LD -v 2>&1 </dev/null` in
18009*GNU* | *'with BFD'*)
18010 lt_cv_prog_gnu_ld=yes
18011 ;;
18012*)
18013 lt_cv_prog_gnu_ld=no
18014 ;;
18015esac
18016fi
18017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18018$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18019with_gnu_ld=$lt_cv_prog_gnu_ld
18020
18021
18022
18023
18024
18025
18026
18027 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18028 # archiving commands below assume that GNU ld is being used.
18029 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018030 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18031 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 +000018032
18033 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18034 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18035
18036 # If archive_cmds runs LD, not CC, wlarc should be empty
18037 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18038 # investigate it a little bit more. (MM)
18039 wlarc='${wl}'
18040
18041 # ancient GNU ld didn't support --whole-archive et. al.
18042 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18043 $GREP 'no-whole-archive' > /dev/null; then
18044 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18045 else
18046 whole_archive_flag_spec_CXX=
18047 fi
18048 else
18049 with_gnu_ld=no
18050 wlarc=
18051
18052 # A generic and very simple default shared library creation
18053 # command for GNU C++ for the case where it uses the native
18054 # linker, instead of GNU ld. If possible, this setting should
18055 # overridden to take advantage of the native linker features on
18056 # the platform it is being used on.
18057 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18058 fi
18059
18060 # Commands to make compiler produce verbose output that lists
18061 # what "hidden" libraries, object files and flags are used when
18062 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018063 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018064
18065 else
18066 GXX=no
18067 with_gnu_ld=no
18068 wlarc=
18069 fi
18070
18071 # PORTME: fill in a description of your system's C++ link characteristics
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18073$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18074 ld_shlibs_CXX=yes
18075 case $host_os in
18076 aix3*)
18077 # FIXME: insert proper C++ library support
18078 ld_shlibs_CXX=no
18079 ;;
18080 aix[4-9]*)
18081 if test "$host_cpu" = ia64; then
18082 # On IA64, the linker does run time linking by default, so we don't
18083 # have to do anything special.
18084 aix_use_runtimelinking=no
18085 exp_sym_flag='-Bexport'
18086 no_entry_flag=""
18087 else
18088 aix_use_runtimelinking=no
18089
18090 # Test if we are trying to use run time linking or normal
18091 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18092 # need to do runtime linking.
18093 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18094 for ld_flag in $LDFLAGS; do
18095 case $ld_flag in
18096 *-brtl*)
18097 aix_use_runtimelinking=yes
18098 break
18099 ;;
18100 esac
18101 done
18102 ;;
18103 esac
18104
18105 exp_sym_flag='-bexport'
18106 no_entry_flag='-bnoentry'
18107 fi
18108
18109 # When large executables or shared objects are built, AIX ld can
18110 # have problems creating the table of contents. If linking a library
18111 # or program results in "error TOC overflow" add -mminimal-toc to
18112 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18113 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18114
18115 archive_cmds_CXX=''
18116 hardcode_direct_CXX=yes
18117 hardcode_direct_absolute_CXX=yes
18118 hardcode_libdir_separator_CXX=':'
18119 link_all_deplibs_CXX=yes
18120 file_list_spec_CXX='${wl}-f,'
18121
18122 if test "$GXX" = yes; then
18123 case $host_os in aix4.[012]|aix4.[012].*)
18124 # We only want to do this on AIX 4.2 and lower, the check
18125 # below for broken collect2 doesn't work under 4.3+
18126 collect2name=`${CC} -print-prog-name=collect2`
18127 if test -f "$collect2name" &&
18128 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18129 then
18130 # We have reworked collect2
18131 :
18132 else
18133 # We have old collect2
18134 hardcode_direct_CXX=unsupported
18135 # It fails to find uninstalled libraries when the uninstalled
18136 # path is not listed in the libpath. Setting hardcode_minus_L
18137 # to unsupported forces relinking
18138 hardcode_minus_L_CXX=yes
18139 hardcode_libdir_flag_spec_CXX='-L$libdir'
18140 hardcode_libdir_separator_CXX=
18141 fi
18142 esac
18143 shared_flag='-shared'
18144 if test "$aix_use_runtimelinking" = yes; then
18145 shared_flag="$shared_flag "'${wl}-G'
18146 fi
18147 else
18148 # not using gcc
18149 if test "$host_cpu" = ia64; then
18150 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18151 # chokes on -Wl,-G. The following line is correct:
18152 shared_flag='-G'
18153 else
18154 if test "$aix_use_runtimelinking" = yes; then
18155 shared_flag='${wl}-G'
18156 else
18157 shared_flag='${wl}-bM:SRE'
18158 fi
18159 fi
18160 fi
18161
18162 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18163 # It seems that -bexpall does not export symbols beginning with
18164 # underscore (_), so it is better to generate a list of symbols to
18165 # export.
18166 always_export_symbols_CXX=yes
18167 if test "$aix_use_runtimelinking" = yes; then
18168 # Warning - without using the other runtime loading flags (-brtl),
18169 # -berok will link without error, but may produce a broken library.
18170 allow_undefined_flag_CXX='-berok'
18171 # Determine the default libpath from the value encoded in an empty
18172 # executable.
cristyda16f162011-02-19 23:52:17 +000018173 if test "${lt_cv_aix_libpath+set}" = set; then
18174 aix_libpath=$lt_cv_aix_libpath
18175else
18176 if ${lt_cv_aix_libpath__CXX+:} false; then :
18177 $as_echo_n "(cached) " >&6
18178else
18179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018180/* end confdefs.h. */
18181
18182int
18183main ()
18184{
18185
18186 ;
18187 return 0;
18188}
18189_ACEOF
18190if ac_fn_cxx_try_link "$LINENO"; then :
18191
cristyda16f162011-02-19 23:52:17 +000018192 lt_aix_libpath_sed='
18193 /Import File Strings/,/^$/ {
18194 /^0/ {
18195 s/^0 *\([^ ]*\) *$/\1/
18196 p
18197 }
18198 }'
18199 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18200 # Check for a 64-bit object if we didn't find anything.
18201 if test -z "$lt_cv_aix_libpath__CXX"; then
18202 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18203 fi
cristy73bd4a52010-10-05 11:24:23 +000018204fi
18205rm -f core conftest.err conftest.$ac_objext \
18206 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018207 if test -z "$lt_cv_aix_libpath__CXX"; then
18208 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18209 fi
18210
18211fi
18212
18213 aix_libpath=$lt_cv_aix_libpath__CXX
18214fi
cristy73bd4a52010-10-05 11:24:23 +000018215
18216 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18217
cristy0c60a692010-11-04 01:09:47 +000018218 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 +000018219 else
18220 if test "$host_cpu" = ia64; then
18221 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18222 allow_undefined_flag_CXX="-z nodefs"
18223 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"
18224 else
18225 # Determine the default libpath from the value encoded in an
18226 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018227 if test "${lt_cv_aix_libpath+set}" = set; then
18228 aix_libpath=$lt_cv_aix_libpath
18229else
18230 if ${lt_cv_aix_libpath__CXX+:} false; then :
18231 $as_echo_n "(cached) " >&6
18232else
18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018234/* end confdefs.h. */
18235
18236int
18237main ()
18238{
18239
18240 ;
18241 return 0;
18242}
18243_ACEOF
18244if ac_fn_cxx_try_link "$LINENO"; then :
18245
cristyda16f162011-02-19 23:52:17 +000018246 lt_aix_libpath_sed='
18247 /Import File Strings/,/^$/ {
18248 /^0/ {
18249 s/^0 *\([^ ]*\) *$/\1/
18250 p
18251 }
18252 }'
18253 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18254 # Check for a 64-bit object if we didn't find anything.
18255 if test -z "$lt_cv_aix_libpath__CXX"; then
18256 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18257 fi
cristy73bd4a52010-10-05 11:24:23 +000018258fi
18259rm -f core conftest.err conftest.$ac_objext \
18260 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018261 if test -z "$lt_cv_aix_libpath__CXX"; then
18262 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18263 fi
18264
18265fi
18266
18267 aix_libpath=$lt_cv_aix_libpath__CXX
18268fi
cristy73bd4a52010-10-05 11:24:23 +000018269
18270 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18271 # Warning - without using the other run time loading flags,
18272 # -berok will link without error, but may produce a broken library.
18273 no_undefined_flag_CXX=' ${wl}-bernotok'
18274 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018275 if test "$with_gnu_ld" = yes; then
18276 # We only use this code for GNU lds that support --whole-archive.
18277 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18278 else
18279 # Exported symbols can be pulled into shared objects from archives
18280 whole_archive_flag_spec_CXX='$convenience'
18281 fi
cristy73bd4a52010-10-05 11:24:23 +000018282 archive_cmds_need_lc_CXX=yes
18283 # This is similar to how AIX traditionally builds its shared
18284 # libraries.
18285 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'
18286 fi
18287 fi
18288 ;;
18289
18290 beos*)
18291 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18292 allow_undefined_flag_CXX=unsupported
18293 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18294 # support --undefined. This deserves some investigation. FIXME
18295 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18296 else
18297 ld_shlibs_CXX=no
18298 fi
18299 ;;
18300
18301 chorus*)
18302 case $cc_basename in
18303 *)
18304 # FIXME: insert proper C++ library support
18305 ld_shlibs_CXX=no
18306 ;;
18307 esac
18308 ;;
18309
18310 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018311 case $GXX,$cc_basename in
18312 ,cl* | no,cl*)
18313 # Native MSVC
18314 # hardcode_libdir_flag_spec is actually meaningless, as there is
18315 # no search path for DLLs.
18316 hardcode_libdir_flag_spec_CXX=' '
18317 allow_undefined_flag_CXX=unsupported
18318 always_export_symbols_CXX=yes
18319 file_list_spec_CXX='@'
18320 # Tell ltmain to make .lib files, not .a files.
18321 libext=lib
18322 # Tell ltmain to make .dll files, not .so files.
18323 shrext_cmds=".dll"
18324 # FIXME: Setting linknames here is a bad hack.
18325 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18326 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18327 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18328 else
18329 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18330 fi~
18331 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18332 linknames='
18333 # The linker will not automatically build a static lib if we build a DLL.
18334 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18335 enable_shared_with_static_runtimes_CXX=yes
18336 # Don't use ranlib
18337 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18338 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18339 lt_tool_outputfile="@TOOL_OUTPUT@"~
18340 case $lt_outputfile in
18341 *.exe|*.EXE) ;;
18342 *)
18343 lt_outputfile="$lt_outputfile.exe"
18344 lt_tool_outputfile="$lt_tool_outputfile.exe"
18345 ;;
18346 esac~
18347 func_to_tool_file "$lt_outputfile"~
18348 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18349 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18350 $RM "$lt_outputfile.manifest";
18351 fi'
18352 ;;
18353 *)
18354 # g++
18355 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18356 # as there is no search path for DLLs.
18357 hardcode_libdir_flag_spec_CXX='-L$libdir'
18358 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18359 allow_undefined_flag_CXX=unsupported
18360 always_export_symbols_CXX=no
18361 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018362
cristyda16f162011-02-19 23:52:17 +000018363 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18364 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'
18365 # If the export-symbols file already is a .def file (1st line
18366 # is EXPORTS), use it as is; otherwise, prepend...
18367 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18368 cp $export_symbols $output_objdir/$soname.def;
18369 else
18370 echo EXPORTS > $output_objdir/$soname.def;
18371 cat $export_symbols >> $output_objdir/$soname.def;
18372 fi~
18373 $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'
18374 else
18375 ld_shlibs_CXX=no
18376 fi
18377 ;;
18378 esac
18379 ;;
cristy73bd4a52010-10-05 11:24:23 +000018380 darwin* | rhapsody*)
18381
18382
18383 archive_cmds_need_lc_CXX=no
18384 hardcode_direct_CXX=no
18385 hardcode_automatic_CXX=yes
18386 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018387 if test "$lt_cv_ld_force_load" = "yes"; then
18388 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 +000018389
cristy0c60a692010-11-04 01:09:47 +000018390 else
18391 whole_archive_flag_spec_CXX=''
18392 fi
cristy73bd4a52010-10-05 11:24:23 +000018393 link_all_deplibs_CXX=yes
18394 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18395 case $cc_basename in
18396 ifort*) _lt_dar_can_shared=yes ;;
18397 *) _lt_dar_can_shared=$GCC ;;
18398 esac
18399 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018400 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018401 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}"
18402 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18403 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}"
18404 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}"
18405 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18406 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}"
18407 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}"
18408 fi
18409
18410 else
18411 ld_shlibs_CXX=no
18412 fi
18413
18414 ;;
18415
18416 dgux*)
18417 case $cc_basename in
18418 ec++*)
18419 # FIXME: insert proper C++ library support
18420 ld_shlibs_CXX=no
18421 ;;
18422 ghcx*)
18423 # Green Hills C++ Compiler
18424 # FIXME: insert proper C++ library support
18425 ld_shlibs_CXX=no
18426 ;;
18427 *)
18428 # FIXME: insert proper C++ library support
18429 ld_shlibs_CXX=no
18430 ;;
18431 esac
18432 ;;
18433
cristy99bd5232011-12-07 14:38:20 +000018434 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018435 # C++ shared libraries reported to be fairly broken before
18436 # switch to ELF
18437 ld_shlibs_CXX=no
18438 ;;
18439
18440 freebsd-elf*)
18441 archive_cmds_need_lc_CXX=no
18442 ;;
18443
18444 freebsd* | dragonfly*)
18445 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18446 # conventions
18447 ld_shlibs_CXX=yes
18448 ;;
18449
18450 gnu*)
18451 ;;
18452
cristy0c60a692010-11-04 01:09:47 +000018453 haiku*)
18454 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18455 link_all_deplibs_CXX=yes
18456 ;;
18457
cristy73bd4a52010-10-05 11:24:23 +000018458 hpux9*)
18459 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18460 hardcode_libdir_separator_CXX=:
18461 export_dynamic_flag_spec_CXX='${wl}-E'
18462 hardcode_direct_CXX=yes
18463 hardcode_minus_L_CXX=yes # Not in the search PATH,
18464 # but as the default
18465 # location of the library.
18466
18467 case $cc_basename in
18468 CC*)
18469 # FIXME: insert proper C++ library support
18470 ld_shlibs_CXX=no
18471 ;;
18472 aCC*)
18473 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'
18474 # Commands to make compiler produce verbose output that lists
18475 # what "hidden" libraries, object files and flags are used when
18476 # linking a shared library.
18477 #
18478 # There doesn't appear to be a way to prevent this compiler from
18479 # explicitly linking system object files so we need to strip them
18480 # from the output so that they don't get included in the library
18481 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018482 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 +000018483 ;;
18484 *)
18485 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018486 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 +000018487 else
18488 # FIXME: insert proper C++ library support
18489 ld_shlibs_CXX=no
18490 fi
18491 ;;
18492 esac
18493 ;;
18494
18495 hpux10*|hpux11*)
18496 if test $with_gnu_ld = no; then
18497 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18498 hardcode_libdir_separator_CXX=:
18499
18500 case $host_cpu in
18501 hppa*64*|ia64*)
18502 ;;
18503 *)
18504 export_dynamic_flag_spec_CXX='${wl}-E'
18505 ;;
18506 esac
18507 fi
18508 case $host_cpu in
18509 hppa*64*|ia64*)
18510 hardcode_direct_CXX=no
18511 hardcode_shlibpath_var_CXX=no
18512 ;;
18513 *)
18514 hardcode_direct_CXX=yes
18515 hardcode_direct_absolute_CXX=yes
18516 hardcode_minus_L_CXX=yes # Not in the search PATH,
18517 # but as the default
18518 # location of the library.
18519 ;;
18520 esac
18521
18522 case $cc_basename in
18523 CC*)
18524 # FIXME: insert proper C++ library support
18525 ld_shlibs_CXX=no
18526 ;;
18527 aCC*)
18528 case $host_cpu in
18529 hppa*64*)
18530 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18531 ;;
18532 ia64*)
18533 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18534 ;;
18535 *)
18536 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18537 ;;
18538 esac
18539 # Commands to make compiler produce verbose output that lists
18540 # what "hidden" libraries, object files and flags are used when
18541 # linking a shared library.
18542 #
18543 # There doesn't appear to be a way to prevent this compiler from
18544 # explicitly linking system object files so we need to strip them
18545 # from the output so that they don't get included in the library
18546 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018547 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 +000018548 ;;
18549 *)
18550 if test "$GXX" = yes; then
18551 if test $with_gnu_ld = no; then
18552 case $host_cpu in
18553 hppa*64*)
18554 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18555 ;;
18556 ia64*)
cristyda16f162011-02-19 23:52:17 +000018557 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 +000018558 ;;
18559 *)
cristyda16f162011-02-19 23:52:17 +000018560 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 +000018561 ;;
18562 esac
18563 fi
18564 else
18565 # FIXME: insert proper C++ library support
18566 ld_shlibs_CXX=no
18567 fi
18568 ;;
18569 esac
18570 ;;
18571
18572 interix[3-9]*)
18573 hardcode_direct_CXX=no
18574 hardcode_shlibpath_var_CXX=no
18575 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18576 export_dynamic_flag_spec_CXX='${wl}-E'
18577 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18578 # Instead, shared libraries are loaded at an image base (0x10000000 by
18579 # default) and relocated if they conflict, which is a slow very memory
18580 # consuming and fragmenting process. To avoid this, we pick a random,
18581 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18582 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18583 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'
18584 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'
18585 ;;
18586 irix5* | irix6*)
18587 case $cc_basename in
18588 CC*)
18589 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018590 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 +000018591
18592 # Archives containing C++ object files must be created using
18593 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18594 # necessary to make sure instantiated templates are included
18595 # in the archive.
18596 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18597 ;;
18598 *)
18599 if test "$GXX" = yes; then
18600 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018601 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 +000018602 else
cristyda16f162011-02-19 23:52:17 +000018603 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 +000018604 fi
18605 fi
18606 link_all_deplibs_CXX=yes
18607 ;;
18608 esac
18609 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18610 hardcode_libdir_separator_CXX=:
18611 inherit_rpath_CXX=yes
18612 ;;
18613
cristy0c60a692010-11-04 01:09:47 +000018614 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018615 case $cc_basename in
18616 KCC*)
18617 # Kuck and Associates, Inc. (KAI) C++ Compiler
18618
18619 # KCC will only create a shared library if the output file
18620 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18621 # to its proper name (with version) after linking.
18622 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'
18623 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'
18624 # Commands to make compiler produce verbose output that lists
18625 # what "hidden" libraries, object files and flags are used when
18626 # linking a shared library.
18627 #
18628 # There doesn't appear to be a way to prevent this compiler from
18629 # explicitly linking system object files so we need to strip them
18630 # from the output so that they don't get included in the library
18631 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018632 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 +000018633
18634 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18635 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18636
18637 # Archives containing C++ object files must be created using
18638 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18639 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18640 ;;
18641 icpc* | ecpc* )
18642 # Intel C++
18643 with_gnu_ld=yes
18644 # version 8.0 and above of icpc choke on multiply defined symbols
18645 # if we add $predep_objects and $postdep_objects, however 7.1 and
18646 # earlier do not add the objects themselves.
18647 case `$CC -V 2>&1` in
18648 *"Version 7."*)
18649 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18650 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'
18651 ;;
18652 *) # Version 8.0 or newer
18653 tmp_idyn=
18654 case $host_cpu in
18655 ia64*) tmp_idyn=' -i_dynamic';;
18656 esac
18657 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18658 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'
18659 ;;
18660 esac
18661 archive_cmds_need_lc_CXX=no
18662 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18663 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18664 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18665 ;;
18666 pgCC* | pgcpp*)
18667 # Portland Group C++ compiler
18668 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018669 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018670 prelink_cmds_CXX='tpldir=Template.dir~
18671 rm -rf $tpldir~
18672 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018673 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018674 old_archive_cmds_CXX='tpldir=Template.dir~
18675 rm -rf $tpldir~
18676 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018677 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018678 $RANLIB $oldlib'
18679 archive_cmds_CXX='tpldir=Template.dir~
18680 rm -rf $tpldir~
18681 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018682 $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 +000018683 archive_expsym_cmds_CXX='tpldir=Template.dir~
18684 rm -rf $tpldir~
18685 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018686 $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 +000018687 ;;
cristy0c60a692010-11-04 01:09:47 +000018688 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018689 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18690 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'
18691 ;;
18692 esac
18693
18694 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18695 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018696 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 +000018697 ;;
18698 cxx*)
18699 # Compaq C++
18700 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18701 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'
18702
18703 runpath_var=LD_RUN_PATH
18704 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18705 hardcode_libdir_separator_CXX=:
18706
18707 # Commands to make compiler produce verbose output that lists
18708 # what "hidden" libraries, object files and flags are used when
18709 # linking a shared library.
18710 #
18711 # There doesn't appear to be a way to prevent this compiler from
18712 # explicitly linking system object files so we need to strip them
18713 # from the output so that they don't get included in the library
18714 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018715 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 +000018716 ;;
cristy0c60a692010-11-04 01:09:47 +000018717 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018718 # IBM XL 8.0 on PPC, with GNU ld
18719 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18720 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18721 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18722 if test "x$supports_anon_versioning" = xyes; then
18723 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18724 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18725 echo "local: *; };" >> $output_objdir/$libname.ver~
18726 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18727 fi
18728 ;;
18729 *)
18730 case `$CC -V 2>&1 | sed 5q` in
18731 *Sun\ C*)
18732 # Sun C++ 5.9
18733 no_undefined_flag_CXX=' -zdefs'
18734 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18735 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'
18736 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018737 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 +000018738 compiler_needs_object_CXX=yes
18739
18740 # Not sure whether something based on
18741 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18742 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018743 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018744
18745 # Archives containing C++ object files must be created using
18746 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18747 # necessary to make sure instantiated templates are included
18748 # in the archive.
18749 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18750 ;;
18751 esac
18752 ;;
18753 esac
18754 ;;
18755
18756 lynxos*)
18757 # FIXME: insert proper C++ library support
18758 ld_shlibs_CXX=no
18759 ;;
18760
18761 m88k*)
18762 # FIXME: insert proper C++ library support
18763 ld_shlibs_CXX=no
18764 ;;
18765
18766 mvs*)
18767 case $cc_basename in
18768 cxx*)
18769 # FIXME: insert proper C++ library support
18770 ld_shlibs_CXX=no
18771 ;;
18772 *)
18773 # FIXME: insert proper C++ library support
18774 ld_shlibs_CXX=no
18775 ;;
18776 esac
18777 ;;
18778
18779 netbsd*)
18780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18781 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18782 wlarc=
18783 hardcode_libdir_flag_spec_CXX='-R$libdir'
18784 hardcode_direct_CXX=yes
18785 hardcode_shlibpath_var_CXX=no
18786 fi
18787 # Workaround some broken pre-1.5 toolchains
18788 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18789 ;;
18790
18791 *nto* | *qnx*)
18792 ld_shlibs_CXX=yes
18793 ;;
18794
18795 openbsd2*)
18796 # C++ shared libraries are fairly broken
18797 ld_shlibs_CXX=no
18798 ;;
18799
18800 openbsd*)
18801 if test -f /usr/libexec/ld.so; then
18802 hardcode_direct_CXX=yes
18803 hardcode_shlibpath_var_CXX=no
18804 hardcode_direct_absolute_CXX=yes
18805 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18807 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18808 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18809 export_dynamic_flag_spec_CXX='${wl}-E'
18810 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18811 fi
cristy0c60a692010-11-04 01:09:47 +000018812 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018813 else
18814 ld_shlibs_CXX=no
18815 fi
18816 ;;
18817
18818 osf3* | osf4* | osf5*)
18819 case $cc_basename in
18820 KCC*)
18821 # Kuck and Associates, Inc. (KAI) C++ Compiler
18822
18823 # KCC will only create a shared library if the output file
18824 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18825 # to its proper name (with version) after linking.
18826 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'
18827
18828 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18829 hardcode_libdir_separator_CXX=:
18830
18831 # Archives containing C++ object files must be created using
18832 # the KAI C++ compiler.
18833 case $host in
18834 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18835 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18836 esac
18837 ;;
18838 RCC*)
18839 # Rational C++ 2.4.1
18840 # FIXME: insert proper C++ library support
18841 ld_shlibs_CXX=no
18842 ;;
18843 cxx*)
18844 case $host in
18845 osf3*)
18846 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018847 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 +000018848 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18849 ;;
18850 *)
18851 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018852 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 +000018853 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18854 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018855 $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 +000018856 $RM $lib.exp'
18857 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18858 ;;
18859 esac
18860
18861 hardcode_libdir_separator_CXX=:
18862
18863 # Commands to make compiler produce verbose output that lists
18864 # what "hidden" libraries, object files and flags are used when
18865 # linking a shared library.
18866 #
18867 # There doesn't appear to be a way to prevent this compiler from
18868 # explicitly linking system object files so we need to strip them
18869 # from the output so that they don't get included in the library
18870 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018871 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 +000018872 ;;
18873 *)
18874 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18875 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18876 case $host in
18877 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018878 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 +000018879 ;;
18880 *)
cristyda16f162011-02-19 23:52:17 +000018881 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 +000018882 ;;
18883 esac
18884
18885 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18886 hardcode_libdir_separator_CXX=:
18887
18888 # Commands to make compiler produce verbose output that lists
18889 # what "hidden" libraries, object files and flags are used when
18890 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018891 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018892
18893 else
18894 # FIXME: insert proper C++ library support
18895 ld_shlibs_CXX=no
18896 fi
18897 ;;
18898 esac
18899 ;;
18900
18901 psos*)
18902 # FIXME: insert proper C++ library support
18903 ld_shlibs_CXX=no
18904 ;;
18905
18906 sunos4*)
18907 case $cc_basename in
18908 CC*)
18909 # Sun C++ 4.x
18910 # FIXME: insert proper C++ library support
18911 ld_shlibs_CXX=no
18912 ;;
18913 lcc*)
18914 # Lucid
18915 # FIXME: insert proper C++ library support
18916 ld_shlibs_CXX=no
18917 ;;
18918 *)
18919 # FIXME: insert proper C++ library support
18920 ld_shlibs_CXX=no
18921 ;;
18922 esac
18923 ;;
18924
18925 solaris*)
18926 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018927 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018928 # Sun C++ 4.2, 5.x and Centerline C++
18929 archive_cmds_need_lc_CXX=yes
18930 no_undefined_flag_CXX=' -zdefs'
18931 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18932 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18933 $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'
18934
18935 hardcode_libdir_flag_spec_CXX='-R$libdir'
18936 hardcode_shlibpath_var_CXX=no
18937 case $host_os in
18938 solaris2.[0-5] | solaris2.[0-5].*) ;;
18939 *)
18940 # The compiler driver will combine and reorder linker options,
18941 # but understands `-z linker_flag'.
18942 # Supported since Solaris 2.6 (maybe 2.5.1?)
18943 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18944 ;;
18945 esac
18946 link_all_deplibs_CXX=yes
18947
cristy0c60a692010-11-04 01:09:47 +000018948 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018949
18950 # Archives containing C++ object files must be created using
18951 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18952 # necessary to make sure instantiated templates are included
18953 # in the archive.
18954 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18955 ;;
18956 gcx*)
18957 # Green Hills C++ Compiler
18958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18959
18960 # The C++ compiler must be used to create the archive.
18961 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18962 ;;
18963 *)
18964 # GNU C++ compiler with Solaris linker
18965 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18966 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18967 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018968 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 +000018969 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 +000018970 $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 +000018971
18972 # Commands to make compiler produce verbose output that lists
18973 # what "hidden" libraries, object files and flags are used when
18974 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018975 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018976 else
18977 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18978 # platform.
18979 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18980 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18981 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18982
18983 # Commands to make compiler produce verbose output that lists
18984 # what "hidden" libraries, object files and flags are used when
18985 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018986 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018987 fi
18988
18989 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18990 case $host_os in
18991 solaris2.[0-5] | solaris2.[0-5].*) ;;
18992 *)
18993 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18994 ;;
18995 esac
18996 fi
18997 ;;
18998 esac
18999 ;;
19000
19001 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19002 no_undefined_flag_CXX='${wl}-z,text'
19003 archive_cmds_need_lc_CXX=no
19004 hardcode_shlibpath_var_CXX=no
19005 runpath_var='LD_RUN_PATH'
19006
19007 case $cc_basename in
19008 CC*)
19009 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19010 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19011 ;;
19012 *)
19013 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19014 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19015 ;;
19016 esac
19017 ;;
19018
19019 sysv5* | sco3.2v5* | sco5v6*)
19020 # Note: We can NOT use -z defs as we might desire, because we do not
19021 # link with -lc, and that would cause any symbols used from libc to
19022 # always be unresolved, which means just about no library would
19023 # ever link correctly. If we're not using GNU ld we use -z text
19024 # though, which does catch some bad symbols but isn't as heavy-handed
19025 # as -z defs.
19026 no_undefined_flag_CXX='${wl}-z,text'
19027 allow_undefined_flag_CXX='${wl}-z,nodefs'
19028 archive_cmds_need_lc_CXX=no
19029 hardcode_shlibpath_var_CXX=no
19030 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19031 hardcode_libdir_separator_CXX=':'
19032 link_all_deplibs_CXX=yes
19033 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19034 runpath_var='LD_RUN_PATH'
19035
19036 case $cc_basename in
19037 CC*)
19038 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19039 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 +000019040 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19041 '"$old_archive_cmds_CXX"
19042 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19043 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019044 ;;
19045 *)
19046 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19047 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19048 ;;
19049 esac
19050 ;;
19051
19052 tandem*)
19053 case $cc_basename in
19054 NCC*)
19055 # NonStop-UX NCC 3.20
19056 # FIXME: insert proper C++ library support
19057 ld_shlibs_CXX=no
19058 ;;
19059 *)
19060 # FIXME: insert proper C++ library support
19061 ld_shlibs_CXX=no
19062 ;;
19063 esac
19064 ;;
19065
19066 vxworks*)
19067 # FIXME: insert proper C++ library support
19068 ld_shlibs_CXX=no
19069 ;;
19070
19071 *)
19072 # FIXME: insert proper C++ library support
19073 ld_shlibs_CXX=no
19074 ;;
19075 esac
19076
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19078$as_echo "$ld_shlibs_CXX" >&6; }
19079 test "$ld_shlibs_CXX" = no && can_build_shared=no
19080
19081 GCC_CXX="$GXX"
19082 LD_CXX="$LD"
19083
19084 ## CAVEAT EMPTOR:
19085 ## There is no encapsulation within the following macros, do not change
19086 ## the running order or otherwise move them around unless you know exactly
19087 ## what you are doing...
19088 # Dependencies to place before and after the object being linked:
19089predep_objects_CXX=
19090postdep_objects_CXX=
19091predeps_CXX=
19092postdeps_CXX=
19093compiler_lib_search_path_CXX=
19094
19095cat > conftest.$ac_ext <<_LT_EOF
19096class Foo
19097{
19098public:
19099 Foo (void) { a = 0; }
19100private:
19101 int a;
19102};
19103_LT_EOF
19104
cristyda16f162011-02-19 23:52:17 +000019105
19106_lt_libdeps_save_CFLAGS=$CFLAGS
19107case "$CC $CFLAGS " in #(
19108*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19109*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019110*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019111esac
19112
cristy73bd4a52010-10-05 11:24:23 +000019113if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19114 (eval $ac_compile) 2>&5
19115 ac_status=$?
19116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19117 test $ac_status = 0; }; then
19118 # Parse the compiler output and extract the necessary
19119 # objects, libraries and library flags.
19120
19121 # Sentinel used to keep track of whether or not we are before
19122 # the conftest object file.
19123 pre_test_object_deps_done=no
19124
19125 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019126 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019127
19128 -L* | -R* | -l*)
19129 # Some compilers place space between "-{L,R}" and the path.
19130 # Remove the space.
19131 if test $p = "-L" ||
19132 test $p = "-R"; then
19133 prev=$p
19134 continue
cristy73bd4a52010-10-05 11:24:23 +000019135 fi
19136
cristyda16f162011-02-19 23:52:17 +000019137 # Expand the sysroot to ease extracting the directories later.
19138 if test -z "$prev"; then
19139 case $p in
19140 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19141 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19142 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19143 esac
19144 fi
19145 case $p in
19146 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19147 esac
cristy73bd4a52010-10-05 11:24:23 +000019148 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019149 case ${prev} in
19150 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019151 # Internal compiler library paths should come after those
19152 # provided the user. The postdeps already come after the
19153 # user supplied libs so there is no need to process them.
19154 if test -z "$compiler_lib_search_path_CXX"; then
19155 compiler_lib_search_path_CXX="${prev}${p}"
19156 else
19157 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19158 fi
19159 ;;
19160 # The "-l" case would never come before the object being
19161 # linked, so don't bother handling this case.
19162 esac
19163 else
19164 if test -z "$postdeps_CXX"; then
19165 postdeps_CXX="${prev}${p}"
19166 else
19167 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19168 fi
19169 fi
cristyda16f162011-02-19 23:52:17 +000019170 prev=
cristy73bd4a52010-10-05 11:24:23 +000019171 ;;
19172
cristyda16f162011-02-19 23:52:17 +000019173 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019174 *.$objext)
19175 # This assumes that the test object file only shows up
19176 # once in the compiler output.
19177 if test "$p" = "conftest.$objext"; then
19178 pre_test_object_deps_done=yes
19179 continue
19180 fi
19181
19182 if test "$pre_test_object_deps_done" = no; then
19183 if test -z "$predep_objects_CXX"; then
19184 predep_objects_CXX="$p"
19185 else
19186 predep_objects_CXX="$predep_objects_CXX $p"
19187 fi
19188 else
19189 if test -z "$postdep_objects_CXX"; then
19190 postdep_objects_CXX="$p"
19191 else
19192 postdep_objects_CXX="$postdep_objects_CXX $p"
19193 fi
19194 fi
19195 ;;
19196
19197 *) ;; # Ignore the rest.
19198
19199 esac
19200 done
19201
19202 # Clean up.
19203 rm -f a.out a.exe
19204else
19205 echo "libtool.m4: error: problem compiling CXX test program"
19206fi
19207
19208$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019209CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019210
19211# PORTME: override above test on systems where it is broken
19212case $host_os in
19213interix[3-9]*)
19214 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19215 # hack all around it, let's just trust "g++" to DTRT.
19216 predep_objects_CXX=
19217 postdep_objects_CXX=
19218 postdeps_CXX=
19219 ;;
19220
19221linux*)
19222 case `$CC -V 2>&1 | sed 5q` in
19223 *Sun\ C*)
19224 # Sun C++ 5.9
19225
19226 # The more standards-conforming stlport4 library is
19227 # incompatible with the Cstd library. Avoid specifying
19228 # it if it's in CXXFLAGS. Ignore libCrun as
19229 # -library=stlport4 depends on it.
19230 case " $CXX $CXXFLAGS " in
19231 *" -library=stlport4 "*)
19232 solaris_use_stlport4=yes
19233 ;;
19234 esac
19235
19236 if test "$solaris_use_stlport4" != yes; then
19237 postdeps_CXX='-library=Cstd -library=Crun'
19238 fi
19239 ;;
19240 esac
19241 ;;
19242
19243solaris*)
19244 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019245 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019246 # The more standards-conforming stlport4 library is
19247 # incompatible with the Cstd library. Avoid specifying
19248 # it if it's in CXXFLAGS. Ignore libCrun as
19249 # -library=stlport4 depends on it.
19250 case " $CXX $CXXFLAGS " in
19251 *" -library=stlport4 "*)
19252 solaris_use_stlport4=yes
19253 ;;
19254 esac
19255
19256 # Adding this requires a known-good setup of shared libraries for
19257 # Sun compiler versions before 5.6, else PIC objects from an old
19258 # archive will be linked into the output, leading to subtle bugs.
19259 if test "$solaris_use_stlport4" != yes; then
19260 postdeps_CXX='-library=Cstd -library=Crun'
19261 fi
19262 ;;
19263 esac
19264 ;;
19265esac
19266
19267
19268case " $postdeps_CXX " in
19269*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19270esac
19271 compiler_lib_search_dirs_CXX=
19272if test -n "${compiler_lib_search_path_CXX}"; then
19273 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19274fi
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306 lt_prog_compiler_wl_CXX=
19307lt_prog_compiler_pic_CXX=
19308lt_prog_compiler_static_CXX=
19309
cristy73bd4a52010-10-05 11:24:23 +000019310
19311 # C++ specific cases for pic, static, wl, etc.
19312 if test "$GXX" = yes; then
19313 lt_prog_compiler_wl_CXX='-Wl,'
19314 lt_prog_compiler_static_CXX='-static'
19315
19316 case $host_os in
19317 aix*)
19318 # All AIX code is PIC.
19319 if test "$host_cpu" = ia64; then
19320 # AIX 5 now supports IA64 processor
19321 lt_prog_compiler_static_CXX='-Bstatic'
19322 fi
19323 ;;
19324
19325 amigaos*)
19326 case $host_cpu in
19327 powerpc)
19328 # see comment about AmigaOS4 .so support
19329 lt_prog_compiler_pic_CXX='-fPIC'
19330 ;;
19331 m68k)
19332 # FIXME: we need at least 68020 code to build shared libraries, but
19333 # adding the `-m68020' flag to GCC prevents building anything better,
19334 # like `-m68040'.
19335 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19336 ;;
19337 esac
19338 ;;
19339
19340 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19341 # PIC is the default for these OSes.
19342 ;;
19343 mingw* | cygwin* | os2* | pw32* | cegcc*)
19344 # This hack is so that the source file can tell whether it is being
19345 # built for inclusion in a dll (and should export symbols for example).
19346 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19347 # (--disable-auto-import) libraries
19348 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19349 ;;
19350 darwin* | rhapsody*)
19351 # PIC is the default on this platform
19352 # Common symbols not allowed in MH_DYLIB files
19353 lt_prog_compiler_pic_CXX='-fno-common'
19354 ;;
19355 *djgpp*)
19356 # DJGPP does not support shared libraries at all
19357 lt_prog_compiler_pic_CXX=
19358 ;;
cristy0c60a692010-11-04 01:09:47 +000019359 haiku*)
19360 # PIC is the default for Haiku.
19361 # The "-static" flag exists, but is broken.
19362 lt_prog_compiler_static_CXX=
19363 ;;
cristy73bd4a52010-10-05 11:24:23 +000019364 interix[3-9]*)
19365 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19366 # Instead, we relocate shared libraries at runtime.
19367 ;;
19368 sysv4*MP*)
19369 if test -d /usr/nec; then
19370 lt_prog_compiler_pic_CXX=-Kconform_pic
19371 fi
19372 ;;
19373 hpux*)
19374 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19375 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19376 # sets the default TLS model and affects inlining.
19377 case $host_cpu in
19378 hppa*64*)
19379 ;;
19380 *)
19381 lt_prog_compiler_pic_CXX='-fPIC'
19382 ;;
19383 esac
19384 ;;
19385 *qnx* | *nto*)
19386 # QNX uses GNU C++, but need to define -shared option too, otherwise
19387 # it will coredump.
19388 lt_prog_compiler_pic_CXX='-fPIC -shared'
19389 ;;
19390 *)
19391 lt_prog_compiler_pic_CXX='-fPIC'
19392 ;;
19393 esac
19394 else
19395 case $host_os in
19396 aix[4-9]*)
19397 # All AIX code is PIC.
19398 if test "$host_cpu" = ia64; then
19399 # AIX 5 now supports IA64 processor
19400 lt_prog_compiler_static_CXX='-Bstatic'
19401 else
19402 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19403 fi
19404 ;;
19405 chorus*)
19406 case $cc_basename in
19407 cxch68*)
19408 # Green Hills C++ Compiler
19409 # _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"
19410 ;;
19411 esac
19412 ;;
cristyda16f162011-02-19 23:52:17 +000019413 mingw* | cygwin* | os2* | pw32* | cegcc*)
19414 # This hack is so that the source file can tell whether it is being
19415 # built for inclusion in a dll (and should export symbols for example).
19416 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19417 ;;
cristy73bd4a52010-10-05 11:24:23 +000019418 dgux*)
19419 case $cc_basename in
19420 ec++*)
19421 lt_prog_compiler_pic_CXX='-KPIC'
19422 ;;
19423 ghcx*)
19424 # Green Hills C++ Compiler
19425 lt_prog_compiler_pic_CXX='-pic'
19426 ;;
19427 *)
19428 ;;
19429 esac
19430 ;;
19431 freebsd* | dragonfly*)
19432 # FreeBSD uses GNU C++
19433 ;;
19434 hpux9* | hpux10* | hpux11*)
19435 case $cc_basename in
19436 CC*)
19437 lt_prog_compiler_wl_CXX='-Wl,'
19438 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19439 if test "$host_cpu" != ia64; then
19440 lt_prog_compiler_pic_CXX='+Z'
19441 fi
19442 ;;
19443 aCC*)
19444 lt_prog_compiler_wl_CXX='-Wl,'
19445 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19446 case $host_cpu in
19447 hppa*64*|ia64*)
19448 # +Z the default
19449 ;;
19450 *)
19451 lt_prog_compiler_pic_CXX='+Z'
19452 ;;
19453 esac
19454 ;;
19455 *)
19456 ;;
19457 esac
19458 ;;
19459 interix*)
19460 # This is c89, which is MS Visual C++ (no shared libs)
19461 # Anyone wants to do a port?
19462 ;;
19463 irix5* | irix6* | nonstopux*)
19464 case $cc_basename in
19465 CC*)
19466 lt_prog_compiler_wl_CXX='-Wl,'
19467 lt_prog_compiler_static_CXX='-non_shared'
19468 # CC pic flag -KPIC is the default.
19469 ;;
19470 *)
19471 ;;
19472 esac
19473 ;;
cristy0c60a692010-11-04 01:09:47 +000019474 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019475 case $cc_basename in
19476 KCC*)
19477 # KAI C++ Compiler
19478 lt_prog_compiler_wl_CXX='--backend -Wl,'
19479 lt_prog_compiler_pic_CXX='-fPIC'
19480 ;;
19481 ecpc* )
19482 # old Intel C++ for x86_64 which still supported -KPIC.
19483 lt_prog_compiler_wl_CXX='-Wl,'
19484 lt_prog_compiler_pic_CXX='-KPIC'
19485 lt_prog_compiler_static_CXX='-static'
19486 ;;
19487 icpc* )
19488 # Intel C++, used to be incompatible with GCC.
19489 # ICC 10 doesn't accept -KPIC any more.
19490 lt_prog_compiler_wl_CXX='-Wl,'
19491 lt_prog_compiler_pic_CXX='-fPIC'
19492 lt_prog_compiler_static_CXX='-static'
19493 ;;
19494 pgCC* | pgcpp*)
19495 # Portland Group C++ compiler
19496 lt_prog_compiler_wl_CXX='-Wl,'
19497 lt_prog_compiler_pic_CXX='-fpic'
19498 lt_prog_compiler_static_CXX='-Bstatic'
19499 ;;
19500 cxx*)
19501 # Compaq C++
19502 # Make sure the PIC flag is empty. It appears that all Alpha
19503 # Linux and Compaq Tru64 Unix objects are PIC.
19504 lt_prog_compiler_pic_CXX=
19505 lt_prog_compiler_static_CXX='-non_shared'
19506 ;;
cristy0c60a692010-11-04 01:09:47 +000019507 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19508 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019509 lt_prog_compiler_wl_CXX='-Wl,'
19510 lt_prog_compiler_pic_CXX='-qpic'
19511 lt_prog_compiler_static_CXX='-qstaticlink'
19512 ;;
19513 *)
19514 case `$CC -V 2>&1 | sed 5q` in
19515 *Sun\ C*)
19516 # Sun C++ 5.9
19517 lt_prog_compiler_pic_CXX='-KPIC'
19518 lt_prog_compiler_static_CXX='-Bstatic'
19519 lt_prog_compiler_wl_CXX='-Qoption ld '
19520 ;;
19521 esac
19522 ;;
19523 esac
19524 ;;
19525 lynxos*)
19526 ;;
19527 m88k*)
19528 ;;
19529 mvs*)
19530 case $cc_basename in
19531 cxx*)
19532 lt_prog_compiler_pic_CXX='-W c,exportall'
19533 ;;
19534 *)
19535 ;;
19536 esac
19537 ;;
19538 netbsd*)
19539 ;;
19540 *qnx* | *nto*)
19541 # QNX uses GNU C++, but need to define -shared option too, otherwise
19542 # it will coredump.
19543 lt_prog_compiler_pic_CXX='-fPIC -shared'
19544 ;;
19545 osf3* | osf4* | osf5*)
19546 case $cc_basename in
19547 KCC*)
19548 lt_prog_compiler_wl_CXX='--backend -Wl,'
19549 ;;
19550 RCC*)
19551 # Rational C++ 2.4.1
19552 lt_prog_compiler_pic_CXX='-pic'
19553 ;;
19554 cxx*)
19555 # Digital/Compaq C++
19556 lt_prog_compiler_wl_CXX='-Wl,'
19557 # Make sure the PIC flag is empty. It appears that all Alpha
19558 # Linux and Compaq Tru64 Unix objects are PIC.
19559 lt_prog_compiler_pic_CXX=
19560 lt_prog_compiler_static_CXX='-non_shared'
19561 ;;
19562 *)
19563 ;;
19564 esac
19565 ;;
19566 psos*)
19567 ;;
19568 solaris*)
19569 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019570 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019571 # Sun C++ 4.2, 5.x and Centerline C++
19572 lt_prog_compiler_pic_CXX='-KPIC'
19573 lt_prog_compiler_static_CXX='-Bstatic'
19574 lt_prog_compiler_wl_CXX='-Qoption ld '
19575 ;;
19576 gcx*)
19577 # Green Hills C++ Compiler
19578 lt_prog_compiler_pic_CXX='-PIC'
19579 ;;
19580 *)
19581 ;;
19582 esac
19583 ;;
19584 sunos4*)
19585 case $cc_basename in
19586 CC*)
19587 # Sun C++ 4.x
19588 lt_prog_compiler_pic_CXX='-pic'
19589 lt_prog_compiler_static_CXX='-Bstatic'
19590 ;;
19591 lcc*)
19592 # Lucid
19593 lt_prog_compiler_pic_CXX='-pic'
19594 ;;
19595 *)
19596 ;;
19597 esac
19598 ;;
19599 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19600 case $cc_basename in
19601 CC*)
19602 lt_prog_compiler_wl_CXX='-Wl,'
19603 lt_prog_compiler_pic_CXX='-KPIC'
19604 lt_prog_compiler_static_CXX='-Bstatic'
19605 ;;
19606 esac
19607 ;;
19608 tandem*)
19609 case $cc_basename in
19610 NCC*)
19611 # NonStop-UX NCC 3.20
19612 lt_prog_compiler_pic_CXX='-KPIC'
19613 ;;
19614 *)
19615 ;;
19616 esac
19617 ;;
19618 vxworks*)
19619 ;;
19620 *)
19621 lt_prog_compiler_can_build_shared_CXX=no
19622 ;;
19623 esac
19624 fi
19625
19626case $host_os in
19627 # For platforms which do not support PIC, -DPIC is meaningless:
19628 *djgpp*)
19629 lt_prog_compiler_pic_CXX=
19630 ;;
19631 *)
19632 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19633 ;;
19634esac
cristy73bd4a52010-10-05 11:24:23 +000019635
cristyda16f162011-02-19 23:52:17 +000019636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19637$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19638if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19639 $as_echo_n "(cached) " >&6
19640else
19641 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19642fi
19643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19644$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19645lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019646
19647#
19648# Check to make sure the PIC flag actually works.
19649#
19650if test -n "$lt_prog_compiler_pic_CXX"; then
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19652$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019653if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019654 $as_echo_n "(cached) " >&6
19655else
19656 lt_cv_prog_compiler_pic_works_CXX=no
19657 ac_outfile=conftest.$ac_objext
19658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19659 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19660 # Insert the option either (1) after the last *FLAGS variable, or
19661 # (2) before a word containing "conftest.", or (3) at the end.
19662 # Note that $ac_compile itself does not contain backslashes and begins
19663 # with a dollar sign (not a hyphen), so the echo should work correctly.
19664 # The option is referenced via a variable to avoid confusing sed.
19665 lt_compile=`echo "$ac_compile" | $SED \
19666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19668 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019669 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019670 (eval "$lt_compile" 2>conftest.err)
19671 ac_status=$?
19672 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019674 if (exit $ac_status) && test -s "$ac_outfile"; then
19675 # The compiler can only warn and ignore the option if not recognized
19676 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019677 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19679 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19680 lt_cv_prog_compiler_pic_works_CXX=yes
19681 fi
19682 fi
19683 $RM conftest*
19684
19685fi
19686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19687$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19688
19689if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19690 case $lt_prog_compiler_pic_CXX in
19691 "" | " "*) ;;
19692 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19693 esac
19694else
19695 lt_prog_compiler_pic_CXX=
19696 lt_prog_compiler_can_build_shared_CXX=no
19697fi
19698
19699fi
19700
19701
19702
cristyda16f162011-02-19 23:52:17 +000019703
19704
cristy73bd4a52010-10-05 11:24:23 +000019705#
19706# Check to make sure the static flag actually works.
19707#
19708wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19710$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019711if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019712 $as_echo_n "(cached) " >&6
19713else
19714 lt_cv_prog_compiler_static_works_CXX=no
19715 save_LDFLAGS="$LDFLAGS"
19716 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19717 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19719 # The linker can only warn and ignore the option if not recognized
19720 # So say no if there are warnings
19721 if test -s conftest.err; then
19722 # Append any errors to the config.log.
19723 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019724 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19726 if diff conftest.exp conftest.er2 >/dev/null; then
19727 lt_cv_prog_compiler_static_works_CXX=yes
19728 fi
19729 else
19730 lt_cv_prog_compiler_static_works_CXX=yes
19731 fi
19732 fi
19733 $RM -r conftest*
19734 LDFLAGS="$save_LDFLAGS"
19735
19736fi
19737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19738$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19739
19740if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19741 :
19742else
19743 lt_prog_compiler_static_CXX=
19744fi
19745
19746
19747
19748
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19750$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019751if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019752 $as_echo_n "(cached) " >&6
19753else
19754 lt_cv_prog_compiler_c_o_CXX=no
19755 $RM -r conftest 2>/dev/null
19756 mkdir conftest
19757 cd conftest
19758 mkdir out
19759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19760
19761 lt_compiler_flag="-o out/conftest2.$ac_objext"
19762 # Insert the option either (1) after the last *FLAGS variable, or
19763 # (2) before a word containing "conftest.", or (3) at the end.
19764 # Note that $ac_compile itself does not contain backslashes and begins
19765 # with a dollar sign (not a hyphen), so the echo should work correctly.
19766 lt_compile=`echo "$ac_compile" | $SED \
19767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19769 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019771 (eval "$lt_compile" 2>out/conftest.err)
19772 ac_status=$?
19773 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019775 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19776 then
19777 # The compiler can only warn and ignore the option if not recognized
19778 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019780 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19781 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19782 lt_cv_prog_compiler_c_o_CXX=yes
19783 fi
19784 fi
19785 chmod u+w . 2>&5
19786 $RM conftest*
19787 # SGI C++ compiler will create directory out/ii_files/ for
19788 # template instantiation
19789 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19790 $RM out/* && rmdir out
19791 cd ..
19792 $RM -r conftest
19793 $RM conftest*
19794
19795fi
19796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19797$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19798
19799
19800
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19802$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019803if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019804 $as_echo_n "(cached) " >&6
19805else
19806 lt_cv_prog_compiler_c_o_CXX=no
19807 $RM -r conftest 2>/dev/null
19808 mkdir conftest
19809 cd conftest
19810 mkdir out
19811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19812
19813 lt_compiler_flag="-o out/conftest2.$ac_objext"
19814 # Insert the option either (1) after the last *FLAGS variable, or
19815 # (2) before a word containing "conftest.", or (3) at the end.
19816 # Note that $ac_compile itself does not contain backslashes and begins
19817 # with a dollar sign (not a hyphen), so the echo should work correctly.
19818 lt_compile=`echo "$ac_compile" | $SED \
19819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19821 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019822 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019823 (eval "$lt_compile" 2>out/conftest.err)
19824 ac_status=$?
19825 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019827 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19828 then
19829 # The compiler can only warn and ignore the option if not recognized
19830 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019831 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019832 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19833 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19834 lt_cv_prog_compiler_c_o_CXX=yes
19835 fi
19836 fi
19837 chmod u+w . 2>&5
19838 $RM conftest*
19839 # SGI C++ compiler will create directory out/ii_files/ for
19840 # template instantiation
19841 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19842 $RM out/* && rmdir out
19843 cd ..
19844 $RM -r conftest
19845 $RM conftest*
19846
19847fi
19848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19849$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19850
19851
19852
19853
19854hard_links="nottested"
19855if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19856 # do not overwrite the value of need_locks provided by the user
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19858$as_echo_n "checking if we can lock with hard links... " >&6; }
19859 hard_links=yes
19860 $RM conftest*
19861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19862 touch conftest.a
19863 ln conftest.a conftest.b 2>&5 || hard_links=no
19864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19866$as_echo "$hard_links" >&6; }
19867 if test "$hard_links" = no; then
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19869$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19870 need_locks=warn
19871 fi
19872else
19873 need_locks=no
19874fi
19875
19876
19877
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19879$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19880
19881 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019882 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019883 case $host_os in
19884 aix[4-9]*)
19885 # If we're using GNU nm, then we don't want the "-C" option.
19886 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019887 # Also, AIX nm treats weak defined symbols like other global defined
19888 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019889 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019890 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 +000019891 else
19892 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'
19893 fi
19894 ;;
19895 pw32*)
19896 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019897 ;;
cristy73bd4a52010-10-05 11:24:23 +000019898 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019899 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019900 cl*)
19901 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19902 ;;
cristyda16f162011-02-19 23:52:17 +000019903 *)
19904 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'
19905 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19906 ;;
19907 esac
19908 ;;
cristy73bd4a52010-10-05 11:24:23 +000019909 *)
19910 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019911 ;;
cristy73bd4a52010-10-05 11:24:23 +000019912 esac
cristy73bd4a52010-10-05 11:24:23 +000019913
19914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19915$as_echo "$ld_shlibs_CXX" >&6; }
19916test "$ld_shlibs_CXX" = no && can_build_shared=no
19917
19918with_gnu_ld_CXX=$with_gnu_ld
19919
19920
19921
19922
19923
19924
19925#
19926# Do we need to explicitly link libc?
19927#
19928case "x$archive_cmds_need_lc_CXX" in
19929x|xyes)
19930 # Assume -lc should be added
19931 archive_cmds_need_lc_CXX=yes
19932
19933 if test "$enable_shared" = yes && test "$GCC" = yes; then
19934 case $archive_cmds_CXX in
19935 *'~'*)
19936 # FIXME: we may have to deal with multi-command sequences.
19937 ;;
19938 '$CC '*)
19939 # Test whether the compiler implicitly links with -lc since on some
19940 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19941 # to ld, don't add -lc before -lgcc.
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19943$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019944if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019945 $as_echo_n "(cached) " >&6
19946else
19947 $RM conftest*
19948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019949
cristy0c60a692010-11-04 01:09:47 +000019950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019951 (eval $ac_compile) 2>&5
19952 ac_status=$?
19953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19954 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019955 soname=conftest
19956 lib=conftest
19957 libobjs=conftest.$ac_objext
19958 deplibs=
19959 wl=$lt_prog_compiler_wl_CXX
19960 pic_flag=$lt_prog_compiler_pic_CXX
19961 compiler_flags=-v
19962 linker_flags=-v
19963 verstring=
19964 output_objdir=.
19965 libname=conftest
19966 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19967 allow_undefined_flag_CXX=
19968 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 +000019969 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19970 ac_status=$?
19971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19972 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019973 then
19974 lt_cv_archive_cmds_need_lc_CXX=no
19975 else
19976 lt_cv_archive_cmds_need_lc_CXX=yes
19977 fi
19978 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19979 else
19980 cat conftest.err 1>&5
19981 fi
19982 $RM conftest*
19983
19984fi
19985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19986$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19987 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019988 ;;
19989 esac
19990 fi
19991 ;;
19992esac
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
cristy73bd4a52010-10-05 11:24:23 +000020055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20056$as_echo_n "checking dynamic linker characteristics... " >&6; }
20057
20058library_names_spec=
20059libname_spec='lib$name'
20060soname_spec=
20061shrext_cmds=".so"
20062postinstall_cmds=
20063postuninstall_cmds=
20064finish_cmds=
20065finish_eval=
20066shlibpath_var=
20067shlibpath_overrides_runpath=unknown
20068version_type=none
20069dynamic_linker="$host_os ld.so"
20070sys_lib_dlsearch_path_spec="/lib /usr/lib"
20071need_lib_prefix=unknown
20072hardcode_into_libs=no
20073
20074# when you set need_version to no, make sure it does not cause -set_version
20075# flags to be left without arguments
20076need_version=unknown
20077
20078case $host_os in
20079aix3*)
cristy99bd5232011-12-07 14:38:20 +000020080 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20082 shlibpath_var=LIBPATH
20083
20084 # AIX 3 has no versioning support, so we append a major version to the name.
20085 soname_spec='${libname}${release}${shared_ext}$major'
20086 ;;
20087
20088aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020089 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020090 need_lib_prefix=no
20091 need_version=no
20092 hardcode_into_libs=yes
20093 if test "$host_cpu" = ia64; then
20094 # AIX 5 supports IA64
20095 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20096 shlibpath_var=LD_LIBRARY_PATH
20097 else
20098 # With GCC up to 2.95.x, collect2 would create an import file
20099 # for dependence libraries. The import file would start with
20100 # the line `#! .'. This would cause the generated library to
20101 # depend on `.', always an invalid library. This was fixed in
20102 # development snapshots of GCC prior to 3.0.
20103 case $host_os in
20104 aix4 | aix4.[01] | aix4.[01].*)
20105 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20106 echo ' yes '
20107 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20108 :
20109 else
20110 can_build_shared=no
20111 fi
20112 ;;
20113 esac
20114 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20115 # soname into executable. Probably we can add versioning support to
20116 # collect2, so additional links can be useful in future.
20117 if test "$aix_use_runtimelinking" = yes; then
20118 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20119 # instead of lib<name>.a to let people know that these are not
20120 # typical AIX shared libraries.
20121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20122 else
20123 # We preserve .a as extension for shared libraries through AIX4.2
20124 # and later when we are not doing run time linking.
20125 library_names_spec='${libname}${release}.a $libname.a'
20126 soname_spec='${libname}${release}${shared_ext}$major'
20127 fi
20128 shlibpath_var=LIBPATH
20129 fi
20130 ;;
20131
20132amigaos*)
20133 case $host_cpu in
20134 powerpc)
20135 # Since July 2007 AmigaOS4 officially supports .so libraries.
20136 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20138 ;;
20139 m68k)
20140 library_names_spec='$libname.ixlibrary $libname.a'
20141 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020142 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 +000020143 ;;
20144 esac
20145 ;;
20146
20147beos*)
20148 library_names_spec='${libname}${shared_ext}'
20149 dynamic_linker="$host_os ld.so"
20150 shlibpath_var=LIBRARY_PATH
20151 ;;
20152
20153bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020154 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020155 need_version=no
20156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20157 soname_spec='${libname}${release}${shared_ext}$major'
20158 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20159 shlibpath_var=LD_LIBRARY_PATH
20160 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20161 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20162 # the default ld.so.conf also contains /usr/contrib/lib and
20163 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20164 # libtool to hard-code these into programs
20165 ;;
20166
20167cygwin* | mingw* | pw32* | cegcc*)
20168 version_type=windows
20169 shrext_cmds=".dll"
20170 need_version=no
20171 need_lib_prefix=no
20172
cristyda16f162011-02-19 23:52:17 +000020173 case $GCC,$cc_basename in
20174 yes,*)
20175 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020176 library_names_spec='$libname.dll.a'
20177 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20178 postinstall_cmds='base_file=`basename \${file}`~
20179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20180 dldir=$destdir/`dirname \$dlpath`~
20181 test -d \$dldir || mkdir -p \$dldir~
20182 $install_prog $dir/$dlname \$dldir/$dlname~
20183 chmod a+x \$dldir/$dlname~
20184 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20185 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20186 fi'
20187 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20188 dlpath=$dir/\$dldll~
20189 $RM \$dlpath'
20190 shlibpath_overrides_runpath=yes
20191
20192 case $host_os in
20193 cygwin*)
20194 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20195 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020196
cristy73bd4a52010-10-05 11:24:23 +000020197 ;;
20198 mingw* | cegcc*)
20199 # MinGW DLLs use traditional 'lib' prefix
20200 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020201 ;;
20202 pw32*)
20203 # pw32 DLLs use 'pw' prefix rather than 'lib'
20204 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20205 ;;
20206 esac
cristyda16f162011-02-19 23:52:17 +000020207 dynamic_linker='Win32 ld.exe'
20208 ;;
20209
20210 *,cl*)
20211 # Native MSVC
20212 libname_spec='$name'
20213 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20214 library_names_spec='${libname}.dll.lib'
20215
20216 case $build_os in
20217 mingw*)
20218 sys_lib_search_path_spec=
20219 lt_save_ifs=$IFS
20220 IFS=';'
20221 for lt_path in $LIB
20222 do
20223 IFS=$lt_save_ifs
20224 # Let DOS variable expansion print the short 8.3 style file name.
20225 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20226 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20227 done
20228 IFS=$lt_save_ifs
20229 # Convert to MSYS style.
20230 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20231 ;;
20232 cygwin*)
20233 # Convert to unix form, then to dos form, then back to unix form
20234 # but this time dos style (no spaces!) so that the unix form looks
20235 # like /cygdrive/c/PROGRA~1:/cygdr...
20236 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20237 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20238 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20239 ;;
20240 *)
20241 sys_lib_search_path_spec="$LIB"
20242 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20243 # It is most probably a Windows format PATH.
20244 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20245 else
20246 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20247 fi
20248 # FIXME: find the short name or the path components, as spaces are
20249 # common. (e.g. "Program Files" -> "PROGRA~1")
20250 ;;
20251 esac
20252
20253 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20254 postinstall_cmds='base_file=`basename \${file}`~
20255 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20256 dldir=$destdir/`dirname \$dlpath`~
20257 test -d \$dldir || mkdir -p \$dldir~
20258 $install_prog $dir/$dlname \$dldir/$dlname'
20259 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20260 dlpath=$dir/\$dldll~
20261 $RM \$dlpath'
20262 shlibpath_overrides_runpath=yes
20263 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020264 ;;
20265
20266 *)
cristyda16f162011-02-19 23:52:17 +000020267 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020268 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020269 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020270 ;;
20271 esac
cristy73bd4a52010-10-05 11:24:23 +000020272 # FIXME: first we should search . and the directory the executable is in
20273 shlibpath_var=PATH
20274 ;;
20275
20276darwin* | rhapsody*)
20277 dynamic_linker="$host_os dyld"
20278 version_type=darwin
20279 need_lib_prefix=no
20280 need_version=no
20281 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20282 soname_spec='${libname}${release}${major}$shared_ext'
20283 shlibpath_overrides_runpath=yes
20284 shlibpath_var=DYLD_LIBRARY_PATH
20285 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20286
20287 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20288 ;;
20289
20290dgux*)
cristy99bd5232011-12-07 14:38:20 +000020291 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020292 need_lib_prefix=no
20293 need_version=no
20294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20295 soname_spec='${libname}${release}${shared_ext}$major'
20296 shlibpath_var=LD_LIBRARY_PATH
20297 ;;
20298
cristy73bd4a52010-10-05 11:24:23 +000020299freebsd* | dragonfly*)
20300 # DragonFly does not have aout. When/if they implement a new
20301 # versioning mechanism, adjust this.
20302 if test -x /usr/bin/objformat; then
20303 objformat=`/usr/bin/objformat`
20304 else
20305 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020306 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020307 *) objformat=elf ;;
20308 esac
20309 fi
20310 version_type=freebsd-$objformat
20311 case $version_type in
20312 freebsd-elf*)
20313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20314 need_version=no
20315 need_lib_prefix=no
20316 ;;
20317 freebsd-*)
20318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20319 need_version=yes
20320 ;;
20321 esac
20322 shlibpath_var=LD_LIBRARY_PATH
20323 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020324 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020325 shlibpath_overrides_runpath=yes
20326 ;;
20327 freebsd3.[01]* | freebsdelf3.[01]*)
20328 shlibpath_overrides_runpath=yes
20329 hardcode_into_libs=yes
20330 ;;
20331 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20332 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20333 shlibpath_overrides_runpath=no
20334 hardcode_into_libs=yes
20335 ;;
20336 *) # from 4.6 on, and DragonFly
20337 shlibpath_overrides_runpath=yes
20338 hardcode_into_libs=yes
20339 ;;
20340 esac
20341 ;;
20342
20343gnu*)
cristy99bd5232011-12-07 14:38:20 +000020344 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020345 need_lib_prefix=no
20346 need_version=no
20347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20348 soname_spec='${libname}${release}${shared_ext}$major'
20349 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020350 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020351 hardcode_into_libs=yes
20352 ;;
20353
cristy0c60a692010-11-04 01:09:47 +000020354haiku*)
cristy99bd5232011-12-07 14:38:20 +000020355 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020356 need_lib_prefix=no
20357 need_version=no
20358 dynamic_linker="$host_os runtime_loader"
20359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20360 soname_spec='${libname}${release}${shared_ext}$major'
20361 shlibpath_var=LIBRARY_PATH
20362 shlibpath_overrides_runpath=yes
20363 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20364 hardcode_into_libs=yes
20365 ;;
20366
cristy73bd4a52010-10-05 11:24:23 +000020367hpux9* | hpux10* | hpux11*)
20368 # Give a soname corresponding to the major version so that dld.sl refuses to
20369 # link against other versions.
20370 version_type=sunos
20371 need_lib_prefix=no
20372 need_version=no
20373 case $host_cpu in
20374 ia64*)
20375 shrext_cmds='.so'
20376 hardcode_into_libs=yes
20377 dynamic_linker="$host_os dld.so"
20378 shlibpath_var=LD_LIBRARY_PATH
20379 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20381 soname_spec='${libname}${release}${shared_ext}$major'
20382 if test "X$HPUX_IA64_MODE" = X32; then
20383 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20384 else
20385 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20386 fi
20387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20388 ;;
20389 hppa*64*)
20390 shrext_cmds='.sl'
20391 hardcode_into_libs=yes
20392 dynamic_linker="$host_os dld.sl"
20393 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20394 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20396 soname_spec='${libname}${release}${shared_ext}$major'
20397 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20399 ;;
20400 *)
20401 shrext_cmds='.sl'
20402 dynamic_linker="$host_os dld.sl"
20403 shlibpath_var=SHLIB_PATH
20404 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20406 soname_spec='${libname}${release}${shared_ext}$major'
20407 ;;
20408 esac
cristy0c60a692010-11-04 01:09:47 +000020409 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020410 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020411 # or fails outright, so override atomically:
20412 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020413 ;;
20414
20415interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020416 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020417 need_lib_prefix=no
20418 need_version=no
20419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20420 soname_spec='${libname}${release}${shared_ext}$major'
20421 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20422 shlibpath_var=LD_LIBRARY_PATH
20423 shlibpath_overrides_runpath=no
20424 hardcode_into_libs=yes
20425 ;;
20426
20427irix5* | irix6* | nonstopux*)
20428 case $host_os in
20429 nonstopux*) version_type=nonstopux ;;
20430 *)
20431 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020432 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020433 else
20434 version_type=irix
20435 fi ;;
20436 esac
20437 need_lib_prefix=no
20438 need_version=no
20439 soname_spec='${libname}${release}${shared_ext}$major'
20440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20441 case $host_os in
20442 irix5* | nonstopux*)
20443 libsuff= shlibsuff=
20444 ;;
20445 *)
20446 case $LD in # libtool.m4 will add one of these switches to LD
20447 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20448 libsuff= shlibsuff= libmagic=32-bit;;
20449 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20450 libsuff=32 shlibsuff=N32 libmagic=N32;;
20451 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20452 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20453 *) libsuff= shlibsuff= libmagic=never-match;;
20454 esac
20455 ;;
20456 esac
20457 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20458 shlibpath_overrides_runpath=no
20459 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20460 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20461 hardcode_into_libs=yes
20462 ;;
20463
20464# No shared lib support for Linux oldld, aout, or coff.
20465linux*oldld* | linux*aout* | linux*coff*)
20466 dynamic_linker=no
20467 ;;
20468
cristy99bd5232011-12-07 14:38:20 +000020469# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020470linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020471 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020472 need_lib_prefix=no
20473 need_version=no
20474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20475 soname_spec='${libname}${release}${shared_ext}$major'
20476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20477 shlibpath_var=LD_LIBRARY_PATH
20478 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020479
cristy73bd4a52010-10-05 11:24:23 +000020480 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020481 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020482 $as_echo_n "(cached) " >&6
20483else
20484 lt_cv_shlibpath_overrides_runpath=no
20485 save_LDFLAGS=$LDFLAGS
20486 save_libdir=$libdir
20487 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20488 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020490/* end confdefs.h. */
20491
20492int
20493main ()
20494{
20495
20496 ;
20497 return 0;
20498}
20499_ACEOF
20500if ac_fn_cxx_try_link "$LINENO"; then :
20501 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020502 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020503fi
20504fi
20505rm -f core conftest.err conftest.$ac_objext \
20506 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020507 LDFLAGS=$save_LDFLAGS
20508 libdir=$save_libdir
20509
20510fi
20511
20512 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020513
20514 # This implies no fast_install, which is unacceptable.
20515 # Some rework will be needed to allow for fast_install
20516 # before this can be enabled.
20517 hardcode_into_libs=yes
20518
20519 # Add ABI-specific directories to the system library path.
20520 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20521
20522 # Append ld.so.conf contents to the search path
20523 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020524 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 +000020525 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020526
cristy73bd4a52010-10-05 11:24:23 +000020527 fi
20528
20529 # We used to test for /lib/ld.so.1 and disable shared libraries on
20530 # powerpc, because MkLinux only supported shared libraries with the
20531 # GNU dynamic linker. Since this was broken with cross compilers,
20532 # most powerpc-linux boxes support dynamic linking these days and
20533 # people can always --disable-shared, the test was removed, and we
20534 # assume the GNU/Linux dynamic linker is in use.
20535 dynamic_linker='GNU/Linux ld.so'
20536 ;;
20537
20538netbsd*)
20539 version_type=sunos
20540 need_lib_prefix=no
20541 need_version=no
20542 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20545 dynamic_linker='NetBSD (a.out) ld.so'
20546 else
20547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20548 soname_spec='${libname}${release}${shared_ext}$major'
20549 dynamic_linker='NetBSD ld.elf_so'
20550 fi
20551 shlibpath_var=LD_LIBRARY_PATH
20552 shlibpath_overrides_runpath=yes
20553 hardcode_into_libs=yes
20554 ;;
20555
20556newsos6)
cristy99bd5232011-12-07 14:38:20 +000020557 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20559 shlibpath_var=LD_LIBRARY_PATH
20560 shlibpath_overrides_runpath=yes
20561 ;;
20562
20563*nto* | *qnx*)
20564 version_type=qnx
20565 need_lib_prefix=no
20566 need_version=no
20567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20568 soname_spec='${libname}${release}${shared_ext}$major'
20569 shlibpath_var=LD_LIBRARY_PATH
20570 shlibpath_overrides_runpath=no
20571 hardcode_into_libs=yes
20572 dynamic_linker='ldqnx.so'
20573 ;;
20574
20575openbsd*)
20576 version_type=sunos
20577 sys_lib_dlsearch_path_spec="/usr/lib"
20578 need_lib_prefix=no
20579 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20580 case $host_os in
20581 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20582 *) need_version=no ;;
20583 esac
20584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20586 shlibpath_var=LD_LIBRARY_PATH
20587 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20588 case $host_os in
20589 openbsd2.[89] | openbsd2.[89].*)
20590 shlibpath_overrides_runpath=no
20591 ;;
20592 *)
20593 shlibpath_overrides_runpath=yes
20594 ;;
20595 esac
20596 else
20597 shlibpath_overrides_runpath=yes
20598 fi
20599 ;;
20600
20601os2*)
20602 libname_spec='$name'
20603 shrext_cmds=".dll"
20604 need_lib_prefix=no
20605 library_names_spec='$libname${shared_ext} $libname.a'
20606 dynamic_linker='OS/2 ld.exe'
20607 shlibpath_var=LIBPATH
20608 ;;
20609
20610osf3* | osf4* | osf5*)
20611 version_type=osf
20612 need_lib_prefix=no
20613 need_version=no
20614 soname_spec='${libname}${release}${shared_ext}$major'
20615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616 shlibpath_var=LD_LIBRARY_PATH
20617 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20618 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20619 ;;
20620
20621rdos*)
20622 dynamic_linker=no
20623 ;;
20624
20625solaris*)
cristy99bd5232011-12-07 14:38:20 +000020626 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020627 need_lib_prefix=no
20628 need_version=no
20629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20630 soname_spec='${libname}${release}${shared_ext}$major'
20631 shlibpath_var=LD_LIBRARY_PATH
20632 shlibpath_overrides_runpath=yes
20633 hardcode_into_libs=yes
20634 # ldd complains unless libraries are executable
20635 postinstall_cmds='chmod +x $lib'
20636 ;;
20637
20638sunos4*)
20639 version_type=sunos
20640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20641 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20642 shlibpath_var=LD_LIBRARY_PATH
20643 shlibpath_overrides_runpath=yes
20644 if test "$with_gnu_ld" = yes; then
20645 need_lib_prefix=no
20646 fi
20647 need_version=yes
20648 ;;
20649
20650sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020651 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20653 soname_spec='${libname}${release}${shared_ext}$major'
20654 shlibpath_var=LD_LIBRARY_PATH
20655 case $host_vendor in
20656 sni)
20657 shlibpath_overrides_runpath=no
20658 need_lib_prefix=no
20659 runpath_var=LD_RUN_PATH
20660 ;;
20661 siemens)
20662 need_lib_prefix=no
20663 ;;
20664 motorola)
20665 need_lib_prefix=no
20666 need_version=no
20667 shlibpath_overrides_runpath=no
20668 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20669 ;;
20670 esac
20671 ;;
20672
20673sysv4*MP*)
20674 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020675 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020676 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20677 soname_spec='$libname${shared_ext}.$major'
20678 shlibpath_var=LD_LIBRARY_PATH
20679 fi
20680 ;;
20681
20682sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20683 version_type=freebsd-elf
20684 need_lib_prefix=no
20685 need_version=no
20686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20687 soname_spec='${libname}${release}${shared_ext}$major'
20688 shlibpath_var=LD_LIBRARY_PATH
20689 shlibpath_overrides_runpath=yes
20690 hardcode_into_libs=yes
20691 if test "$with_gnu_ld" = yes; then
20692 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20693 else
20694 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20695 case $host_os in
20696 sco3.2v5*)
20697 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20698 ;;
20699 esac
20700 fi
20701 sys_lib_dlsearch_path_spec='/usr/lib'
20702 ;;
20703
20704tpf*)
20705 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020706 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020707 need_lib_prefix=no
20708 need_version=no
20709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20710 shlibpath_var=LD_LIBRARY_PATH
20711 shlibpath_overrides_runpath=no
20712 hardcode_into_libs=yes
20713 ;;
20714
20715uts4*)
cristy99bd5232011-12-07 14:38:20 +000020716 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20718 soname_spec='${libname}${release}${shared_ext}$major'
20719 shlibpath_var=LD_LIBRARY_PATH
20720 ;;
20721
20722*)
20723 dynamic_linker=no
20724 ;;
20725esac
20726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20727$as_echo "$dynamic_linker" >&6; }
20728test "$dynamic_linker" = no && can_build_shared=no
20729
20730variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20731if test "$GCC" = yes; then
20732 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20733fi
20734
20735if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20736 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20737fi
20738if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20739 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20740fi
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
cristy0c60a692010-11-04 01:09:47 +000020777
20778
cristy73bd4a52010-10-05 11:24:23 +000020779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20780$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20781hardcode_action_CXX=
20782if test -n "$hardcode_libdir_flag_spec_CXX" ||
20783 test -n "$runpath_var_CXX" ||
20784 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20785
20786 # We can hardcode non-existent directories.
20787 if test "$hardcode_direct_CXX" != no &&
20788 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20789 # have to relink, otherwise we might link with an installed library
20790 # when we should be linking with a yet-to-be-installed one
20791 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20792 test "$hardcode_minus_L_CXX" != no; then
20793 # Linking always hardcodes the temporary library directory.
20794 hardcode_action_CXX=relink
20795 else
20796 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20797 hardcode_action_CXX=immediate
20798 fi
20799else
20800 # We cannot hardcode anything, or else we can only hardcode existing
20801 # directories.
20802 hardcode_action_CXX=unsupported
20803fi
20804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20805$as_echo "$hardcode_action_CXX" >&6; }
20806
20807if test "$hardcode_action_CXX" = relink ||
20808 test "$inherit_rpath_CXX" = yes; then
20809 # Fast installation is not supported
20810 enable_fast_install=no
20811elif test "$shlibpath_overrides_runpath" = yes ||
20812 test "$enable_shared" = no; then
20813 # Fast installation is not necessary
20814 enable_fast_install=needless
20815fi
20816
20817
20818
20819
20820
20821
20822
20823 fi # test -n "$compiler"
20824
20825 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020826 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020827 LDCXX=$LD
20828 LD=$lt_save_LD
20829 GCC=$lt_save_GCC
20830 with_gnu_ld=$lt_save_with_gnu_ld
20831 lt_cv_path_LDCXX=$lt_cv_path_LD
20832 lt_cv_path_LD=$lt_save_path_LD
20833 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20834 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20835fi # test "$_lt_caught_CXX_error" != yes
20836
20837ac_ext=c
20838ac_cpp='$CPP $CPPFLAGS'
20839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20841ac_compiler_gnu=$ac_cv_c_compiler_gnu
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
cristy99bd5232011-12-07 14:38:20 +000020855
20856
cristy73bd4a52010-10-05 11:24:23 +000020857 ac_config_commands="$ac_config_commands libtool"
20858
20859
20860
20861
20862# Only expand once:
20863
20864
20865
cristy3ed852e2009-09-05 21:47:34 +000020866
20867
cristy3ed852e2009-09-05 21:47:34 +000020868# Check to see if building shared libraries
20869libtool_build_shared_libs='no'
20870if test "$enable_shared" = 'yes'; then
20871 libtool_build_shared_libs='yes'
20872fi
20873
20874# Check to see if building static libraries
20875libtool_build_static_libs='no'
20876if test "$enable_static" = 'yes'; then
20877 libtool_build_static_libs='yes'
20878fi
20879
cristy73bd4a52010-10-05 11:24:23 +000020880 if test "${libtool_build_shared_libs}" = 'yes'; then
20881 WITH_SHARED_LIBS_TRUE=
20882 WITH_SHARED_LIBS_FALSE='#'
20883else
20884 WITH_SHARED_LIBS_TRUE='#'
20885 WITH_SHARED_LIBS_FALSE=
20886fi
20887
cristy3ed852e2009-09-05 21:47:34 +000020888#
20889# Enable support for building loadable modules
20890#
cristyaf4cbf32012-10-16 23:47:41 +000020891build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020892
20893# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020894if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020895 withval=$with_modules; with_modules=$withval
20896else
cristy5a1cefd2010-01-06 20:42:35 +000020897 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020898fi
20899
20900
20901# Only allow building loadable modules if we are building shared libraries
20902if test "$with_modules" != 'no' ; then
20903 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020904 { $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 +000020905$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020906 build_modules='no'
20907 else
20908 build_modules='yes'
20909 fi
cristy3ed852e2009-09-05 21:47:34 +000020910fi
cristyc6722092012-10-14 00:19:31 +000020911if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020912
cristy8b350f62009-11-15 23:12:43 +000020913$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020914
cristyfa161182012-12-19 15:45:28 +000020915 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020916fi
cristyc6722092012-10-14 00:19:31 +000020917 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020918 WITH_MODULES_TRUE=
20919 WITH_MODULES_FALSE='#'
20920else
20921 WITH_MODULES_TRUE='#'
20922 WITH_MODULES_FALSE=
20923fi
20924
cristy3ed852e2009-09-05 21:47:34 +000020925
cristy3ed852e2009-09-05 21:47:34 +000020926# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020927# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020928# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020929if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020930 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20931else
20932 enable_delegate_build='no'
20933fi
20934
20935
20936# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020937if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020938 enableval=$enable_deprecated; enable_deprecated=$enableval
20939else
20940 enable_deprecated='no'
20941fi
20942
20943
20944if test "$enable_deprecated" = 'yes'; then
20945
cristy8b350f62009-11-15 23:12:43 +000020946$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020947
20948else
20949 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20950fi
20951
20952# Build a version of ImageMagick which operates uninstalled.
20953# Used to build distributions located via MAGICK_HOME / executable path
20954# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020955if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020956 enableval=$enable_installed; enable_installed=$enableval
20957else
20958 enable_installed='yes'
20959fi
20960
20961
20962if test "$enable_installed" = 'yes'; then
20963
cristy8b350f62009-11-15 23:12:43 +000020964$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020965
20966else
20967 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20968fi
20969
20970# Permit enciphering and deciphering image pixels.
20971# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020972if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020973 enableval=$enable_cipher; enable_cipher=$enableval
20974else
20975 enable_cipher='yes'
20976fi
20977
20978
20979if test "$enable_cipher" = 'yes'; then
20980
cristy8b350f62009-11-15 23:12:43 +000020981$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020982
20983fi
20984
cristy6e3607c2011-09-13 13:59:17 +000020985# Build a zero-configuration version of ImageMagick.
20986# Check whether --enable-zero-configuration was given.
20987if test "${enable_zero_configuration+set}" = set; then :
20988 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020989else
cristy6e3607c2011-09-13 13:59:17 +000020990 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020991fi
20992
20993
cristy6e3607c2011-09-13 13:59:17 +000020994if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020995
cristy6e3607c2011-09-13 13:59:17 +000020996$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020997
cristy81af5702011-09-13 14:20:58 +000020998 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020999fi
21000
21001# Build a high dynamic range version of ImageMagick.
21002# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021003if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021004 enableval=$enable_hdri; enable_hdri=$enableval
21005else
cristy191c0b72012-08-12 16:29:52 +000021006 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021007fi
21008
21009
21010MAGICK_HDRI=""
21011if test "$enable_hdri" = 'yes'; then
21012 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021013 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021014 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021015else
21016 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021017fi
21018
cristye52f12f2012-12-31 15:32:36 +000021019cat >>confdefs.h <<_ACEOF
21020#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21021_ACEOF
21022
21023MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21024CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021025CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021026
cristy3ed852e2009-09-05 21:47:34 +000021027# Build a version of ImageMagick with assert statements.
21028# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021029if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021030 enableval=$enable_assert; enable_assert=$enableval
21031else
21032 enable_assert='yes'
21033fi
21034
21035
21036if test "$enable_assert" = 'no'; then
21037
cristy8b350f62009-11-15 23:12:43 +000021038$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021039
21040fi
21041
cristya448bd22011-10-14 12:38:13 +000021042# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021043
21044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21045$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21046 # Check whether --enable-maintainer-mode was given.
21047if test "${enable_maintainer_mode+set}" = set; then :
21048 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21049else
21050 USE_MAINTAINER_MODE=no
21051fi
21052
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21054$as_echo "$USE_MAINTAINER_MODE" >&6; }
21055 if test $USE_MAINTAINER_MODE = yes; then
21056 MAINTAINER_MODE_TRUE=
21057 MAINTAINER_MODE_FALSE='#'
21058else
21059 MAINTAINER_MODE_TRUE='#'
21060 MAINTAINER_MODE_FALSE=
21061fi
21062
21063 MAINT=$MAINTAINER_MODE_TRUE
21064
21065
cristy3ed852e2009-09-05 21:47:34 +000021066
cristy944e51f2013-04-16 18:45:02 +000021067# Enable hugepages support
21068# Check whether --enable-hugepages was given.
21069if test "${enable_hugepages+set}" = set; then :
21070 enableval=$enable_hugepages; enable_hugepages=$enableval
21071else
21072 enable_hugepages='no'
21073fi
21074
21075
cristy3ed852e2009-09-05 21:47:34 +000021076# Enable ccmalloc memory debugging support
21077# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021078if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021079 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21080else
21081 enable_ccmalloc='no'
21082fi
21083
21084
21085# Enable Electric Fence memory debugging support
21086# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021087if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021088 enableval=$enable_efence; enable_efence=$enableval
21089else
21090 enable_efence='no'
21091fi
21092
21093
21094# Enable prof-based profiling support
21095# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021096if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021097 enableval=$enable_prof; enable_prof=$enableval
21098else
21099 enable_prof='no'
21100fi
21101
21102
21103# Enable gprof-based profiling support
21104# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021105if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021106 enableval=$enable_gprof; enable_gprof=$enableval
21107else
21108 enable_gprof='no'
21109fi
21110
21111
21112# Enable gcov-based profiling support
21113# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021114if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021115 enableval=$enable_gcov; enable_gcov=$enableval
21116else
21117 enable_gcov='no'
21118fi
21119
21120
21121enable_profiling='no'
21122if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21123 enable_profiling='yes'
21124 if test "$libtool_build_shared_libs" = 'yes'; then
21125 echo "Warning: Can not profile code using shared libraries"
21126 fi
21127fi
21128
21129# Magick API method prefix
21130
21131# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021132if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021133 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021134else
cristyfc3d0222012-02-07 15:05:57 +000021135 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021136fi
21137
21138
cristyfc3d0222012-02-07 15:05:57 +000021139if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021140
21141cat >>confdefs.h <<_ACEOF
21142#define NAMESPACE_PREFIX $with_method_prefix
21143_ACEOF
21144
cristyfc3d0222012-02-07 15:05:57 +000021145 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021146fi
21147
cristy71d8c202012-03-20 17:05:01 +000021148# Enable legacy support (default no)
21149# Check whether --enable-legacy-support was given.
21150if test "${enable_legacy_support+set}" = set; then :
21151 enableval=$enable_legacy_support; with_legacy_support=$enableval
21152else
21153 with_legacy_support='no'
21154fi
21155
21156 if test "$with_legacy_support" != 'no'; then
21157 LEGACY_SUPPORT_TRUE=
21158 LEGACY_SUPPORT_FALSE='#'
21159else
21160 LEGACY_SUPPORT_TRUE='#'
21161 LEGACY_SUPPORT_FALSE=
21162fi
21163
21164
cristy3ed852e2009-09-05 21:47:34 +000021165# Number of bits in a Quantum
21166
21167# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021168if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021169 withval=$with_quantum_depth; with_quantum_depth=$withval
21170else
21171 with_quantum_depth=16
21172fi
21173
21174
21175if test "$with_quantum_depth" != '8'; then
21176 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21177fi
21178
21179case "${with_quantum_depth}" in
21180 8 ) ;;
21181 16 ) ;;
21182 32 ) ;;
21183 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021184 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021185esac
21186QUANTUM_DEPTH="$with_quantum_depth"
21187
21188cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021189#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021190_ACEOF
21191
cristya371edf2013-02-06 13:42:17 +000021192MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021193CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021194CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021195
cristy01ff9f32012-12-01 18:15:29 +000021196# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021197MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021198if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021199 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021200fi
cristy01ff9f32012-12-01 18:15:29 +000021201
21202
cristy3ed852e2009-09-05 21:47:34 +000021203# Set pixel cache threshold
21204
21205# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021206if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021207 withval=$with_cache; with_cache=$withval
21208else
21209 with_cache=''
21210fi
21211
21212
21213if test "$with_cache" != ''; then
21214
21215cat >>confdefs.h <<_ACEOF
21216#define PixelCacheThreshold $with_cache
21217_ACEOF
21218
21219 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21220fi
21221
21222# Disable/Enable support for full delegate paths
21223
21224# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021225if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021226 withval=$with_frozenpaths; with_frozenpaths=$withval
21227else
21228 with_frozenpaths='no'
21229fi
21230
21231
21232# Enable build/install of Magick++
21233
21234# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021235if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021236 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21237else
21238 with_magick_plus_plus='yes'
21239fi
21240
21241
cristy3a75f062012-09-08 23:29:40 +000021242# Encode the this name into the shared library.
21243
21244# Check whether --with-package-release-name was given.
21245if test "${with_package_release_name+set}" = set; then :
21246 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21247fi
21248
21249
21250
cristy3ed852e2009-09-05 21:47:34 +000021251# Disable build/install of PerlMagick.
21252
21253# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021254if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021255 withval=$with_perl; with_perl=$withval
21256else
cristyb5f4e2f2010-04-25 00:49:11 +000021257 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021258fi
21259
21260
21261# Options to pass when configuring PerlMagick
21262
21263# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021264if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021265 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021266fi
21267
21268
cristy3ed852e2009-09-05 21:47:34 +000021269
21270# Enable umem, object-caching memory allocation library.
21271
21272# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021273if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021274 withval=$with_umem; with_umem=$withval
21275else
21276 with_umem='no'
21277fi
21278
21279if test "$with_umem" != 'yes' ; then
21280 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21281fi
21282
21283#
21284# Specify path to shared libstdc++ if not in normal location
21285#
21286
21287# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021288if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021289 withval=$with_libstdc; with_libstdc=$withval
21290else
21291 with_libstdc=''
21292fi
21293
21294
21295if test "$with_libstdc" != ''; then
21296 if test -d "$with_libstdc"; then
21297 LIBSTDCLDFLAGS="-L$with_libstdc"
21298 fi
21299fi
21300
21301
21302# Does gcc required -traditional?
21303if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021305$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021306if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021307 $as_echo_n "(cached) " >&6
21308else
21309 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021311/* end confdefs.h. */
21312#include <sgtty.h>
21313Autoconf TIOCGETP
21314_ACEOF
21315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021316 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021317 ac_cv_prog_gcc_traditional=yes
21318else
21319 ac_cv_prog_gcc_traditional=no
21320fi
21321rm -f conftest*
21322
21323
21324 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021326/* end confdefs.h. */
21327#include <termio.h>
21328Autoconf TCGETA
21329_ACEOF
21330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021331 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021332 ac_cv_prog_gcc_traditional=yes
21333fi
21334rm -f conftest*
21335
21336 fi
21337fi
cristy8b350f62009-11-15 23:12:43 +000021338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021339$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21340 if test $ac_cv_prog_gcc_traditional = yes; then
21341 CC="$CC -traditional"
21342 fi
21343fi
21344
21345
21346########
21347#
21348# Set defines required to build DLLs and modules using MinGW
21349#
21350########
21351# These options are set for multi-thread DLL module build
21352# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21353# module: _DLL
21354# executable/Magick++: _DLL _MAGICKMOD_
21355MODULE_EXTRA_CPPFLAGS=''
21356LIBRARY_EXTRA_CPPFLAGS=''
21357if test "${native_win32_build}" = 'yes'; then
21358 if test "${libtool_build_shared_libs}" = 'yes'; then
21359 CPPFLAGS="$CPPFLAGS -D_DLL"
21360 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21361 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21362 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021363 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021364 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21365 else
21366 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21367 fi
21368 else
21369 CPPFLAGS="$CPPFLAGS -D_LIB"
21370 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21371 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21372 fi
21373 if test "$with_threads" = 'yes'; then
21374 CPPFLAGS="$CPPFLAGS -D_MT"
21375 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21376 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21377 fi
21378fi
21379
21380
21381
21382# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021384$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021385if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021386 $as_echo_n "(cached) " >&6
21387else
cristy8b350f62009-11-15 23:12:43 +000021388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021389/* end confdefs.h. */
21390#include <stdlib.h>
21391#include <stdarg.h>
21392#include <string.h>
21393#include <float.h>
21394
21395int
21396main ()
21397{
21398
21399 ;
21400 return 0;
21401}
21402_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021403if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021404 ac_cv_header_stdc=yes
21405else
cristy8b350f62009-11-15 23:12:43 +000021406 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021407fi
cristy3ed852e2009-09-05 21:47:34 +000021408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21409
21410if test $ac_cv_header_stdc = yes; then
21411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
21415
21416_ACEOF
21417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021418 $EGREP "memchr" >/dev/null 2>&1; then :
21419
cristy3ed852e2009-09-05 21:47:34 +000021420else
21421 ac_cv_header_stdc=no
21422fi
21423rm -f conftest*
21424
21425fi
21426
21427if test $ac_cv_header_stdc = yes; then
21428 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021430/* end confdefs.h. */
21431#include <stdlib.h>
21432
21433_ACEOF
21434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021435 $EGREP "free" >/dev/null 2>&1; then :
21436
cristy3ed852e2009-09-05 21:47:34 +000021437else
21438 ac_cv_header_stdc=no
21439fi
21440rm -f conftest*
21441
21442fi
21443
21444if test $ac_cv_header_stdc = yes; then
21445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021446 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021447 :
21448else
cristy8b350f62009-11-15 23:12:43 +000021449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021450/* end confdefs.h. */
21451#include <ctype.h>
21452#include <stdlib.h>
21453#if ((' ' & 0x0FF) == 0x020)
21454# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21455# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21456#else
21457# define ISLOWER(c) \
21458 (('a' <= (c) && (c) <= 'i') \
21459 || ('j' <= (c) && (c) <= 'r') \
21460 || ('s' <= (c) && (c) <= 'z'))
21461# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21462#endif
21463
21464#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21465int
21466main ()
21467{
21468 int i;
21469 for (i = 0; i < 256; i++)
21470 if (XOR (islower (i), ISLOWER (i))
21471 || toupper (i) != TOUPPER (i))
21472 return 2;
21473 return 0;
21474}
21475_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021476if ac_fn_c_try_run "$LINENO"; then :
21477
cristy3ed852e2009-09-05 21:47:34 +000021478else
cristy8b350f62009-11-15 23:12:43 +000021479 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021480fi
cristy8b350f62009-11-15 23:12:43 +000021481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21482 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021483fi
21484
cristy3ed852e2009-09-05 21:47:34 +000021485fi
21486fi
cristy8b350f62009-11-15 23:12:43 +000021487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021488$as_echo "$ac_cv_header_stdc" >&6; }
21489if test $ac_cv_header_stdc = yes; then
21490
cristy8b350f62009-11-15 23:12:43 +000021491$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021492
21493fi
21494
21495if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021496 { $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 +000021497 header files. Compilation cannot proceed. Please install the ANSI C
21498 headers and rerun this script." >&5
21499$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21500 header files. Compilation cannot proceed. Please install the ANSI C
21501 headers and rerun this script." >&2;};
21502fi
cristya0b81c32010-01-22 02:54:33 +000021503
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21505$as_echo_n "checking whether to enable assertions... " >&6; }
21506 # Check whether --enable-assert was given.
21507if test "${enable_assert+set}" = set; then :
21508 enableval=$enable_assert; ac_enable_assert=$enableval
21509 if test "x$enableval" = xno; then :
21510
21511$as_echo "#define NDEBUG 1" >>confdefs.h
21512
21513elif test "x$enableval" != xyes; then :
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21515$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21516 ac_enable_assert=yes
21517fi
21518else
21519 ac_enable_assert=yes
21520fi
21521
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21523$as_echo "$ac_enable_assert" >&6; }
21524
cristy3ed852e2009-09-05 21:47:34 +000021525ac_header_dirent=no
21526for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21527 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021529$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021530if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021531 $as_echo_n "(cached) " >&6
21532else
cristy8b350f62009-11-15 23:12:43 +000021533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021534/* end confdefs.h. */
21535#include <sys/types.h>
21536#include <$ac_hdr>
21537
21538int
21539main ()
21540{
21541if ((DIR *) 0)
21542return 0;
21543 ;
21544 return 0;
21545}
21546_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021547if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021548 eval "$as_ac_Header=yes"
21549else
cristy8b350f62009-11-15 23:12:43 +000021550 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021551fi
cristy3ed852e2009-09-05 21:47:34 +000021552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21553fi
cristy8b350f62009-11-15 23:12:43 +000021554eval ac_res=\$$as_ac_Header
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021556$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021557if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021558 cat >>confdefs.h <<_ACEOF
21559#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21560_ACEOF
21561
21562ac_header_dirent=$ac_hdr; break
21563fi
21564
21565done
21566# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21567if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021569$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021570if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021571 $as_echo_n "(cached) " >&6
21572else
21573 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021575/* end confdefs.h. */
21576
21577/* Override any GCC internal prototype to avoid an error.
21578 Use char because int might match the return type of a GCC
21579 builtin and then its argument prototype would still apply. */
21580#ifdef __cplusplus
21581extern "C"
21582#endif
21583char opendir ();
21584int
21585main ()
21586{
21587return opendir ();
21588 ;
21589 return 0;
21590}
21591_ACEOF
21592for ac_lib in '' dir; do
21593 if test -z "$ac_lib"; then
21594 ac_res="none required"
21595 else
21596 ac_res=-l$ac_lib
21597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21598 fi
cristy8b350f62009-11-15 23:12:43 +000021599 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021600 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021601fi
cristy8b350f62009-11-15 23:12:43 +000021602rm -f core conftest.err conftest.$ac_objext \
21603 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021604 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021605 break
21606fi
21607done
cristyda16f162011-02-19 23:52:17 +000021608if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021609
cristy3ed852e2009-09-05 21:47:34 +000021610else
21611 ac_cv_search_opendir=no
21612fi
21613rm conftest.$ac_ext
21614LIBS=$ac_func_search_save_LIBS
21615fi
cristy8b350f62009-11-15 23:12:43 +000021616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021617$as_echo "$ac_cv_search_opendir" >&6; }
21618ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021619if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21621
21622fi
21623
21624else
cristy8b350f62009-11-15 23:12:43 +000021625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021626$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021627if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021628 $as_echo_n "(cached) " >&6
21629else
21630 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021632/* end confdefs.h. */
21633
21634/* Override any GCC internal prototype to avoid an error.
21635 Use char because int might match the return type of a GCC
21636 builtin and then its argument prototype would still apply. */
21637#ifdef __cplusplus
21638extern "C"
21639#endif
21640char opendir ();
21641int
21642main ()
21643{
21644return opendir ();
21645 ;
21646 return 0;
21647}
21648_ACEOF
21649for ac_lib in '' x; do
21650 if test -z "$ac_lib"; then
21651 ac_res="none required"
21652 else
21653 ac_res=-l$ac_lib
21654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21655 fi
cristy8b350f62009-11-15 23:12:43 +000021656 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021657 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021658fi
cristy8b350f62009-11-15 23:12:43 +000021659rm -f core conftest.err conftest.$ac_objext \
21660 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021661 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021662 break
21663fi
21664done
cristyda16f162011-02-19 23:52:17 +000021665if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021666
cristy3ed852e2009-09-05 21:47:34 +000021667else
21668 ac_cv_search_opendir=no
21669fi
21670rm conftest.$ac_ext
21671LIBS=$ac_func_search_save_LIBS
21672fi
cristy8b350f62009-11-15 23:12:43 +000021673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021674$as_echo "$ac_cv_search_opendir" >&6; }
21675ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021676if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21678
21679fi
21680
21681fi
21682
21683
21684# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021685for 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 +000021686do :
21687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21688ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021689if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021690 cat >>confdefs.h <<_ACEOF
21691#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21692_ACEOF
21693
21694fi
21695
21696done
21697
21698
21699########
21700#
21701# Checks for typedefs, structures, and compiler characteristics.
21702#
21703########
21704
cristy8b350f62009-11-15 23:12:43 +000021705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021706$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021707if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021708 $as_echo_n "(cached) " >&6
21709else
cristy8b350f62009-11-15 23:12:43 +000021710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021711/* end confdefs.h. */
21712
cristy14fefe52012-05-21 00:59:18 +000021713 #include <stdbool.h>
21714 #ifndef bool
21715 "error: bool is not defined"
21716 #endif
21717 #ifndef false
21718 "error: false is not defined"
21719 #endif
21720 #if false
21721 "error: false is not 0"
21722 #endif
21723 #ifndef true
21724 "error: true is not defined"
21725 #endif
21726 #if true != 1
21727 "error: true is not 1"
21728 #endif
21729 #ifndef __bool_true_false_are_defined
21730 "error: __bool_true_false_are_defined is not defined"
21731 #endif
cristy3ed852e2009-09-05 21:47:34 +000021732
cristy14fefe52012-05-21 00:59:18 +000021733 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021734
cristy14fefe52012-05-21 00:59:18 +000021735 char a[true == 1 ? 1 : -1];
21736 char b[false == 0 ? 1 : -1];
21737 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21738 char d[(bool) 0.5 == true ? 1 : -1];
21739 /* See body of main program for 'e'. */
21740 char f[(_Bool) 0.0 == false ? 1 : -1];
21741 char g[true];
21742 char h[sizeof (_Bool)];
21743 char i[sizeof s.t];
21744 enum { j = false, k = true, l = false * true, m = true * 256 };
21745 /* The following fails for
21746 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21747 _Bool n[m];
21748 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21749 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21750 /* Catch a bug in an HP-UX C compiler. See
21751 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21752 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21753 */
21754 _Bool q = true;
21755 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021756
21757int
21758main ()
21759{
21760
cristy14fefe52012-05-21 00:59:18 +000021761 bool e = &s;
21762 *pq |= q;
21763 *pq |= ! q;
21764 /* Refer to every declared value, to avoid compiler optimizations. */
21765 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21766 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021767
21768 ;
21769 return 0;
21770}
21771_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021772if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021773 ac_cv_header_stdbool_h=yes
21774else
cristy8b350f62009-11-15 23:12:43 +000021775 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021776fi
cristy3ed852e2009-09-05 21:47:34 +000021777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21778fi
cristy8b350f62009-11-15 23:12:43 +000021779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021780$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021781 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021782if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021783
21784cat >>confdefs.h <<_ACEOF
21785#define HAVE__BOOL 1
21786_ACEOF
21787
21788
21789fi
21790
cristy14fefe52012-05-21 00:59:18 +000021791
cristy3ed852e2009-09-05 21:47:34 +000021792if test $ac_cv_header_stdbool_h = yes; then
21793
cristy8b350f62009-11-15 23:12:43 +000021794$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021795
21796fi
21797
cristy8b350f62009-11-15 23:12:43 +000021798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021799$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021800if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021801 $as_echo_n "(cached) " >&6
21802else
cristy8b350f62009-11-15 23:12:43 +000021803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021804/* end confdefs.h. */
21805
21806int
21807main ()
21808{
21809
21810volatile int x;
21811int * volatile y = (int *) 0;
21812return !x && !y;
21813 ;
21814 return 0;
21815}
21816_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021817if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021818 ac_cv_c_volatile=yes
21819else
cristy8b350f62009-11-15 23:12:43 +000021820 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021821fi
cristy3ed852e2009-09-05 21:47:34 +000021822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21823fi
cristy8b350f62009-11-15 23:12:43 +000021824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021825$as_echo "$ac_cv_c_volatile" >&6; }
21826if test $ac_cv_c_volatile = no; then
21827
cristy8b350f62009-11-15 23:12:43 +000021828$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021829
21830fi
21831
cristy8b350f62009-11-15 23:12:43 +000021832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021833$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021834if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021835 $as_echo_n "(cached) " >&6
21836else
cristy8b350f62009-11-15 23:12:43 +000021837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021838/* end confdefs.h. */
21839#define x(y) #y
21840
21841char *s = x(teststring);
21842_ACEOF
21843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021844 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021845 ac_cv_c_stringize=no
21846else
21847 ac_cv_c_stringize=yes
21848fi
21849rm -f conftest*
21850
21851fi
cristy8b350f62009-11-15 23:12:43 +000021852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021853$as_echo "$ac_cv_c_stringize" >&6; }
21854if test $ac_cv_c_stringize = yes; then
21855
cristy8b350f62009-11-15 23:12:43 +000021856$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021857
21858fi
21859
cristy8b350f62009-11-15 23:12:43 +000021860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021861$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021862if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021863 $as_echo_n "(cached) " >&6
21864else
cristy8b350f62009-11-15 23:12:43 +000021865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021866/* end confdefs.h. */
21867#include <sys/types.h>
21868#include <sys/stat.h>
21869
21870#if defined S_ISBLK && defined S_IFDIR
21871extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21872#endif
21873
21874#if defined S_ISBLK && defined S_IFCHR
21875extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21876#endif
21877
21878#if defined S_ISLNK && defined S_IFREG
21879extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21880#endif
21881
21882#if defined S_ISSOCK && defined S_IFREG
21883extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21884#endif
21885
21886_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021887if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021888 ac_cv_header_stat_broken=no
21889else
cristy8b350f62009-11-15 23:12:43 +000021890 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021891fi
cristy3ed852e2009-09-05 21:47:34 +000021892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21893fi
cristy8b350f62009-11-15 23:12:43 +000021894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021895$as_echo "$ac_cv_header_stat_broken" >&6; }
21896if test $ac_cv_header_stat_broken = yes; then
21897
cristy8b350f62009-11-15 23:12:43 +000021898$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021899
21900fi
21901
cristy8b350f62009-11-15 23:12:43 +000021902{ $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 +000021903$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021904if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021905 $as_echo_n "(cached) " >&6
21906else
cristy8b350f62009-11-15 23:12:43 +000021907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021908/* end confdefs.h. */
21909#include <sys/types.h>
21910#include <sys/time.h>
21911#include <time.h>
21912
21913int
21914main ()
21915{
21916if ((struct tm *) 0)
21917return 0;
21918 ;
21919 return 0;
21920}
21921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021922if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021923 ac_cv_header_time=yes
21924else
cristy8b350f62009-11-15 23:12:43 +000021925 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021926fi
cristy3ed852e2009-09-05 21:47:34 +000021927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21928fi
cristy8b350f62009-11-15 23:12:43 +000021929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021930$as_echo "$ac_cv_header_time" >&6; }
21931if test $ac_cv_header_time = yes; then
21932
cristy8b350f62009-11-15 23:12:43 +000021933$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021934
21935fi
21936
cristy8b350f62009-11-15 23:12:43 +000021937{ $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 +000021938$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021939if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021940 $as_echo_n "(cached) " >&6
21941else
cristy8b350f62009-11-15 23:12:43 +000021942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021943/* end confdefs.h. */
21944#include <sys/types.h>
21945#include <time.h>
21946
21947int
21948main ()
21949{
21950struct tm tm;
21951 int *p = &tm.tm_sec;
21952 return !p;
21953 ;
21954 return 0;
21955}
21956_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021957if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021958 ac_cv_struct_tm=time.h
21959else
cristy8b350f62009-11-15 23:12:43 +000021960 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021961fi
cristy3ed852e2009-09-05 21:47:34 +000021962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21963fi
cristy8b350f62009-11-15 23:12:43 +000021964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021965$as_echo "$ac_cv_struct_tm" >&6; }
21966if test $ac_cv_struct_tm = sys/time.h; then
21967
cristy8b350f62009-11-15 23:12:43 +000021968$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021969
21970fi
21971
cristy92703d82010-04-26 00:18:18 +000021972ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21973#include <$ac_cv_struct_tm>
21974
21975"
cristyda16f162011-02-19 23:52:17 +000021976if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021977
21978cat >>confdefs.h <<_ACEOF
21979#define HAVE_STRUCT_TM_TM_ZONE 1
21980_ACEOF
21981
21982
21983fi
21984
21985if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21986
21987$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21988
21989else
21990 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21991"
cristyda16f162011-02-19 23:52:17 +000021992if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021993 ac_have_decl=1
21994else
21995 ac_have_decl=0
21996fi
21997
21998cat >>confdefs.h <<_ACEOF
21999#define HAVE_DECL_TZNAME $ac_have_decl
22000_ACEOF
22001
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22003$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022004if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022005 $as_echo_n "(cached) " >&6
22006else
22007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22008/* end confdefs.h. */
22009#include <time.h>
22010#if !HAVE_DECL_TZNAME
22011extern char *tzname[];
22012#endif
22013
22014int
22015main ()
22016{
22017return tzname[0][0];
22018 ;
22019 return 0;
22020}
22021_ACEOF
22022if ac_fn_c_try_link "$LINENO"; then :
22023 ac_cv_var_tzname=yes
22024else
22025 ac_cv_var_tzname=no
22026fi
22027rm -f core conftest.err conftest.$ac_objext \
22028 conftest$ac_exeext conftest.$ac_ext
22029fi
22030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22031$as_echo "$ac_cv_var_tzname" >&6; }
22032 if test $ac_cv_var_tzname = yes; then
22033
22034$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22035
22036 fi
22037fi
22038
cristy8b350f62009-11-15 23:12:43 +000022039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022040$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022041if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022042 $as_echo_n "(cached) " >&6
22043else
22044 echo '#! /bin/cat
22045exit 69
22046' >conftest
22047chmod u+x conftest
22048(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22049if test $? -ne 69; then
22050 ac_cv_sys_interpreter=yes
22051else
22052 ac_cv_sys_interpreter=no
22053fi
22054rm -f conftest
22055fi
cristy8b350f62009-11-15 23:12:43 +000022056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022057$as_echo "$ac_cv_sys_interpreter" >&6; }
22058interpval=$ac_cv_sys_interpreter
22059
22060
cristye80f9cb2013-01-09 01:09:31 +000022061#
22062# Checks for language qualifiers and semantics.
22063#
22064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22065$as_echo_n "checking whether char is unsigned... " >&6; }
22066if ${ac_cv_c_char_unsigned+:} false; then :
22067 $as_echo_n "(cached) " >&6
22068else
22069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22070/* end confdefs.h. */
22071$ac_includes_default
22072int
22073main ()
22074{
22075static int test_array [1 - 2 * !(((char) -1) < 0)];
22076test_array [0] = 0;
22077return test_array [0];
22078
22079 ;
22080 return 0;
22081}
22082_ACEOF
22083if ac_fn_c_try_compile "$LINENO"; then :
22084 ac_cv_c_char_unsigned=no
22085else
22086 ac_cv_c_char_unsigned=yes
22087fi
22088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22089fi
22090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22091$as_echo "$ac_cv_c_char_unsigned" >&6; }
22092if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22093 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22094
22095fi
22096
22097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22098$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22099if ${ac_cv_c_const+:} false; then :
22100 $as_echo_n "(cached) " >&6
22101else
22102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22103/* end confdefs.h. */
22104
22105int
22106main ()
22107{
22108
22109#ifndef __cplusplus
22110 /* Ultrix mips cc rejects this sort of thing. */
22111 typedef int charset[2];
22112 const charset cs = { 0, 0 };
22113 /* SunOS 4.1.1 cc rejects this. */
22114 char const *const *pcpcc;
22115 char **ppc;
22116 /* NEC SVR4.0.2 mips cc rejects this. */
22117 struct point {int x, y;};
22118 static struct point const zero = {0,0};
22119 /* AIX XL C 1.02.0.0 rejects this.
22120 It does not let you subtract one const X* pointer from another in
22121 an arm of an if-expression whose if-part is not a constant
22122 expression */
22123 const char *g = "string";
22124 pcpcc = &g + (g ? g-g : 0);
22125 /* HPUX 7.0 cc rejects these. */
22126 ++pcpcc;
22127 ppc = (char**) pcpcc;
22128 pcpcc = (char const *const *) ppc;
22129 { /* SCO 3.2v4 cc rejects this sort of thing. */
22130 char tx;
22131 char *t = &tx;
22132 char const *s = 0 ? (char *) 0 : (char const *) 0;
22133
22134 *t++ = 0;
22135 if (s) return 0;
22136 }
22137 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22138 int x[] = {25, 17};
22139 const int *foo = &x[0];
22140 ++foo;
22141 }
22142 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22143 typedef const int *iptr;
22144 iptr p = 0;
22145 ++p;
22146 }
22147 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22148 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22149 struct s { int j; const int *ap[3]; } bx;
22150 struct s *b = &bx; b->j = 5;
22151 }
22152 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22153 const int foo = 10;
22154 if (!foo) return 0;
22155 }
22156 return !cs[0] && !zero.x;
22157#endif
22158
22159 ;
22160 return 0;
22161}
22162_ACEOF
22163if ac_fn_c_try_compile "$LINENO"; then :
22164 ac_cv_c_const=yes
22165else
22166 ac_cv_c_const=no
22167fi
22168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22169fi
22170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22171$as_echo "$ac_cv_c_const" >&6; }
22172if test $ac_cv_c_const = no; then
22173
22174$as_echo "#define const /**/" >>confdefs.h
22175
22176fi
22177
cristy8b350f62009-11-15 23:12:43 +000022178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022179$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022180if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022181 $as_echo_n "(cached) " >&6
22182else
22183 ac_cv_c_inline=no
22184for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022186/* end confdefs.h. */
22187#ifndef __cplusplus
22188typedef int foo_t;
22189static $ac_kw foo_t static_foo () {return 0; }
22190$ac_kw foo_t foo () {return 0; }
22191#endif
22192
22193_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022194if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022195 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022196fi
cristy3ed852e2009-09-05 21:47:34 +000022197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22198 test "$ac_cv_c_inline" != no && break
22199done
22200
22201fi
cristy8b350f62009-11-15 23:12:43 +000022202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022203$as_echo "$ac_cv_c_inline" >&6; }
22204
cristy3ed852e2009-09-05 21:47:34 +000022205case $ac_cv_c_inline in
22206 inline | yes) ;;
22207 *)
22208 case $ac_cv_c_inline in
22209 no) ac_val=;;
22210 *) ac_val=$ac_cv_c_inline;;
22211 esac
22212 cat >>confdefs.h <<_ACEOF
22213#ifndef __cplusplus
22214#define inline $ac_val
22215#endif
22216_ACEOF
22217 ;;
22218esac
22219
cristy8b350f62009-11-15 23:12:43 +000022220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022221$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022222if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022223 $as_echo_n "(cached) " >&6
22224else
22225 ac_cv_c_restrict=no
22226 # The order here caters to the fact that C++ does not require restrict.
22227 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022229/* end confdefs.h. */
22230typedef int * int_ptr;
22231 int foo (int_ptr $ac_kw ip) {
22232 return ip[0];
22233 }
22234int
22235main ()
22236{
22237int s[1];
22238 int * $ac_kw t = s;
22239 t[0] = 0;
22240 return foo(t)
22241 ;
22242 return 0;
22243}
22244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022245if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022246 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022247fi
cristy3ed852e2009-09-05 21:47:34 +000022248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249 test "$ac_cv_c_restrict" != no && break
22250 done
22251
22252fi
cristy8b350f62009-11-15 23:12:43 +000022253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022254$as_echo "$ac_cv_c_restrict" >&6; }
22255
cristy3ed852e2009-09-05 21:47:34 +000022256 case $ac_cv_c_restrict in
22257 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022258 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022259 ;;
22260 *) cat >>confdefs.h <<_ACEOF
22261#define restrict $ac_cv_c_restrict
22262_ACEOF
22263 ;;
22264 esac
22265
cristye80f9cb2013-01-09 01:09:31 +000022266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22267$as_echo_n "checking for working volatile... " >&6; }
22268if ${ac_cv_c_volatile+:} false; then :
22269 $as_echo_n "(cached) " >&6
22270else
22271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22272/* end confdefs.h. */
22273
22274int
22275main ()
22276{
22277
22278volatile int x;
22279int * volatile y = (int *) 0;
22280return !x && !y;
22281 ;
22282 return 0;
22283}
22284_ACEOF
22285if ac_fn_c_try_compile "$LINENO"; then :
22286 ac_cv_c_volatile=yes
22287else
22288 ac_cv_c_volatile=no
22289fi
22290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291fi
22292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22293$as_echo "$ac_cv_c_volatile" >&6; }
22294if test $ac_cv_c_volatile = no; then
22295
22296$as_echo "#define volatile /**/" >>confdefs.h
22297
22298fi
22299
cristy3ed852e2009-09-05 21:47:34 +000022300
22301# If words are stored with the most significant byte first (like
22302# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022304$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022305if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022306 $as_echo_n "(cached) " >&6
22307else
22308 ac_cv_c_bigendian=unknown
22309 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022311/* end confdefs.h. */
22312#ifndef __APPLE_CC__
22313 not a universal capable compiler
22314 #endif
22315 typedef int dummy;
22316
22317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022318if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022319
22320 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022321 # there are at least two -arch flags with different values.
22322 ac_arch=
22323 ac_prev=
22324 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22325 if test -n "$ac_prev"; then
22326 case $ac_word in
22327 i?86 | x86_64 | ppc | ppc64)
22328 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22329 ac_arch=$ac_word
22330 else
22331 ac_cv_c_bigendian=universal
22332 break
22333 fi
22334 ;;
22335 esac
22336 ac_prev=
22337 elif test "x$ac_word" = "x-arch"; then
22338 ac_prev=arch
22339 fi
22340 done
cristy3ed852e2009-09-05 21:47:34 +000022341fi
cristy3ed852e2009-09-05 21:47:34 +000022342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22343 if test $ac_cv_c_bigendian = unknown; then
22344 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022346/* end confdefs.h. */
22347#include <sys/types.h>
22348 #include <sys/param.h>
22349
22350int
22351main ()
22352{
22353#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22354 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22355 && LITTLE_ENDIAN)
22356 bogus endian macros
22357 #endif
22358
22359 ;
22360 return 0;
22361}
22362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022363if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022364 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022366/* end confdefs.h. */
22367#include <sys/types.h>
22368 #include <sys/param.h>
22369
22370int
22371main ()
22372{
22373#if BYTE_ORDER != BIG_ENDIAN
22374 not big endian
22375 #endif
22376
22377 ;
22378 return 0;
22379}
22380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022381if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022382 ac_cv_c_bigendian=yes
22383else
cristy8b350f62009-11-15 23:12:43 +000022384 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022385fi
cristy3ed852e2009-09-05 21:47:34 +000022386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022387fi
cristy3ed852e2009-09-05 21:47:34 +000022388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22389 fi
22390 if test $ac_cv_c_bigendian = unknown; then
22391 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022393/* end confdefs.h. */
22394#include <limits.h>
22395
22396int
22397main ()
22398{
22399#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22400 bogus endian macros
22401 #endif
22402
22403 ;
22404 return 0;
22405}
22406_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022407if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022408 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022410/* end confdefs.h. */
22411#include <limits.h>
22412
22413int
22414main ()
22415{
22416#ifndef _BIG_ENDIAN
22417 not big endian
22418 #endif
22419
22420 ;
22421 return 0;
22422}
22423_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022424if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022425 ac_cv_c_bigendian=yes
22426else
cristy8b350f62009-11-15 23:12:43 +000022427 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022428fi
cristy3ed852e2009-09-05 21:47:34 +000022429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022430fi
cristy3ed852e2009-09-05 21:47:34 +000022431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22432 fi
22433 if test $ac_cv_c_bigendian = unknown; then
22434 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022435 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022436 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022438/* end confdefs.h. */
22439short int ascii_mm[] =
22440 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22441 short int ascii_ii[] =
22442 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22443 int use_ascii (int i) {
22444 return ascii_mm[i] + ascii_ii[i];
22445 }
22446 short int ebcdic_ii[] =
22447 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22448 short int ebcdic_mm[] =
22449 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22450 int use_ebcdic (int i) {
22451 return ebcdic_mm[i] + ebcdic_ii[i];
22452 }
22453 extern int foo;
22454
22455int
22456main ()
22457{
22458return use_ascii (foo) == use_ebcdic (foo);
22459 ;
22460 return 0;
22461}
22462_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022463if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022464 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22465 ac_cv_c_bigendian=yes
22466 fi
22467 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22468 if test "$ac_cv_c_bigendian" = unknown; then
22469 ac_cv_c_bigendian=no
22470 else
22471 # finding both strings is unlikely to happen, but who knows?
22472 ac_cv_c_bigendian=unknown
22473 fi
22474 fi
cristy3ed852e2009-09-05 21:47:34 +000022475fi
cristy3ed852e2009-09-05 21:47:34 +000022476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22477else
cristy8b350f62009-11-15 23:12:43 +000022478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022479/* end confdefs.h. */
22480$ac_includes_default
22481int
22482main ()
22483{
22484
22485 /* Are we little or big endian? From Harbison&Steele. */
22486 union
22487 {
22488 long int l;
22489 char c[sizeof (long int)];
22490 } u;
22491 u.l = 1;
22492 return u.c[sizeof (long int) - 1] == 1;
22493
22494 ;
22495 return 0;
22496}
22497_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022498if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022499 ac_cv_c_bigendian=no
22500else
cristy8b350f62009-11-15 23:12:43 +000022501 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022502fi
cristy8b350f62009-11-15 23:12:43 +000022503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22504 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022505fi
22506
cristy3ed852e2009-09-05 21:47:34 +000022507 fi
22508fi
cristy8b350f62009-11-15 23:12:43 +000022509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022510$as_echo "$ac_cv_c_bigendian" >&6; }
22511 case $ac_cv_c_bigendian in #(
22512 yes)
cristy8b350f62009-11-15 23:12:43 +000022513 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022514;; #(
22515 no)
22516 ;; #(
22517 universal)
22518
cristy8b350f62009-11-15 23:12:43 +000022519$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022520
22521 ;; #(
22522 *)
cristy98dddb52010-11-04 00:30:15 +000022523 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022524 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022525 esac
22526
22527
cristy501c8042011-05-26 17:46:28 +000022528# Define to a suitable type, if standard headers do not define it.
22529ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22530case $ac_cv_c_int8_t in #(
22531 no|yes) ;; #(
22532 *)
cristy3ed852e2009-09-05 21:47:34 +000022533
22534cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022535#define int8_t $ac_cv_c_int8_t
22536_ACEOF
22537;;
22538esac
22539
22540ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22541case $ac_cv_c_int16_t in #(
22542 no|yes) ;; #(
22543 *)
22544
22545cat >>confdefs.h <<_ACEOF
22546#define int16_t $ac_cv_c_int16_t
22547_ACEOF
22548;;
22549esac
22550
22551ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22552case $ac_cv_c_int32_t in #(
22553 no|yes) ;; #(
22554 *)
22555
22556cat >>confdefs.h <<_ACEOF
22557#define int32_t $ac_cv_c_int32_t
22558_ACEOF
22559;;
22560esac
22561
22562ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22563case $ac_cv_c_int64_t in #(
22564 no|yes) ;; #(
22565 *)
22566
22567cat >>confdefs.h <<_ACEOF
22568#define int64_t $ac_cv_c_int64_t
22569_ACEOF
22570;;
22571esac
22572
22573
cristy71f53d52013-04-27 13:33:59 +000022574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22575$as_echo_n "checking for unsigned long long int... " >&6; }
22576if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022577 $as_echo_n "(cached) " >&6
22578else
cristy71f53d52013-04-27 13:33:59 +000022579 ac_cv_type_unsigned_long_long_int=yes
22580 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022582/* end confdefs.h. */
22583
22584 /* For now, do not test the preprocessor; as of 2007 there are too many
cristybdabdd62013-03-04 17:43:36 +000022585 implementations with broken preprocessors. Perhaps this can
22586 be revisited in 2012. In the meantime, code should not expect
22587 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022588 /* Test literals. */
22589 long long int ll = 9223372036854775807ll;
22590 long long int nll = -9223372036854775807LL;
22591 unsigned long long int ull = 18446744073709551615ULL;
22592 /* Test constant expressions. */
22593 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristybdabdd62013-03-04 17:43:36 +000022594 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022595 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristybdabdd62013-03-04 17:43:36 +000022596 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022597 int i = 63;
22598int
22599main ()
22600{
22601/* Test availability of runtime routines for shift and division. */
22602 long long int llmax = 9223372036854775807ll;
22603 unsigned long long int ullmax = 18446744073709551615ull;
22604 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristybdabdd62013-03-04 17:43:36 +000022605 | (llmax / ll) | (llmax % ll)
22606 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22607 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022608 ;
22609 return 0;
22610}
22611
22612_ACEOF
22613if ac_fn_c_try_link "$LINENO"; then :
cristy71f53d52013-04-27 13:33:59 +000022614
22615else
22616 ac_cv_type_unsigned_long_long_int=no
22617fi
22618rm -f core conftest.err conftest.$ac_objext \
22619 conftest$ac_exeext conftest.$ac_ext
22620 fi
22621fi
22622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22623$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22624 if test $ac_cv_type_unsigned_long_long_int = yes; then
22625
22626$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22627
22628 fi
22629
22630
22631
22632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22633$as_echo_n "checking for long long int... " >&6; }
22634if ${ac_cv_type_long_long_int+:} false; then :
22635 $as_echo_n "(cached) " >&6
22636else
cristy501c8042011-05-26 17:46:28 +000022637 ac_cv_type_long_long_int=yes
cristy71f53d52013-04-27 13:33:59 +000022638 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22639 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22640 if test $ac_cv_type_long_long_int = yes; then
22641 if test "$cross_compiling" = yes; then :
22642 :
cristy501c8042011-05-26 17:46:28 +000022643else
22644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22645/* end confdefs.h. */
22646#include <limits.h>
cristy71f53d52013-04-27 13:33:59 +000022647 #ifndef LLONG_MAX
22648 # define HALF \
22649 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22650 # define LLONG_MAX (HALF - 1 + HALF)
22651 #endif
cristy501c8042011-05-26 17:46:28 +000022652int
22653main ()
22654{
22655long long int n = 1;
cristy71f53d52013-04-27 13:33:59 +000022656 int i;
22657 for (i = 0; ; i++)
22658 {
22659 long long int m = n << i;
22660 if (m >> i != n)
22661 return 1;
22662 if (LLONG_MAX / 2 < m)
22663 break;
22664 }
22665 return 0;
cristy501c8042011-05-26 17:46:28 +000022666 ;
22667 return 0;
22668}
22669_ACEOF
22670if ac_fn_c_try_run "$LINENO"; then :
cristy71f53d52013-04-27 13:33:59 +000022671
cristy501c8042011-05-26 17:46:28 +000022672else
22673 ac_cv_type_long_long_int=no
22674fi
22675rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22676 conftest.$ac_objext conftest.beam conftest.$ac_ext
22677fi
22678
cristy71f53d52013-04-27 13:33:59 +000022679 fi
22680 fi
cristy501c8042011-05-26 17:46:28 +000022681fi
22682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22683$as_echo "$ac_cv_type_long_long_int" >&6; }
22684 if test $ac_cv_type_long_long_int = yes; then
22685
22686$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22687
22688 fi
22689
22690
22691
22692 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22693if test "x$ac_cv_type_intmax_t" = xyes; then :
22694
22695$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22696
22697else
22698 test $ac_cv_type_long_long_int = yes \
22699 && ac_type='long long int' \
22700 || ac_type='long int'
22701
22702cat >>confdefs.h <<_ACEOF
22703#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022704_ACEOF
22705
22706fi
22707
22708
cristy501c8042011-05-26 17:46:28 +000022709
22710 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22711if test "x$ac_cv_type_intptr_t" = xyes; then :
22712
22713$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022714
cristy3ed852e2009-09-05 21:47:34 +000022715else
cristy501c8042011-05-26 17:46:28 +000022716 for ac_type in 'int' 'long int' 'long long int'; do
22717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22718/* end confdefs.h. */
22719$ac_includes_default
22720int
22721main ()
22722{
22723static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022724test_array [0] = 0;
22725return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022726
22727 ;
22728 return 0;
22729}
22730_ACEOF
22731if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022732
22733cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022734#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022735_ACEOF
22736
cristy501c8042011-05-26 17:46:28 +000022737 ac_type=
22738fi
22739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22740 test -z "$ac_type" && break
22741 done
cristy3ed852e2009-09-05 21:47:34 +000022742fi
22743
22744
cristy3ed852e2009-09-05 21:47:34 +000022745
cristy501c8042011-05-26 17:46:28 +000022746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22747$as_echo_n "checking for long double... " >&6; }
22748if ${ac_cv_type_long_double+:} false; then :
22749 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022750else
cristy501c8042011-05-26 17:46:28 +000022751 if test "$GCC" = yes; then
22752 ac_cv_type_long_double=yes
22753 else
22754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22755/* end confdefs.h. */
22756/* The Stardent Vistra knows sizeof (long double), but does
22757 not support it. */
22758 long double foo = 0.0L;
22759int
22760main ()
22761{
22762static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22763 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022764test_array [0] = 0;
22765return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022766
cristy501c8042011-05-26 17:46:28 +000022767 ;
22768 return 0;
22769}
cristy3ed852e2009-09-05 21:47:34 +000022770_ACEOF
cristy501c8042011-05-26 17:46:28 +000022771if ac_fn_c_try_compile "$LINENO"; then :
22772 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022773else
cristy501c8042011-05-26 17:46:28 +000022774 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022775fi
cristy501c8042011-05-26 17:46:28 +000022776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22777 fi
cristy3ed852e2009-09-05 21:47:34 +000022778fi
cristy501c8042011-05-26 17:46:28 +000022779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22780$as_echo "$ac_cv_type_long_double" >&6; }
22781 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022782
cristy501c8042011-05-26 17:46:28 +000022783$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022784
cristy501c8042011-05-26 17:46:28 +000022785 fi
22786
cristy3ed852e2009-09-05 21:47:34 +000022787
cristy8b350f62009-11-15 23:12:43 +000022788 { $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 +000022789$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022790if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022791 $as_echo_n "(cached) " >&6
22792else
cristy8b350f62009-11-15 23:12:43 +000022793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022794/* end confdefs.h. */
22795#include <float.h>
22796 long double const a[] =
22797 {
22798 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22799 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22800 };
22801 long double
22802 f (long double x)
22803 {
22804 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22805 + (x ? f (x) : 'c'));
22806 }
22807
22808int
22809main ()
22810{
22811static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22812 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22813 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22814 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22815 && (int) LDBL_EPSILON == 0
22816 )];
cristy14fefe52012-05-21 00:59:18 +000022817test_array [0] = 0;
22818return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022819
22820 ;
22821 return 0;
22822}
22823_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022824if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022825 ac_cv_type_long_double_wider=yes
22826else
cristy8b350f62009-11-15 23:12:43 +000022827 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022828fi
cristy3ed852e2009-09-05 21:47:34 +000022829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22830fi
cristy8b350f62009-11-15 23:12:43 +000022831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022832$as_echo "$ac_cv_type_long_double_wider" >&6; }
22833 if test $ac_cv_type_long_double_wider = yes; then
22834
cristy8b350f62009-11-15 23:12:43 +000022835$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022836
22837 fi
22838
22839
cristy71f53d52013-04-27 13:33:59 +000022840
cristy501c8042011-05-26 17:46:28 +000022841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22842$as_echo_n "checking for long long int... " >&6; }
22843if ${ac_cv_type_long_long_int+:} false; then :
22844 $as_echo_n "(cached) " >&6
22845else
cristy501c8042011-05-26 17:46:28 +000022846 ac_cv_type_long_long_int=yes
cristy71f53d52013-04-27 13:33:59 +000022847 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22848 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22849 if test $ac_cv_type_long_long_int = yes; then
22850 if test "$cross_compiling" = yes; then :
22851 :
cristy501c8042011-05-26 17:46:28 +000022852else
22853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22854/* end confdefs.h. */
22855#include <limits.h>
cristy71f53d52013-04-27 13:33:59 +000022856 #ifndef LLONG_MAX
22857 # define HALF \
22858 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22859 # define LLONG_MAX (HALF - 1 + HALF)
22860 #endif
cristy501c8042011-05-26 17:46:28 +000022861int
22862main ()
22863{
22864long long int n = 1;
cristy71f53d52013-04-27 13:33:59 +000022865 int i;
22866 for (i = 0; ; i++)
22867 {
22868 long long int m = n << i;
22869 if (m >> i != n)
22870 return 1;
22871 if (LLONG_MAX / 2 < m)
22872 break;
22873 }
22874 return 0;
cristy501c8042011-05-26 17:46:28 +000022875 ;
22876 return 0;
22877}
22878_ACEOF
22879if ac_fn_c_try_run "$LINENO"; then :
cristy71f53d52013-04-27 13:33:59 +000022880
cristy501c8042011-05-26 17:46:28 +000022881else
22882 ac_cv_type_long_long_int=no
22883fi
22884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22885 conftest.$ac_objext conftest.beam conftest.$ac_ext
22886fi
22887
cristy71f53d52013-04-27 13:33:59 +000022888 fi
22889 fi
cristy501c8042011-05-26 17:46:28 +000022890fi
22891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22892$as_echo "$ac_cv_type_long_long_int" >&6; }
22893 if test $ac_cv_type_long_long_int = yes; then
22894
22895$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22896
22897 fi
22898
22899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22900$as_echo_n "checking for mbstate_t... " >&6; }
22901if ${ac_cv_type_mbstate_t+:} false; then :
22902 $as_echo_n "(cached) " >&6
22903else
22904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22905/* end confdefs.h. */
22906$ac_includes_default
22907# include <wchar.h>
22908int
22909main ()
22910{
22911mbstate_t x; return sizeof x;
22912 ;
22913 return 0;
22914}
22915_ACEOF
22916if ac_fn_c_try_compile "$LINENO"; then :
22917 ac_cv_type_mbstate_t=yes
22918else
22919 ac_cv_type_mbstate_t=no
22920fi
22921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22922fi
22923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22924$as_echo "$ac_cv_type_mbstate_t" >&6; }
22925 if test $ac_cv_type_mbstate_t = yes; then
22926
22927$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22928
22929 else
22930
22931$as_echo "#define mbstate_t int" >>confdefs.h
22932
22933 fi
22934ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22935if test "x$ac_cv_type_mode_t" = xyes; then :
22936
22937else
22938
22939cat >>confdefs.h <<_ACEOF
22940#define mode_t int
22941_ACEOF
22942
22943fi
22944
22945ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22946if test "x$ac_cv_type_off_t" = xyes; then :
22947
22948else
22949
22950cat >>confdefs.h <<_ACEOF
22951#define off_t long int
22952_ACEOF
22953
22954fi
22955
22956ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22957if test "x$ac_cv_type_pid_t" = xyes; then :
22958
22959else
22960
22961cat >>confdefs.h <<_ACEOF
22962#define pid_t int
22963_ACEOF
22964
22965fi
22966
22967ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22968if test "x$ac_cv_type_size_t" = xyes; then :
22969
22970else
22971
22972cat >>confdefs.h <<_ACEOF
22973#define size_t unsigned int
22974_ACEOF
22975
22976fi
22977
22978ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22979if test "x$ac_cv_type_ssize_t" = xyes; then :
22980
22981else
22982
22983cat >>confdefs.h <<_ACEOF
22984#define ssize_t int
22985_ACEOF
22986
22987fi
22988
22989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22990$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22991if ${ac_cv_type_uid_t+:} false; then :
22992 $as_echo_n "(cached) " >&6
22993else
22994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22995/* end confdefs.h. */
22996#include <sys/types.h>
22997
22998_ACEOF
22999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23000 $EGREP "uid_t" >/dev/null 2>&1; then :
23001 ac_cv_type_uid_t=yes
23002else
23003 ac_cv_type_uid_t=no
23004fi
23005rm -f conftest*
23006
23007fi
23008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23009$as_echo "$ac_cv_type_uid_t" >&6; }
23010if test $ac_cv_type_uid_t = no; then
23011
23012$as_echo "#define uid_t int" >>confdefs.h
23013
23014
23015$as_echo "#define gid_t int" >>confdefs.h
23016
23017fi
23018
23019ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23020case $ac_cv_c_uint8_t in #(
23021 no|yes) ;; #(
23022 *)
23023
23024$as_echo "#define _UINT8_T 1" >>confdefs.h
23025
23026
23027cat >>confdefs.h <<_ACEOF
23028#define uint8_t $ac_cv_c_uint8_t
23029_ACEOF
23030;;
23031 esac
23032
23033ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23034case $ac_cv_c_uint16_t in #(
23035 no|yes) ;; #(
23036 *)
23037
23038
23039cat >>confdefs.h <<_ACEOF
23040#define uint16_t $ac_cv_c_uint16_t
23041_ACEOF
23042;;
23043 esac
23044
23045ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23046case $ac_cv_c_uint32_t in #(
23047 no|yes) ;; #(
23048 *)
23049
23050$as_echo "#define _UINT32_T 1" >>confdefs.h
23051
23052
23053cat >>confdefs.h <<_ACEOF
23054#define uint32_t $ac_cv_c_uint32_t
23055_ACEOF
23056;;
23057 esac
23058
23059ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23060case $ac_cv_c_uint64_t in #(
23061 no|yes) ;; #(
23062 *)
23063
23064$as_echo "#define _UINT64_T 1" >>confdefs.h
23065
23066
23067cat >>confdefs.h <<_ACEOF
23068#define uint64_t $ac_cv_c_uint64_t
23069_ACEOF
23070;;
23071 esac
23072
23073
cristy501c8042011-05-26 17:46:28 +000023074
23075 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23076if test "x$ac_cv_type_uintmax_t" = xyes; then :
23077
23078$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23079
23080else
23081 test $ac_cv_type_unsigned_long_long_int = yes \
23082 && ac_type='unsigned long long int' \
23083 || ac_type='unsigned long int'
23084
23085cat >>confdefs.h <<_ACEOF
23086#define uintmax_t $ac_type
23087_ACEOF
23088
23089fi
23090
23091
23092
23093 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23094if test "x$ac_cv_type_uintptr_t" = xyes; then :
23095
23096$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23097
23098else
23099 for ac_type in 'unsigned int' 'unsigned long int' \
23100 'unsigned long long int'; do
23101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23102/* end confdefs.h. */
23103$ac_includes_default
23104int
23105main ()
23106{
23107static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023108test_array [0] = 0;
23109return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023110
23111 ;
23112 return 0;
23113}
23114_ACEOF
23115if ac_fn_c_try_compile "$LINENO"; then :
23116
23117cat >>confdefs.h <<_ACEOF
23118#define uintptr_t $ac_type
23119_ACEOF
23120
23121 ac_type=
23122fi
23123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23124 test -z "$ac_type" && break
23125 done
23126fi
23127
23128
23129
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23131$as_echo_n "checking for unsigned long long int... " >&6; }
23132if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23133 $as_echo_n "(cached) " >&6
23134else
cristy71f53d52013-04-27 13:33:59 +000023135 ac_cv_type_unsigned_long_long_int=yes
23136 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023138/* end confdefs.h. */
23139
23140 /* For now, do not test the preprocessor; as of 2007 there are too many
cristybdabdd62013-03-04 17:43:36 +000023141 implementations with broken preprocessors. Perhaps this can
23142 be revisited in 2012. In the meantime, code should not expect
23143 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023144 /* Test literals. */
23145 long long int ll = 9223372036854775807ll;
23146 long long int nll = -9223372036854775807LL;
23147 unsigned long long int ull = 18446744073709551615ULL;
23148 /* Test constant expressions. */
23149 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristybdabdd62013-03-04 17:43:36 +000023150 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023151 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristybdabdd62013-03-04 17:43:36 +000023152 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023153 int i = 63;
23154int
23155main ()
23156{
23157/* Test availability of runtime routines for shift and division. */
23158 long long int llmax = 9223372036854775807ll;
23159 unsigned long long int ullmax = 18446744073709551615ull;
23160 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristybdabdd62013-03-04 17:43:36 +000023161 | (llmax / ll) | (llmax % ll)
23162 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23163 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023164 ;
23165 return 0;
23166}
23167
23168_ACEOF
23169if ac_fn_c_try_link "$LINENO"; then :
cristy71f53d52013-04-27 13:33:59 +000023170
cristy501c8042011-05-26 17:46:28 +000023171else
23172 ac_cv_type_unsigned_long_long_int=no
23173fi
23174rm -f core conftest.err conftest.$ac_objext \
23175 conftest$ac_exeext conftest.$ac_ext
cristy71f53d52013-04-27 13:33:59 +000023176 fi
cristy501c8042011-05-26 17:46:28 +000023177fi
23178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23179$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23180 if test $ac_cv_type_unsigned_long_long_int = yes; then
23181
23182$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23183
23184 fi
23185
23186
cristy9b86f202012-11-28 21:55:35 +000023187# Float_t and double_t are intended to be the the most efficient type.
cristyf0cf9a22012-10-24 12:05:01 +000023188ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23189"
23190if test "x$ac_cv_type_float_t" = xyes; then :
23191
23192cat >>confdefs.h <<_ACEOF
23193#define HAVE_FLOAT_T 1
23194_ACEOF
23195
23196
23197fi
23198
23199ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23200"
23201if test "x$ac_cv_type_double_t" = xyes; then :
23202
23203cat >>confdefs.h <<_ACEOF
23204#define HAVE_DOUBLE_T 1
23205_ACEOF
23206
23207
23208fi
23209
cristy9b86f202012-11-28 21:55:35 +000023210# The cast to long int works around a bug in the HP C Compiler
23211# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23212# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23213# This bug is HP SR number 8606223364.
23214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23215$as_echo_n "checking size of float_t... " >&6; }
23216if ${ac_cv_sizeof_float_t+:} false; then :
23217 $as_echo_n "(cached) " >&6
23218else
23219 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23220"; then :
23221
23222else
23223 if test "$ac_cv_type_float_t" = yes; then
23224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23226as_fn_error 77 "cannot compute sizeof (float_t)
23227See \`config.log' for more details" "$LINENO" 5; }
23228 else
23229 ac_cv_sizeof_float_t=0
23230 fi
23231fi
23232
23233fi
23234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23235$as_echo "$ac_cv_sizeof_float_t" >&6; }
23236
23237
23238
23239cat >>confdefs.h <<_ACEOF
23240#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23241_ACEOF
23242
23243
23244# The cast to long int works around a bug in the HP C Compiler
23245# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23246# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23247# This bug is HP SR number 8606223364.
23248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23249$as_echo_n "checking size of double_t... " >&6; }
23250if ${ac_cv_sizeof_double_t+:} false; then :
23251 $as_echo_n "(cached) " >&6
23252else
23253 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23254"; then :
23255
23256else
23257 if test "$ac_cv_type_double_t" = yes; then
23258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23260as_fn_error 77 "cannot compute sizeof (double_t)
23261See \`config.log' for more details" "$LINENO" 5; }
23262 else
23263 ac_cv_sizeof_double_t=0
23264 fi
23265fi
23266
23267fi
23268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23269$as_echo "$ac_cv_sizeof_double_t" >&6; }
23270
23271
23272
23273cat >>confdefs.h <<_ACEOF
23274#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23275_ACEOF
23276
23277
23278
23279# Get size of float, double and long double for comparaison.
23280# The cast to long int works around a bug in the HP C Compiler
23281# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23282# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23283# This bug is HP SR number 8606223364.
23284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23285$as_echo_n "checking size of float... " >&6; }
23286if ${ac_cv_sizeof_float+:} false; then :
23287 $as_echo_n "(cached) " >&6
23288else
23289 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23290
23291else
23292 if test "$ac_cv_type_float" = yes; then
23293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23295as_fn_error 77 "cannot compute sizeof (float)
23296See \`config.log' for more details" "$LINENO" 5; }
23297 else
23298 ac_cv_sizeof_float=0
23299 fi
23300fi
23301
23302fi
23303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23304$as_echo "$ac_cv_sizeof_float" >&6; }
23305
23306
23307
23308cat >>confdefs.h <<_ACEOF
23309#define SIZEOF_FLOAT $ac_cv_sizeof_float
23310_ACEOF
23311
23312
23313# The cast to long int works around a bug in the HP C Compiler
23314# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23315# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23316# This bug is HP SR number 8606223364.
23317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23318$as_echo_n "checking size of double... " >&6; }
23319if ${ac_cv_sizeof_double+:} false; then :
23320 $as_echo_n "(cached) " >&6
23321else
23322 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23323
23324else
23325 if test "$ac_cv_type_double" = yes; then
23326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23328as_fn_error 77 "cannot compute sizeof (double)
23329See \`config.log' for more details" "$LINENO" 5; }
23330 else
23331 ac_cv_sizeof_double=0
23332 fi
23333fi
23334
23335fi
23336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23337$as_echo "$ac_cv_sizeof_double" >&6; }
23338
23339
23340
23341cat >>confdefs.h <<_ACEOF
23342#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23343_ACEOF
23344
23345
23346# The cast to long int works around a bug in the HP C Compiler
23347# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23348# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23349# This bug is HP SR number 8606223364.
23350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23351$as_echo_n "checking size of long double... " >&6; }
23352if ${ac_cv_sizeof_long_double+:} false; then :
23353 $as_echo_n "(cached) " >&6
23354else
23355 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23356
23357else
23358 if test "$ac_cv_type_long_double" = yes; then
23359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23361as_fn_error 77 "cannot compute sizeof (long double)
23362See \`config.log' for more details" "$LINENO" 5; }
23363 else
23364 ac_cv_sizeof_long_double=0
23365 fi
23366fi
23367
23368fi
23369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23370$as_echo "$ac_cv_sizeof_long_double" >&6; }
23371
23372
23373
23374cat >>confdefs.h <<_ACEOF
23375#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23376_ACEOF
23377
23378
cristyf0cf9a22012-10-24 12:05:01 +000023379
cristy3ed852e2009-09-05 21:47:34 +000023380# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23381# The cast to long int works around a bug in the HP C Compiler
23382# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23383# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23384# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023386$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023387if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023388 $as_echo_n "(cached) " >&6
23389else
cristy8b350f62009-11-15 23:12:43 +000023390 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 +000023391
cristy3ed852e2009-09-05 21:47:34 +000023392else
cristy8b350f62009-11-15 23:12:43 +000023393 if test "$ac_cv_type_signed_short" = yes; then
23394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023396as_fn_error 77 "cannot compute sizeof (signed short)
23397See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023398 else
23399 ac_cv_sizeof_signed_short=0
23400 fi
23401fi
cristy8b350f62009-11-15 23:12:43 +000023402
cristy3ed852e2009-09-05 21:47:34 +000023403fi
cristy8b350f62009-11-15 23:12:43 +000023404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023405$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23406
23407
23408
23409cat >>confdefs.h <<_ACEOF
23410#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23411_ACEOF
23412
23413
23414
23415# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23416# The cast to long int works around a bug in the HP C Compiler
23417# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23418# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23419# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023421$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023422if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023423 $as_echo_n "(cached) " >&6
23424else
cristy8b350f62009-11-15 23:12:43 +000023425 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 +000023426
cristy3ed852e2009-09-05 21:47:34 +000023427else
cristy8b350f62009-11-15 23:12:43 +000023428 if test "$ac_cv_type_unsigned_short" = yes; then
23429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023431as_fn_error 77 "cannot compute sizeof (unsigned short)
23432See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023433 else
23434 ac_cv_sizeof_unsigned_short=0
23435 fi
23436fi
cristy8b350f62009-11-15 23:12:43 +000023437
cristy3ed852e2009-09-05 21:47:34 +000023438fi
cristy8b350f62009-11-15 23:12:43 +000023439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023440$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23441
23442
23443
23444cat >>confdefs.h <<_ACEOF
23445#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23446_ACEOF
23447
23448
23449
23450# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23451# The cast to long int works around a bug in the HP C Compiler
23452# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23453# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23454# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023456$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023457if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023458 $as_echo_n "(cached) " >&6
23459else
cristy8b350f62009-11-15 23:12:43 +000023460 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 +000023461
cristy3ed852e2009-09-05 21:47:34 +000023462else
cristy8b350f62009-11-15 23:12:43 +000023463 if test "$ac_cv_type_signed_int" = yes; then
23464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023466as_fn_error 77 "cannot compute sizeof (signed int)
23467See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023468 else
23469 ac_cv_sizeof_signed_int=0
23470 fi
23471fi
cristy8b350f62009-11-15 23:12:43 +000023472
cristy3ed852e2009-09-05 21:47:34 +000023473fi
cristy8b350f62009-11-15 23:12:43 +000023474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023475$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23476
23477
23478
23479cat >>confdefs.h <<_ACEOF
23480#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23481_ACEOF
23482
23483
23484
23485# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23486# The cast to long int works around a bug in the HP C Compiler
23487# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23488# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23489# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023491$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023492if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023493 $as_echo_n "(cached) " >&6
23494else
cristy8b350f62009-11-15 23:12:43 +000023495 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 +000023496
cristy3ed852e2009-09-05 21:47:34 +000023497else
cristy8b350f62009-11-15 23:12:43 +000023498 if test "$ac_cv_type_unsigned_int" = yes; then
23499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023501as_fn_error 77 "cannot compute sizeof (unsigned int)
23502See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023503 else
23504 ac_cv_sizeof_unsigned_int=0
23505 fi
23506fi
cristy8b350f62009-11-15 23:12:43 +000023507
cristy3ed852e2009-09-05 21:47:34 +000023508fi
cristy8b350f62009-11-15 23:12:43 +000023509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023510$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23511
23512
23513
23514cat >>confdefs.h <<_ACEOF
23515#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23516_ACEOF
23517
23518
23519
23520# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23521# The cast to long int works around a bug in the HP C Compiler
23522# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23523# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23524# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023526$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023527if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023528 $as_echo_n "(cached) " >&6
23529else
cristy8b350f62009-11-15 23:12:43 +000023530 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 +000023531
cristy3ed852e2009-09-05 21:47:34 +000023532else
cristy8b350f62009-11-15 23:12:43 +000023533 if test "$ac_cv_type_signed_long" = yes; then
23534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023536as_fn_error 77 "cannot compute sizeof (signed long)
23537See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023538 else
23539 ac_cv_sizeof_signed_long=0
23540 fi
23541fi
cristy8b350f62009-11-15 23:12:43 +000023542
cristy3ed852e2009-09-05 21:47:34 +000023543fi
cristy8b350f62009-11-15 23:12:43 +000023544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023545$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23546
23547
23548
23549cat >>confdefs.h <<_ACEOF
23550#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23551_ACEOF
23552
23553
23554
23555# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23556# The cast to long int works around a bug in the HP C Compiler
23557# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23558# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23559# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023561$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023562if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023563 $as_echo_n "(cached) " >&6
23564else
cristy8b350f62009-11-15 23:12:43 +000023565 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 +000023566
cristy3ed852e2009-09-05 21:47:34 +000023567else
cristy8b350f62009-11-15 23:12:43 +000023568 if test "$ac_cv_type_unsigned_long" = yes; then
23569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023571as_fn_error 77 "cannot compute sizeof (unsigned long)
23572See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023573 else
23574 ac_cv_sizeof_unsigned_long=0
23575 fi
23576fi
cristy8b350f62009-11-15 23:12:43 +000023577
cristy3ed852e2009-09-05 21:47:34 +000023578fi
cristy8b350f62009-11-15 23:12:43 +000023579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023580$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23581
23582
23583
23584cat >>confdefs.h <<_ACEOF
23585#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23586_ACEOF
23587
23588
23589
23590# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23591# 'signed long long' is not supported then the value defined is zero.
23592# The cast to long int works around a bug in the HP C Compiler
23593# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23594# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23595# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023597$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023598if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023599 $as_echo_n "(cached) " >&6
23600else
cristy8b350f62009-11-15 23:12:43 +000023601 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 +000023602
cristy3ed852e2009-09-05 21:47:34 +000023603else
cristy8b350f62009-11-15 23:12:43 +000023604 if test "$ac_cv_type_signed_long_long" = yes; then
23605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023607as_fn_error 77 "cannot compute sizeof (signed long long)
23608See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023609 else
23610 ac_cv_sizeof_signed_long_long=0
23611 fi
23612fi
cristy8b350f62009-11-15 23:12:43 +000023613
cristy3ed852e2009-09-05 21:47:34 +000023614fi
cristy8b350f62009-11-15 23:12:43 +000023615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023616$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23617
23618
23619
23620cat >>confdefs.h <<_ACEOF
23621#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23622_ACEOF
23623
23624
23625
23626# Obtain size of a 'unsigned long long' and define as
23627# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23628# supported then the value defined is zero.
23629# The cast to long int works around a bug in the HP C Compiler
23630# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23631# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23632# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023634$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023635if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023636 $as_echo_n "(cached) " >&6
23637else
cristy8b350f62009-11-15 23:12:43 +000023638 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 +000023639
cristy3ed852e2009-09-05 21:47:34 +000023640else
cristy8b350f62009-11-15 23:12:43 +000023641 if test "$ac_cv_type_unsigned_long_long" = yes; then
23642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023644as_fn_error 77 "cannot compute sizeof (unsigned long long)
23645See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023646 else
23647 ac_cv_sizeof_unsigned_long_long=0
23648 fi
23649fi
cristy8b350f62009-11-15 23:12:43 +000023650
cristy3ed852e2009-09-05 21:47:34 +000023651fi
cristy8b350f62009-11-15 23:12:43 +000023652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023653$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23654
23655
23656
23657cat >>confdefs.h <<_ACEOF
23658#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23659_ACEOF
23660
23661
23662
23663# Obtain size of off_t and define as SIZEOF_OFF_T
23664# The cast to long int works around a bug in the HP C Compiler
23665# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23666# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23667# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023669$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023670if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023671 $as_echo_n "(cached) " >&6
23672else
cristy8b350f62009-11-15 23:12:43 +000023673 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 +000023674
cristy3ed852e2009-09-05 21:47:34 +000023675else
cristy8b350f62009-11-15 23:12:43 +000023676 if test "$ac_cv_type_off_t" = yes; then
23677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023679as_fn_error 77 "cannot compute sizeof (off_t)
23680See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023681 else
23682 ac_cv_sizeof_off_t=0
23683 fi
23684fi
cristy8b350f62009-11-15 23:12:43 +000023685
cristy3ed852e2009-09-05 21:47:34 +000023686fi
cristy8b350f62009-11-15 23:12:43 +000023687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023688$as_echo "$ac_cv_sizeof_off_t" >&6; }
23689
23690
23691
23692cat >>confdefs.h <<_ACEOF
23693#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23694_ACEOF
23695
23696
23697
23698# Obtain size of size_t and define as SIZEOF_SIZE_T
23699# The cast to long int works around a bug in the HP C Compiler
23700# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23701# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23702# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023704$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023705if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023706 $as_echo_n "(cached) " >&6
23707else
cristy8b350f62009-11-15 23:12:43 +000023708 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 +000023709
cristy3ed852e2009-09-05 21:47:34 +000023710else
cristy8b350f62009-11-15 23:12:43 +000023711 if test "$ac_cv_type_size_t" = yes; then
23712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023714as_fn_error 77 "cannot compute sizeof (size_t)
23715See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023716 else
23717 ac_cv_sizeof_size_t=0
23718 fi
23719fi
cristy8b350f62009-11-15 23:12:43 +000023720
cristy3ed852e2009-09-05 21:47:34 +000023721fi
cristy8b350f62009-11-15 23:12:43 +000023722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023723$as_echo "$ac_cv_sizeof_size_t" >&6; }
23724
23725
23726
23727cat >>confdefs.h <<_ACEOF
23728#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23729_ACEOF
23730
23731
23732
cristy330e9352010-06-01 18:42:49 +000023733# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23734# The cast to long int works around a bug in the HP C Compiler
23735# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23736# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23737# This bug is HP SR number 8606223364.
23738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23739$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023740if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023741 $as_echo_n "(cached) " >&6
23742else
23743 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23744
23745else
23746 if test "$ac_cv_type_ssize_t" = yes; then
23747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023749as_fn_error 77 "cannot compute sizeof (ssize_t)
23750See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023751 else
23752 ac_cv_sizeof_ssize_t=0
23753 fi
23754fi
23755
23756fi
23757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23758$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23759
23760
23761
23762cat >>confdefs.h <<_ACEOF
23763#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23764_ACEOF
23765
23766
23767
cristy3ed852e2009-09-05 21:47:34 +000023768# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23769# The cast to long int works around a bug in the HP C Compiler
23770# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23771# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23772# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023774$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023775if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023776 $as_echo_n "(cached) " >&6
23777else
cristy8b350f62009-11-15 23:12:43 +000023778 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 +000023779
cristy3ed852e2009-09-05 21:47:34 +000023780else
cristy8b350f62009-11-15 23:12:43 +000023781 if test "$ac_cv_type_unsigned_intp" = yes; then
23782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023784as_fn_error 77 "cannot compute sizeof (unsigned int*)
23785See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023786 else
23787 ac_cv_sizeof_unsigned_intp=0
23788 fi
23789fi
cristy8b350f62009-11-15 23:12:43 +000023790
cristy3ed852e2009-09-05 21:47:34 +000023791fi
cristy8b350f62009-11-15 23:12:43 +000023792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023793$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23794
23795
23796
23797cat >>confdefs.h <<_ACEOF
23798#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23799_ACEOF
23800
23801
23802
23803#
23804# Compute sized types for current CPU and compiler options.
23805#
23806
cristy8b350f62009-11-15 23:12:43 +000023807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023808$as_echo_n "checking for signed 8-bit type... " >&6; }
23809INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23811$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023812
23813
cristy8b350f62009-11-15 23:12:43 +000023814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023815$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23816UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23818$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023819
23820
cristy8b350f62009-11-15 23:12:43 +000023821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023822$as_echo_n "checking for signed 16-bit type... " >&6; }
23823INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23825$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023826
23827
cristy8b350f62009-11-15 23:12:43 +000023828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023829$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23830UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23832$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023833
23834
cristy8b350f62009-11-15 23:12:43 +000023835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023836$as_echo_n "checking for signed 32-bit type... " >&6; }
23837INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023838INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023839if test $ac_cv_sizeof_signed_int -eq 4; then
23840 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023841 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023842elif test $ac_cv_sizeof_signed_long -eq 4; then
23843 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023844 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023845fi
cristyad38abe2012-12-23 23:03:21 +000023846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23847$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023848
23849
cristy6d5e20f2011-04-25 13:48:54 +000023850
cristy8b350f62009-11-15 23:12:43 +000023851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023852$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23853UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023854UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023855if test $ac_cv_sizeof_unsigned_int -eq 4; then
23856 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023857 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023858elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23859 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023860 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023861fi
cristyad38abe2012-12-23 23:03:21 +000023862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23863$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023864
23865
cristy6d5e20f2011-04-25 13:48:54 +000023866
cristy8b350f62009-11-15 23:12:43 +000023867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023868$as_echo_n "checking for signed 64-bit type... " >&6; }
23869INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023870INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023871if test $ac_cv_sizeof_signed_long -eq 8; then
23872 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023873 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023874elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23875 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023876 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023877fi
cristy3a99dcf2011-12-17 01:29:40 +000023878case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023879 mingw* )
23880 INT64_F='"I64"'
23881 ;;
23882esac
cristyad38abe2012-12-23 23:03:21 +000023883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23884$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023885
23886
cristy6d5e20f2011-04-25 13:48:54 +000023887
cristy8b350f62009-11-15 23:12:43 +000023888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023889$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23890UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023891UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023892if test $ac_cv_sizeof_unsigned_long -eq 8; then
23893 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023894 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023895elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23896 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023897 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023898fi
cristy3a99dcf2011-12-17 01:29:40 +000023899case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023900 mingw* )
23901 UINT64_F='"I64"'
23902 ;;
23903esac
cristyad38abe2012-12-23 23:03:21 +000023904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23905$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023906
23907
cristy6d5e20f2011-04-25 13:48:54 +000023908
cristy8b350f62009-11-15 23:12:43 +000023909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023910$as_echo_n "checking for unsigned maximum type... " >&6; }
23911UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023912UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023913if test "$UINT64_T" != 'none'; then
23914 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023915 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023916elif test "$UINT32_T" != 'none'; then
23917 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023918 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023919fi
cristyad38abe2012-12-23 23:03:21 +000023920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23921$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023922
23923
cristy6d5e20f2011-04-25 13:48:54 +000023924
cristy8b350f62009-11-15 23:12:43 +000023925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023926$as_echo_n "checking for pointer difference type... " >&6; }
23927UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023928UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023929if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23930 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023931 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023932elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23933 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023934 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023935fi
cristyad38abe2012-12-23 23:03:21 +000023936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23937$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023938
23939
cristy6d5e20f2011-04-25 13:48:54 +000023940
cristy8b350f62009-11-15 23:12:43 +000023941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023942$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023944/* end confdefs.h. */
23945
23946int
23947main ()
23948{
23949{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23950 ;
23951 return 0;
23952}
23953_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023954if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23956$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023957else
cristyad38abe2012-12-23 23:03:21 +000023958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23959$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023961$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023963/* end confdefs.h. */
23964
23965int
23966main ()
23967{
23968{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23969 ;
23970 return 0;
23971}
23972_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023973if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23975$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023976
cristy8b350f62009-11-15 23:12:43 +000023977$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023978
23979else
cristyad38abe2012-12-23 23:03:21 +000023980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23981$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023982
cristy8b350f62009-11-15 23:12:43 +000023983$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023984
23985fi
cristy3ed852e2009-09-05 21:47:34 +000023986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23987fi
cristy3ed852e2009-09-05 21:47:34 +000023988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23989
23990########
23991#
23992# Check for functions
23993#
23994########
cristy73bd4a52010-10-05 11:24:23 +000023995for ac_header in stdlib.h unistd.h
23996do :
23997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23998ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023999if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024000 cat >>confdefs.h <<_ACEOF
24001#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24002_ACEOF
24003
24004fi
24005
24006done
24007
24008for ac_func in getpagesize
24009do :
24010 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024011if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024012 cat >>confdefs.h <<_ACEOF
24013#define HAVE_GETPAGESIZE 1
24014_ACEOF
24015
24016fi
24017done
24018
24019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24020$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024021if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024022 $as_echo_n "(cached) " >&6
24023else
24024 if test "$cross_compiling" = yes; then :
24025 magick_cv_func_mmap_fileio=no
24026else
24027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24028/* end confdefs.h. */
24029$ac_includes_default
24030/* malloc might have been renamed as rpl_malloc. */
24031#undef malloc
24032
24033/*
24034 This test is derived from GNU Autoconf's similar macro.
24035 The purpose of this test is to verify that files may be memory
24036 mapped, and that memory mapping and file I/O are coherent.
24037
24038 The test creates a test file, memory maps the file, updates
24039 the file using the memory map, and then reads the file using
24040 file I/O to verify that the file contains the updates.
24041*/
24042
24043#include <fcntl.h>
24044#include <sys/mman.h>
24045
24046#if !STDC_HEADERS && !HAVE_STDLIB_H
24047char *malloc ();
24048#endif
24049
24050/* This mess was copied from the GNU getpagesize.h. */
24051#if !HAVE_GETPAGESIZE
24052/* Assume that all systems that can run configure have sys/param.h. */
24053# if !HAVE_SYS_PARAM_H
24054# define HAVE_SYS_PARAM_H 1
24055# endif
24056
24057# ifdef _SC_PAGESIZE
24058# define getpagesize() sysconf(_SC_PAGESIZE)
24059# else /* no _SC_PAGESIZE */
24060# if HAVE_SYS_PARAM_H
24061# include <sys/param.h>
24062# ifdef EXEC_PAGESIZE
24063# define getpagesize() EXEC_PAGESIZE
24064# else /* no EXEC_PAGESIZE */
24065# ifdef NBPG
24066# define getpagesize() NBPG * CLSIZE
24067# ifndef CLSIZE
24068# define CLSIZE 1
24069# endif /* no CLSIZE */
24070# else /* no NBPG */
24071# ifdef NBPC
24072# define getpagesize() NBPC
24073# else /* no NBPC */
24074# ifdef PAGESIZE
24075# define getpagesize() PAGESIZE
24076# endif /* PAGESIZE */
24077# endif /* no NBPC */
24078# endif /* no NBPG */
24079# endif /* no EXEC_PAGESIZE */
24080# else /* no HAVE_SYS_PARAM_H */
24081# define getpagesize() 8192 /* punt totally */
24082# endif /* no HAVE_SYS_PARAM_H */
24083# endif /* no _SC_PAGESIZE */
24084
24085#endif /* no HAVE_GETPAGESIZE */
24086
24087int
24088main ()
24089{
24090 char *data, *data2, *data3;
24091 int i, pagesize;
24092 int fd;
24093
24094 pagesize = getpagesize ();
24095
24096 /* First, make a file with some known garbage in it. */
24097 data = (char *) malloc (pagesize);
24098 if (!data)
24099 exit (1);
24100 for (i = 0; i < pagesize; ++i)
24101 *(data + i) = rand ();
24102 umask (0);
24103 fd = creat ("conftest.mmap", 0600);
24104 if (fd < 0)
24105 exit (1);
24106 if (write (fd, data, pagesize) != pagesize)
24107 exit (1);
24108 close (fd);
24109
24110 /* Mmap the file as read/write/shared and verify that we see the
24111 same garbage. */
24112 fd = open ("conftest.mmap", O_RDWR);
24113 if (fd < 0)
24114 exit (1);
24115 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24116 if (data2 == 0)
24117 exit (1);
24118 for (i = 0; i < pagesize; ++i)
24119 if (*(data + i) != *(data2 + i))
24120 exit (1);
24121
24122 /* Finally, make sure that changes to the mapped area
24123 percolate back to the file as seen by read(). */
24124 for (i = 0; i < pagesize; ++i)
24125 *(data2 + i) = *(data2 + i) + 1;
24126 data3 = (char *) malloc (pagesize);
24127 if (!data3)
24128 exit (1);
24129 if (read (fd, data3, pagesize) != pagesize)
24130 exit (1);
24131 for (i = 0; i < pagesize; ++i)
24132 if (*(data2 + i) != *(data3 + i))
24133 exit (1);
24134 close (fd);
24135 exit (0);
24136}
24137_ACEOF
24138if ac_fn_c_try_run "$LINENO"; then :
24139 magick_cv_func_mmap_fileio=yes
24140else
24141 magick_cv_func_mmap_fileio=no
24142fi
24143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24144 conftest.$ac_objext conftest.beam conftest.$ac_ext
24145fi
24146
24147fi
24148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24149$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24150if test $magick_cv_func_mmap_fileio = yes; then
24151
24152$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24153
24154fi
24155rm -f conftest.mmap
24156
cristy8b350f62009-11-15 23:12:43 +000024157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024158$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024159if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024160 $as_echo_n "(cached) " >&6
24161else
cristy8b350f62009-11-15 23:12:43 +000024162 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024163 ac_cv_func_closedir_void=yes
24164else
cristy8b350f62009-11-15 23:12:43 +000024165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024166/* end confdefs.h. */
24167$ac_includes_default
24168#include <$ac_header_dirent>
24169#ifndef __cplusplus
24170int closedir ();
24171#endif
24172
24173int
24174main ()
24175{
24176return closedir (opendir (".")) != 0;
24177 ;
24178 return 0;
24179}
24180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024181if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024182 ac_cv_func_closedir_void=no
24183else
cristy8b350f62009-11-15 23:12:43 +000024184 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024185fi
cristy8b350f62009-11-15 23:12:43 +000024186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24187 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024188fi
24189
cristy3ed852e2009-09-05 21:47:34 +000024190fi
cristy8b350f62009-11-15 23:12:43 +000024191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024192$as_echo "$ac_cv_func_closedir_void" >&6; }
24193if test $ac_cv_func_closedir_void = yes; then
24194
cristy8b350f62009-11-15 23:12:43 +000024195$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024196
24197fi
24198
cristycd4c5312009-11-22 01:19:08 +000024199
24200
24201
24202 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024203do :
24204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024205ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24206"
cristy98dddb52010-11-04 00:30:15 +000024207if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024208 cat >>confdefs.h <<_ACEOF
24209#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24210_ACEOF
24211
24212fi
24213
24214done
24215
cristycd4c5312009-11-22 01:19:08 +000024216
24217
24218
24219
24220
24221
24222
cristy3ed852e2009-09-05 21:47:34 +000024223for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024224do :
24225 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024226if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024227 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024228#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024229_ACEOF
24230
24231fi
24232done
24233
cristy8b350f62009-11-15 23:12:43 +000024234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024235$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024236if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024237 $as_echo_n "(cached) " >&6
24238else
cristy8b350f62009-11-15 23:12:43 +000024239 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024240 ac_cv_func_mmap_fixed_mapped=no
24241else
cristy8b350f62009-11-15 23:12:43 +000024242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024243/* end confdefs.h. */
24244$ac_includes_default
24245/* malloc might have been renamed as rpl_malloc. */
24246#undef malloc
24247
24248/* Thanks to Mike Haertel and Jim Avera for this test.
24249 Here is a matrix of mmap possibilities:
24250 mmap private not fixed
24251 mmap private fixed at somewhere currently unmapped
24252 mmap private fixed at somewhere already mapped
24253 mmap shared not fixed
24254 mmap shared fixed at somewhere currently unmapped
24255 mmap shared fixed at somewhere already mapped
24256 For private mappings, we should verify that changes cannot be read()
24257 back from the file, nor mmap's back from the file at a different
24258 address. (There have been systems where private was not correctly
24259 implemented like the infamous i386 svr4.0, and systems where the
24260 VM page cache was not coherent with the file system buffer cache
24261 like early versions of FreeBSD and possibly contemporary NetBSD.)
24262 For shared mappings, we should conversely verify that changes get
24263 propagated back to all the places they're supposed to be.
24264
24265 Grep wants private fixed already mapped.
24266 The main things grep needs to know about mmap are:
24267 * does it exist and is it safe to write into the mmap'd area
24268 * how to use it (BSD variants) */
24269
24270#include <fcntl.h>
24271#include <sys/mman.h>
24272
24273#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24274char *malloc ();
24275#endif
24276
24277/* This mess was copied from the GNU getpagesize.h. */
24278#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024279# ifdef _SC_PAGESIZE
24280# define getpagesize() sysconf(_SC_PAGESIZE)
24281# else /* no _SC_PAGESIZE */
24282# ifdef HAVE_SYS_PARAM_H
24283# include <sys/param.h>
24284# ifdef EXEC_PAGESIZE
24285# define getpagesize() EXEC_PAGESIZE
24286# else /* no EXEC_PAGESIZE */
24287# ifdef NBPG
24288# define getpagesize() NBPG * CLSIZE
24289# ifndef CLSIZE
24290# define CLSIZE 1
24291# endif /* no CLSIZE */
24292# else /* no NBPG */
24293# ifdef NBPC
24294# define getpagesize() NBPC
24295# else /* no NBPC */
24296# ifdef PAGESIZE
24297# define getpagesize() PAGESIZE
24298# endif /* PAGESIZE */
24299# endif /* no NBPC */
24300# endif /* no NBPG */
24301# endif /* no EXEC_PAGESIZE */
24302# else /* no HAVE_SYS_PARAM_H */
24303# define getpagesize() 8192 /* punt totally */
24304# endif /* no HAVE_SYS_PARAM_H */
24305# endif /* no _SC_PAGESIZE */
24306
24307#endif /* no HAVE_GETPAGESIZE */
24308
24309int
24310main ()
24311{
24312 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024313 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024314 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024315 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024316
24317 pagesize = getpagesize ();
24318
24319 /* First, make a file with some known garbage in it. */
24320 data = (char *) malloc (pagesize);
24321 if (!data)
24322 return 1;
24323 for (i = 0; i < pagesize; ++i)
24324 *(data + i) = rand ();
24325 umask (0);
24326 fd = creat ("conftest.mmap", 0600);
24327 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024328 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024329 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024330 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024331 close (fd);
24332
cristycd4c5312009-11-22 01:19:08 +000024333 /* Next, check that the tail of a page is zero-filled. File must have
24334 non-zero length, otherwise we risk SIGBUS for entire page. */
24335 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24336 if (fd2 < 0)
24337 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024338 cdata2 = "";
24339 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024340 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024341 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024342 if (data2 == MAP_FAILED)
24343 return 6;
24344 for (i = 0; i < pagesize; ++i)
24345 if (*(data2 + i))
24346 return 7;
24347 close (fd2);
24348 if (munmap (data2, pagesize))
24349 return 8;
24350
cristy3ed852e2009-09-05 21:47:34 +000024351 /* Next, try to mmap the file at a fixed address which already has
24352 something else allocated at it. If we can, also make sure that
24353 we see the same garbage. */
24354 fd = open ("conftest.mmap", O_RDWR);
24355 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024356 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024357 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24358 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024359 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024360 for (i = 0; i < pagesize; ++i)
24361 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024362 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024363
24364 /* Finally, make sure that changes to the mapped area do not
24365 percolate back to the file as seen by read(). (This is a bug on
24366 some variants of i386 svr4.0.) */
24367 for (i = 0; i < pagesize; ++i)
24368 *(data2 + i) = *(data2 + i) + 1;
24369 data3 = (char *) malloc (pagesize);
24370 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024371 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024372 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024373 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024374 for (i = 0; i < pagesize; ++i)
24375 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024376 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024377 close (fd);
24378 return 0;
24379}
24380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024381if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024382 ac_cv_func_mmap_fixed_mapped=yes
24383else
cristy8b350f62009-11-15 23:12:43 +000024384 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024385fi
cristy8b350f62009-11-15 23:12:43 +000024386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24387 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024388fi
24389
cristy3ed852e2009-09-05 21:47:34 +000024390fi
cristy8b350f62009-11-15 23:12:43 +000024391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024392$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24393if test $ac_cv_func_mmap_fixed_mapped = yes; then
24394
cristy8b350f62009-11-15 23:12:43 +000024395$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024396
24397fi
cristycd4c5312009-11-22 01:19:08 +000024398rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024399
cristy3ed852e2009-09-05 21:47:34 +000024400for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024401do :
24402 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024403if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024404 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024405#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024406_ACEOF
24407
24408fi
24409
24410done
24411
cristy3ed852e2009-09-05 21:47:34 +000024412for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024413do :
24414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24415ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024416if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024417 cat >>confdefs.h <<_ACEOF
24418#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24419_ACEOF
24420
24421fi
24422done
24423
24424if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024426$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024427if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024428 $as_echo_n "(cached) " >&6
24429else
cristy8b350f62009-11-15 23:12:43 +000024430 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024431 ac_cv_func_fork_works=cross
24432else
cristy8b350f62009-11-15 23:12:43 +000024433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024434/* end confdefs.h. */
24435$ac_includes_default
24436int
24437main ()
24438{
24439
24440 /* By Ruediger Kuhlmann. */
24441 return fork () < 0;
24442
24443 ;
24444 return 0;
24445}
24446_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024447if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024448 ac_cv_func_fork_works=yes
24449else
cristy8b350f62009-11-15 23:12:43 +000024450 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024451fi
cristy8b350f62009-11-15 23:12:43 +000024452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24453 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024454fi
24455
cristy3ed852e2009-09-05 21:47:34 +000024456fi
cristy8b350f62009-11-15 23:12:43 +000024457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024458$as_echo "$ac_cv_func_fork_works" >&6; }
24459
24460else
24461 ac_cv_func_fork_works=$ac_cv_func_fork
24462fi
24463if test "x$ac_cv_func_fork_works" = xcross; then
24464 case $host in
24465 *-*-amigaos* | *-*-msdosdjgpp*)
24466 # Override, as these systems have only a dummy fork() stub
24467 ac_cv_func_fork_works=no
24468 ;;
24469 *)
24470 ac_cv_func_fork_works=yes
24471 ;;
24472 esac
cristy8b350f62009-11-15 23:12:43 +000024473 { $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 +000024474$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24475fi
24476ac_cv_func_vfork_works=$ac_cv_func_vfork
24477if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024479$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024480if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024481 $as_echo_n "(cached) " >&6
24482else
cristy8b350f62009-11-15 23:12:43 +000024483 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024484 ac_cv_func_vfork_works=cross
24485else
cristy8b350f62009-11-15 23:12:43 +000024486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024487/* end confdefs.h. */
24488/* Thanks to Paul Eggert for this test. */
24489$ac_includes_default
24490#include <sys/wait.h>
24491#ifdef HAVE_VFORK_H
24492# include <vfork.h>
24493#endif
24494/* On some sparc systems, changes by the child to local and incoming
24495 argument registers are propagated back to the parent. The compiler
24496 is told about this with #include <vfork.h>, but some compilers
24497 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24498 static variable whose address is put into a register that is
24499 clobbered by the vfork. */
24500static void
24501#ifdef __cplusplus
24502sparc_address_test (int arg)
24503# else
24504sparc_address_test (arg) int arg;
24505#endif
24506{
24507 static pid_t child;
24508 if (!child) {
24509 child = vfork ();
24510 if (child < 0) {
24511 perror ("vfork");
24512 _exit(2);
24513 }
24514 if (!child) {
24515 arg = getpid();
24516 write(-1, "", 0);
24517 _exit (arg);
24518 }
24519 }
24520}
24521
24522int
24523main ()
24524{
24525 pid_t parent = getpid ();
24526 pid_t child;
24527
24528 sparc_address_test (0);
24529
24530 child = vfork ();
24531
24532 if (child == 0) {
24533 /* Here is another test for sparc vfork register problems. This
24534 test uses lots of local variables, at least as many local
24535 variables as main has allocated so far including compiler
24536 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24537 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24538 reuse the register of parent for one of the local variables,
24539 since it will think that parent can't possibly be used any more
24540 in this routine. Assigning to the local variable will thus
24541 munge parent in the parent process. */
24542 pid_t
24543 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24544 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24545 /* Convince the compiler that p..p7 are live; otherwise, it might
24546 use the same hardware register for all 8 local variables. */
24547 if (p != p1 || p != p2 || p != p3 || p != p4
24548 || p != p5 || p != p6 || p != p7)
24549 _exit(1);
24550
24551 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24552 from child file descriptors. If the child closes a descriptor
24553 before it execs or exits, this munges the parent's descriptor
24554 as well. Test for this by closing stdout in the child. */
24555 _exit(close(fileno(stdout)) != 0);
24556 } else {
24557 int status;
24558 struct stat st;
24559
24560 while (wait(&status) != child)
24561 ;
24562 return (
24563 /* Was there some problem with vforking? */
24564 child < 0
24565
24566 /* Did the child fail? (This shouldn't happen.) */
24567 || status
24568
24569 /* Did the vfork/compiler bug occur? */
24570 || parent != getpid()
24571
24572 /* Did the file descriptor bug occur? */
24573 || fstat(fileno(stdout), &st) != 0
24574 );
24575 }
24576}
24577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024578if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024579 ac_cv_func_vfork_works=yes
24580else
cristy8b350f62009-11-15 23:12:43 +000024581 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024582fi
cristy8b350f62009-11-15 23:12:43 +000024583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24584 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024585fi
24586
cristy3ed852e2009-09-05 21:47:34 +000024587fi
cristy8b350f62009-11-15 23:12:43 +000024588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024589$as_echo "$ac_cv_func_vfork_works" >&6; }
24590
24591fi;
24592if test "x$ac_cv_func_fork_works" = xcross; then
24593 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024594 { $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 +000024595$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24596fi
24597
24598if test "x$ac_cv_func_vfork_works" = xyes; then
24599
cristy8b350f62009-11-15 23:12:43 +000024600$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024601
24602else
24603
cristy8b350f62009-11-15 23:12:43 +000024604$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024605
24606fi
24607if test "x$ac_cv_func_fork_works" = xyes; then
24608
cristy8b350f62009-11-15 23:12:43 +000024609$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024610
24611fi
24612
cristy8b350f62009-11-15 23:12:43 +000024613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024614$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024615if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024616 $as_echo_n "(cached) " >&6
24617else
cristy8b350f62009-11-15 23:12:43 +000024618 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024619 ac_cv_func_memcmp_working=no
24620else
cristy8b350f62009-11-15 23:12:43 +000024621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024622/* end confdefs.h. */
24623$ac_includes_default
24624int
24625main ()
24626{
24627
24628 /* Some versions of memcmp are not 8-bit clean. */
24629 char c0 = '\100', c1 = '\200', c2 = '\201';
24630 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24631 return 1;
24632
24633 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24634 or more and with at least one buffer not starting on a 4-byte boundary.
24635 William Lewis provided this test program. */
24636 {
24637 char foo[21];
24638 char bar[21];
24639 int i;
24640 for (i = 0; i < 4; i++)
24641 {
24642 char *a = foo + i;
24643 char *b = bar + i;
24644 strcpy (a, "--------01111111");
24645 strcpy (b, "--------10000000");
24646 if (memcmp (a, b, 16) >= 0)
24647 return 1;
24648 }
24649 return 0;
24650 }
24651
24652 ;
24653 return 0;
24654}
24655_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024656if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024657 ac_cv_func_memcmp_working=yes
24658else
cristy8b350f62009-11-15 23:12:43 +000024659 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024660fi
cristy8b350f62009-11-15 23:12:43 +000024661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24662 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024663fi
24664
cristy3ed852e2009-09-05 21:47:34 +000024665fi
cristy8b350f62009-11-15 23:12:43 +000024666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024667$as_echo "$ac_cv_func_memcmp_working" >&6; }
24668test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24669 *" memcmp.$ac_objext "* ) ;;
24670 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24671 ;;
24672esac
24673
24674
cristy3ed852e2009-09-05 21:47:34 +000024675for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024676do :
24677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24678ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024679if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024680 cat >>confdefs.h <<_ACEOF
24681#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24682_ACEOF
24683
24684fi
24685
24686done
24687
cristy8b350f62009-11-15 23:12:43 +000024688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024689$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024690if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024691 $as_echo_n "(cached) " >&6
24692else
24693 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24694 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24695 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024697/* end confdefs.h. */
24698$ac_includes_default
24699#ifdef HAVE_SYS_SELECT_H
24700# include <sys/select.h>
24701#endif
24702#ifdef HAVE_SYS_SOCKET_H
24703# include <sys/socket.h>
24704#endif
24705
24706int
24707main ()
24708{
24709extern int select ($ac_arg1,
24710 $ac_arg234, $ac_arg234, $ac_arg234,
24711 $ac_arg5);
24712 ;
24713 return 0;
24714}
24715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024716if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024717 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024718fi
cristy3ed852e2009-09-05 21:47:34 +000024719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24720 done
24721 done
24722done
24723# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024724: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024725
24726fi
cristy8b350f62009-11-15 23:12:43 +000024727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024728$as_echo "$ac_cv_func_select_args" >&6; }
24729ac_save_IFS=$IFS; IFS=','
24730set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24731IFS=$ac_save_IFS
24732shift
24733
24734cat >>confdefs.h <<_ACEOF
24735#define SELECT_TYPE_ARG1 $1
24736_ACEOF
24737
24738
24739cat >>confdefs.h <<_ACEOF
24740#define SELECT_TYPE_ARG234 ($2)
24741_ACEOF
24742
24743
24744cat >>confdefs.h <<_ACEOF
24745#define SELECT_TYPE_ARG5 ($3)
24746_ACEOF
24747
24748rm -f conftest*
24749
cristyda16f162011-02-19 23:52:17 +000024750if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024751 $as_echo_n "(cached) " >&6
24752else
24753 ac_cv_func_setvbuf_reversed=no
24754fi
24755
24756
cristy8b350f62009-11-15 23:12:43 +000024757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024758$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024759if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024760 $as_echo_n "(cached) " >&6
24761else
cristy8b350f62009-11-15 23:12:43 +000024762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024763/* end confdefs.h. */
24764#include <sys/types.h>
24765#include <signal.h>
24766
24767int
24768main ()
24769{
24770return *(signal (0, 0)) (0) == 1;
24771 ;
24772 return 0;
24773}
24774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024775if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024776 ac_cv_type_signal=int
24777else
cristy8b350f62009-11-15 23:12:43 +000024778 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024779fi
cristy3ed852e2009-09-05 21:47:34 +000024780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24781fi
cristy8b350f62009-11-15 23:12:43 +000024782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024783$as_echo "$ac_cv_type_signal" >&6; }
24784
24785cat >>confdefs.h <<_ACEOF
24786#define RETSIGTYPE $ac_cv_type_signal
24787_ACEOF
24788
24789
cristy8b350f62009-11-15 23:12:43 +000024790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024791$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024792if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024793 $as_echo_n "(cached) " >&6
24794else
cristy8b350f62009-11-15 23:12:43 +000024795 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024796 ac_cv_func_strtod=no
24797else
cristy8b350f62009-11-15 23:12:43 +000024798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024799/* end confdefs.h. */
24800
24801$ac_includes_default
24802#ifndef strtod
24803double strtod ();
24804#endif
24805int
24806main()
24807{
24808 {
24809 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24810 char *string = " +69";
24811 char *term;
24812 double value;
24813 value = strtod (string, &term);
24814 if (value != 69 || term != (string + 4))
24815 return 1;
24816 }
24817
24818 {
24819 /* Under Solaris 2.4, strtod returns the wrong value for the
24820 terminating character under some conditions. */
24821 char *string = "NaN";
24822 char *term;
24823 strtod (string, &term);
24824 if (term != string && *(term - 1) == 0)
24825 return 1;
24826 }
24827 return 0;
24828}
24829
24830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024831if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024832 ac_cv_func_strtod=yes
24833else
cristy8b350f62009-11-15 23:12:43 +000024834 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024835fi
cristy8b350f62009-11-15 23:12:43 +000024836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24837 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024838fi
24839
cristy3ed852e2009-09-05 21:47:34 +000024840fi
cristy8b350f62009-11-15 23:12:43 +000024841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024842$as_echo "$ac_cv_func_strtod" >&6; }
24843if test $ac_cv_func_strtod = no; then
24844 case " $LIBOBJS " in
24845 *" strtod.$ac_objext "* ) ;;
24846 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24847 ;;
24848esac
24849
cristy8b350f62009-11-15 23:12:43 +000024850ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024851if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024852
cristy3ed852e2009-09-05 21:47:34 +000024853fi
24854
cristy3ed852e2009-09-05 21:47:34 +000024855if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024857$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024858if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024859 $as_echo_n "(cached) " >&6
24860else
24861 ac_check_lib_save_LIBS=$LIBS
24862LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024864/* end confdefs.h. */
24865
24866/* Override any GCC internal prototype to avoid an error.
24867 Use char because int might match the return type of a GCC
24868 builtin and then its argument prototype would still apply. */
24869#ifdef __cplusplus
24870extern "C"
24871#endif
24872char pow ();
24873int
24874main ()
24875{
24876return pow ();
24877 ;
24878 return 0;
24879}
24880_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024881if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024882 ac_cv_lib_m_pow=yes
24883else
cristy8b350f62009-11-15 23:12:43 +000024884 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024885fi
cristy8b350f62009-11-15 23:12:43 +000024886rm -f core conftest.err conftest.$ac_objext \
24887 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024888LIBS=$ac_check_lib_save_LIBS
24889fi
cristy8b350f62009-11-15 23:12:43 +000024890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024891$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024892if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024893 POW_LIB=-lm
24894else
cristy8b350f62009-11-15 23:12:43 +000024895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024896$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24897fi
24898
24899fi
24900
24901fi
24902
cristy7d4a1d62011-10-13 15:54:12 +000024903ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24904if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24905 ac_have_decl=1
24906else
24907 ac_have_decl=0
24908fi
24909
24910cat >>confdefs.h <<_ACEOF
24911#define HAVE_DECL_STRERROR_R $ac_have_decl
24912_ACEOF
24913
24914for ac_func in strerror_r
24915do :
24916 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24917if test "x$ac_cv_func_strerror_r" = xyes; then :
24918 cat >>confdefs.h <<_ACEOF
24919#define HAVE_STRERROR_R 1
24920_ACEOF
24921
24922fi
24923done
24924
24925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24926$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24927if ${ac_cv_func_strerror_r_char_p+:} false; then :
24928 $as_echo_n "(cached) " >&6
24929else
24930
24931 ac_cv_func_strerror_r_char_p=no
24932 if test $ac_cv_have_decl_strerror_r = yes; then
24933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24934/* end confdefs.h. */
24935$ac_includes_default
24936int
24937main ()
24938{
24939
24940 char buf[100];
24941 char x = *strerror_r (0, buf, sizeof buf);
24942 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024943 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024944
24945 ;
24946 return 0;
24947}
24948_ACEOF
24949if ac_fn_c_try_compile "$LINENO"; then :
24950 ac_cv_func_strerror_r_char_p=yes
24951fi
24952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24953 else
24954 # strerror_r is not declared. Choose between
24955 # systems that have relatively inaccessible declarations for the
24956 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24957 # former has a strerror_r that returns char*, while the latter
24958 # has a strerror_r that returns `int'.
24959 # This test should segfault on the DEC system.
24960 if test "$cross_compiling" = yes; then :
24961 :
24962else
24963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24964/* end confdefs.h. */
24965$ac_includes_default
24966 extern char *strerror_r ();
24967int
24968main ()
24969{
24970char buf[100];
24971 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024972 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024973 ;
24974 return 0;
24975}
24976_ACEOF
24977if ac_fn_c_try_run "$LINENO"; then :
24978 ac_cv_func_strerror_r_char_p=yes
24979fi
24980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24981 conftest.$ac_objext conftest.beam conftest.$ac_ext
24982fi
24983
24984 fi
24985
24986fi
24987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24988$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24989if test $ac_cv_func_strerror_r_char_p = yes; then
24990
24991$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24992
24993fi
24994
cristy3ed852e2009-09-05 21:47:34 +000024995for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024996do :
24997 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024998if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024999 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025000#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025001_ACEOF
25002
cristy8b350f62009-11-15 23:12:43 +000025003ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025004if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025005
cristy8b350f62009-11-15 23:12:43 +000025006$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025007
25008fi
25009
25010fi
25011done
25012
25013
25014
cristy161b9262010-03-20 19:34:32 +000025015#
25016# Find math library
25017#
25018MATH_LIBS=''
25019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25020$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025021if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025022 $as_echo_n "(cached) " >&6
25023else
25024 ac_check_lib_save_LIBS=$LIBS
25025LIBS="-lm $LIBS"
25026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25027/* end confdefs.h. */
25028
25029/* Override any GCC internal prototype to avoid an error.
25030 Use char because int might match the return type of a GCC
25031 builtin and then its argument prototype would still apply. */
25032#ifdef __cplusplus
25033extern "C"
25034#endif
25035char sqrt ();
25036int
25037main ()
25038{
25039return sqrt ();
25040 ;
25041 return 0;
25042}
25043_ACEOF
25044if ac_fn_c_try_link "$LINENO"; then :
25045 ac_cv_lib_m_sqrt=yes
25046else
25047 ac_cv_lib_m_sqrt=no
25048fi
25049rm -f core conftest.err conftest.$ac_objext \
25050 conftest$ac_exeext conftest.$ac_ext
25051LIBS=$ac_check_lib_save_LIBS
25052fi
25053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25054$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025055if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025056 MATH_LIBS="-lm"
25057fi
25058
25059LIBS="$MATH_LIBS $LIBS"
25060
25061
cristy85572162013-01-04 19:19:32 +000025062#
25063# Find socket library
25064#
cristy8a5d7f42013-01-06 15:24:33 +000025065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25066$as_echo_n "checking for library containing gethostbyname... " >&6; }
25067if ${ac_cv_search_gethostbyname+:} false; then :
25068 $as_echo_n "(cached) " >&6
25069else
25070 ac_func_search_save_LIBS=$LIBS
25071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25072/* end confdefs.h. */
25073
25074/* Override any GCC internal prototype to avoid an error.
25075 Use char because int might match the return type of a GCC
25076 builtin and then its argument prototype would still apply. */
25077#ifdef __cplusplus
25078extern "C"
25079#endif
25080char gethostbyname ();
25081int
25082main ()
25083{
25084return gethostbyname ();
25085 ;
25086 return 0;
25087}
25088_ACEOF
25089for ac_lib in '' resolv nsl; do
25090 if test -z "$ac_lib"; then
25091 ac_res="none required"
25092 else
25093 ac_res=-l$ac_lib
25094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25095 fi
25096 if ac_fn_c_try_link "$LINENO"; then :
25097 ac_cv_search_gethostbyname=$ac_res
25098fi
25099rm -f core conftest.err conftest.$ac_objext \
25100 conftest$ac_exeext
25101 if ${ac_cv_search_gethostbyname+:} false; then :
25102 break
25103fi
25104done
25105if ${ac_cv_search_gethostbyname+:} false; then :
25106
25107else
25108 ac_cv_search_gethostbyname=no
25109fi
25110rm conftest.$ac_ext
25111LIBS=$ac_func_search_save_LIBS
25112fi
25113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25114$as_echo "$ac_cv_search_gethostbyname" >&6; }
25115ac_res=$ac_cv_search_gethostbyname
25116if test "$ac_res" != no; then :
25117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25118
25119fi
25120
cristy85572162013-01-04 19:19:32 +000025121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25122$as_echo_n "checking for library containing socket... " >&6; }
25123if ${ac_cv_search_socket+:} false; then :
25124 $as_echo_n "(cached) " >&6
25125else
25126 ac_func_search_save_LIBS=$LIBS
25127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25128/* end confdefs.h. */
25129
25130/* Override any GCC internal prototype to avoid an error.
25131 Use char because int might match the return type of a GCC
25132 builtin and then its argument prototype would still apply. */
25133#ifdef __cplusplus
25134extern "C"
25135#endif
25136char socket ();
25137int
25138main ()
25139{
25140return socket ();
25141 ;
25142 return 0;
25143}
25144_ACEOF
25145for ac_lib in '' socket; do
25146 if test -z "$ac_lib"; then
25147 ac_res="none required"
25148 else
25149 ac_res=-l$ac_lib
25150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25151 fi
25152 if ac_fn_c_try_link "$LINENO"; then :
25153 ac_cv_search_socket=$ac_res
25154fi
25155rm -f core conftest.err conftest.$ac_objext \
25156 conftest$ac_exeext
25157 if ${ac_cv_search_socket+:} false; then :
25158 break
25159fi
25160done
25161if ${ac_cv_search_socket+:} false; then :
25162
25163else
25164 ac_cv_search_socket=no
25165fi
25166rm conftest.$ac_ext
25167LIBS=$ac_func_search_save_LIBS
25168fi
25169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25170$as_echo "$ac_cv_search_socket" >&6; }
25171ac_res=$ac_cv_search_socket
25172if test "$ac_res" != no; then :
25173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25174
cristy85572162013-01-04 19:19:32 +000025175
cristy8a5d7f42013-01-06 15:24:33 +000025176$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025177
cristy03f187e2013-01-24 00:22:19 +000025178 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025179
25180fi
25181
25182
25183for 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 +000025184do :
25185 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25186ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025187if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025188 cat >>confdefs.h <<_ACEOF
25189#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25190_ACEOF
25191
25192fi
25193done
25194
25195
cristye43a45e2009-09-28 14:49:00 +000025196#
25197# Check for clock_gettime().
25198#
cristy8b350f62009-11-15 23:12:43 +000025199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025200$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025201if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025202 $as_echo_n "(cached) " >&6
25203else
25204 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025206/* end confdefs.h. */
25207
25208/* Override any GCC internal prototype to avoid an error.
25209 Use char because int might match the return type of a GCC
25210 builtin and then its argument prototype would still apply. */
25211#ifdef __cplusplus
25212extern "C"
25213#endif
25214char clock_gettime ();
25215int
25216main ()
25217{
25218return clock_gettime ();
25219 ;
25220 return 0;
25221}
25222_ACEOF
25223for ac_lib in '' rt; do
25224 if test -z "$ac_lib"; then
25225 ac_res="none required"
25226 else
25227 ac_res=-l$ac_lib
25228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25229 fi
cristy8b350f62009-11-15 23:12:43 +000025230 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025231 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025232fi
cristy8b350f62009-11-15 23:12:43 +000025233rm -f core conftest.err conftest.$ac_objext \
25234 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025235 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025236 break
25237fi
25238done
cristyda16f162011-02-19 23:52:17 +000025239if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025240
cristye43a45e2009-09-28 14:49:00 +000025241else
25242 ac_cv_search_clock_gettime=no
25243fi
25244rm conftest.$ac_ext
25245LIBS=$ac_func_search_save_LIBS
25246fi
cristy8b350f62009-11-15 23:12:43 +000025247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025248$as_echo "$ac_cv_search_clock_gettime" >&6; }
25249ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025250if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25252
25253
cristy8b350f62009-11-15 23:12:43 +000025254$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025255
cristy8b350f62009-11-15 23:12:43 +000025256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025257$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025259/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025260
25261 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025262int
25263main ()
25264{
25265clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025266 ;
25267 return 0;
25268}
25269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025270if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025271
cristyad38abe2012-12-23 23:03:21 +000025272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25273$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025274
cristy8b350f62009-11-15 23:12:43 +000025275$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025276
25277
25278else
cristyad38abe2012-12-23 23:03:21 +000025279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25280$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025281
25282fi
cristye43a45e2009-09-28 14:49:00 +000025283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25284
25285else
25286
cristy8b350f62009-11-15 23:12:43 +000025287 for ac_func in gettimeofday ftime
25288do :
25289 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25290ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025291if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025292 cat >>confdefs.h <<_ACEOF
25293#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25294_ACEOF
25295 break
25296fi
25297done
25298
25299
25300
25301fi
25302
25303
cristy3ed852e2009-09-05 21:47:34 +000025304########
25305#
25306# Check for function prototypes
25307#
25308########
25309
cristy8b350f62009-11-15 23:12:43 +000025310ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025311#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025312"
cristyda16f162011-02-19 23:52:17 +000025313if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025314 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025315else
cristy8b350f62009-11-15 23:12:43 +000025316 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025317fi
25318
cristy3ed852e2009-09-05 21:47:34 +000025319cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025320#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025321_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025322ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025323#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025324"
cristyda16f162011-02-19 23:52:17 +000025325if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025326 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025327else
cristy8b350f62009-11-15 23:12:43 +000025328 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025329fi
25330
cristy3ed852e2009-09-05 21:47:34 +000025331cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025332#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025333_ACEOF
25334
25335
cristy8b350f62009-11-15 23:12:43 +000025336ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025337#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025338"
cristyda16f162011-02-19 23:52:17 +000025339if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025340 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025341else
cristy8b350f62009-11-15 23:12:43 +000025342 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025343fi
25344
cristy3ed852e2009-09-05 21:47:34 +000025345cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025346#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025347_ACEOF
25348
25349
cristy8b350f62009-11-15 23:12:43 +000025350ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025351#include <stdio.h>
25352#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025353"
cristyda16f162011-02-19 23:52:17 +000025354if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025355 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025356else
cristy8b350f62009-11-15 23:12:43 +000025357 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025358fi
25359
cristy3ed852e2009-09-05 21:47:34 +000025360cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025361#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025362_ACEOF
25363
25364
cristy3ed852e2009-09-05 21:47:34 +000025365########
25366#
25367# C++ Support Tests (For Magick++)
25368#
25369########
25370have_magick_plus_plus='no'
25371if test "$with_magick_plus_plus" = 'yes'; then
25372 OLIBS="$LIBS"
25373 LIBS=''
25374 ac_ext=cpp
25375ac_cpp='$CXXCPP $CPPFLAGS'
25376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25379
25380
25381 # Full set of headers used...
25382 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25383 # functional iomanip iosfwd iostream iterator list string strstream utility
25384 ac_ext=cpp
25385ac_cpp='$CXXCPP $CPPFLAGS'
25386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25389
25390 ac_ext=cpp
25391ac_cpp='$CXXCPP $CPPFLAGS'
25392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25395if test -z "$CXX"; then
25396 if test -n "$CCC"; then
25397 CXX=$CCC
25398 else
25399 if test -n "$ac_tool_prefix"; then
25400 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25401 do
25402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25403set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025405$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025406if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025407 $as_echo_n "(cached) " >&6
25408else
25409 if test -n "$CXX"; then
25410 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25411else
25412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25413for as_dir in $PATH
25414do
25415 IFS=$as_save_IFS
25416 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025417 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025419 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025421 break 2
25422 fi
25423done
cristy8b350f62009-11-15 23:12:43 +000025424 done
cristy3ed852e2009-09-05 21:47:34 +000025425IFS=$as_save_IFS
25426
25427fi
25428fi
25429CXX=$ac_cv_prog_CXX
25430if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025432$as_echo "$CXX" >&6; }
25433else
cristy8b350f62009-11-15 23:12:43 +000025434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025435$as_echo "no" >&6; }
25436fi
25437
25438
25439 test -n "$CXX" && break
25440 done
25441fi
25442if test -z "$CXX"; then
25443 ac_ct_CXX=$CXX
25444 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25445do
25446 # Extract the first word of "$ac_prog", so it can be a program name with args.
25447set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025449$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025450if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025451 $as_echo_n "(cached) " >&6
25452else
25453 if test -n "$ac_ct_CXX"; then
25454 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25455else
25456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25457for as_dir in $PATH
25458do
25459 IFS=$as_save_IFS
25460 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025461 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025463 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025465 break 2
25466 fi
25467done
cristy8b350f62009-11-15 23:12:43 +000025468 done
cristy3ed852e2009-09-05 21:47:34 +000025469IFS=$as_save_IFS
25470
25471fi
25472fi
25473ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25474if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025476$as_echo "$ac_ct_CXX" >&6; }
25477else
cristy8b350f62009-11-15 23:12:43 +000025478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025479$as_echo "no" >&6; }
25480fi
25481
25482
25483 test -n "$ac_ct_CXX" && break
25484done
25485
25486 if test "x$ac_ct_CXX" = x; then
25487 CXX="g++"
25488 else
25489 case $cross_compiling:$ac_tool_warned in
25490yes:)
cristy8b350f62009-11-15 23:12:43 +000025491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25493ac_tool_warned=yes ;;
25494esac
25495 CXX=$ac_ct_CXX
25496 fi
25497fi
25498
25499 fi
25500fi
25501# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025502$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025503set X $ac_compile
25504ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025505for ac_option in --version -v -V -qversion; do
25506 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025507case "(($ac_try" in
25508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25509 *) ac_try_echo=$ac_try;;
25510esac
cristy8b350f62009-11-15 23:12:43 +000025511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25512$as_echo "$ac_try_echo"; } >&5
25513 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025514 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025515 if test -s conftest.err; then
25516 sed '10a\
25517... rest of stderr output deleted ...
25518 10q' conftest.err >conftest.er1
25519 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025520 fi
cristycd4c5312009-11-22 01:19:08 +000025521 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25523 test $ac_status = 0; }
25524done
cristy3ed852e2009-09-05 21:47:34 +000025525
cristy8b350f62009-11-15 23:12:43 +000025526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025527$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025528if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025529 $as_echo_n "(cached) " >&6
25530else
cristy8b350f62009-11-15 23:12:43 +000025531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025532/* end confdefs.h. */
25533
25534int
25535main ()
25536{
25537#ifndef __GNUC__
25538 choke me
25539#endif
25540
25541 ;
25542 return 0;
25543}
25544_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025545if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025546 ac_compiler_gnu=yes
25547else
cristy8b350f62009-11-15 23:12:43 +000025548 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025549fi
cristy3ed852e2009-09-05 21:47:34 +000025550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25551ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25552
25553fi
cristy8b350f62009-11-15 23:12:43 +000025554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025555$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25556if test $ac_compiler_gnu = yes; then
25557 GXX=yes
25558else
25559 GXX=
25560fi
25561ac_test_CXXFLAGS=${CXXFLAGS+set}
25562ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025564$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025565if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025566 $as_echo_n "(cached) " >&6
25567else
25568 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25569 ac_cxx_werror_flag=yes
25570 ac_cv_prog_cxx_g=no
25571 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025573/* end confdefs.h. */
25574
25575int
25576main ()
25577{
25578
25579 ;
25580 return 0;
25581}
25582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025583if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025584 ac_cv_prog_cxx_g=yes
25585else
cristy8b350f62009-11-15 23:12:43 +000025586 CXXFLAGS=""
25587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025588/* end confdefs.h. */
25589
25590int
25591main ()
25592{
25593
25594 ;
25595 return 0;
25596}
25597_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025598if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025599
cristy8b350f62009-11-15 23:12:43 +000025600else
25601 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025602 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025604/* end confdefs.h. */
25605
25606int
25607main ()
25608{
25609
25610 ;
25611 return 0;
25612}
25613_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025614if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025615 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025616fi
cristy3ed852e2009-09-05 21:47:34 +000025617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25618fi
cristy3ed852e2009-09-05 21:47:34 +000025619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25620fi
cristy3ed852e2009-09-05 21:47:34 +000025621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25622 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25623fi
cristy8b350f62009-11-15 23:12:43 +000025624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025625$as_echo "$ac_cv_prog_cxx_g" >&6; }
25626if test "$ac_test_CXXFLAGS" = set; then
25627 CXXFLAGS=$ac_save_CXXFLAGS
25628elif test $ac_cv_prog_cxx_g = yes; then
25629 if test "$GXX" = yes; then
25630 CXXFLAGS="-g -O2"
25631 else
25632 CXXFLAGS="-g"
25633 fi
25634else
25635 if test "$GXX" = yes; then
25636 CXXFLAGS="-O2"
25637 else
25638 CXXFLAGS=
25639 fi
25640fi
25641ac_ext=cpp
25642ac_cpp='$CXXCPP $CPPFLAGS'
25643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25646
cristy73bd4a52010-10-05 11:24:23 +000025647depcc="$CXX" am_compiler_list=
25648
25649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25650$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025651if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025652 $as_echo_n "(cached) " >&6
25653else
25654 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25655 # We make a subdir and do the tests there. Otherwise we can end up
25656 # making bogus files that we don't know about and never remove. For
25657 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025658 # making a dummy file named 'D' -- because '-MD' means "put the output
25659 # in D".
cristy7247bba2012-02-05 16:37:27 +000025660 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025661 mkdir conftest.dir
25662 # Copy depcomp to subdir because otherwise we won't find it if we're
25663 # using a relative directory.
25664 cp "$am_depcomp" conftest.dir
25665 cd conftest.dir
25666 # We will build objects and dependencies in a subdirectory because
25667 # it helps to detect inapplicable dependency modes. For instance
25668 # both Tru64's cc and ICC support -MD to output dependencies as a
25669 # side effect of compilation, but ICC will put the dependencies in
25670 # the current directory while Tru64 will put them in the object
25671 # directory.
25672 mkdir sub
25673
25674 am_cv_CXX_dependencies_compiler_type=none
25675 if test "$am_compiler_list" = ""; then
25676 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25677 fi
25678 am__universal=false
25679 case " $depcc " in #(
25680 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25681 esac
25682
25683 for depmode in $am_compiler_list; do
25684 # Setup a source with many dependencies, because some compilers
25685 # like to wrap large dependency lists on column 80 (with \), and
25686 # we should not choose a depcomp mode which is confused by this.
25687 #
25688 # We need to recreate these files for each test, as the compiler may
25689 # overwrite some of them when testing with obscure command lines.
25690 # This happens at least with the AIX C compiler.
25691 : > sub/conftest.c
25692 for i in 1 2 3 4 5 6; do
25693 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025694 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25695 # Solaris 10 /bin/sh.
25696 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025697 done
25698 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25699
cristyc0890a62012-07-19 00:18:20 +000025700 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025701 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025702 # handle '-M -o', and we need to detect this. Also, some Intel
25703 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025704 am__obj=sub/conftest.${OBJEXT-o}
25705 am__minus_obj="-o $am__obj"
25706 case $depmode in
25707 gcc)
25708 # This depmode causes a compiler race in universal mode.
25709 test "$am__universal" = false || continue
25710 ;;
25711 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025712 # After this tag, mechanisms are not by side-effect, so they'll
25713 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025714 if test "x$enable_dependency_tracking" = xyes; then
25715 continue
25716 else
25717 break
25718 fi
25719 ;;
cristy7247bba2012-02-05 16:37:27 +000025720 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025721 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025722 # not run yet. These depmodes are late enough in the game, and
25723 # so weak that their functioning should not be impacted.
25724 am__obj=conftest.${OBJEXT-o}
25725 am__minus_obj=
25726 ;;
25727 none) break ;;
25728 esac
25729 if depmode=$depmode \
25730 source=sub/conftest.c object=$am__obj \
25731 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25732 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25733 >/dev/null 2>conftest.err &&
25734 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25735 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25736 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25737 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25738 # icc doesn't choke on unknown options, it will just issue warnings
25739 # or remarks (even with -Werror). So we grep stderr for any message
25740 # that says an option was ignored or not supported.
25741 # When given -MP, icc 7.0 and 7.1 complain thusly:
25742 # icc: Command line warning: ignoring option '-M'; no argument required
25743 # The diagnosis changed in icc 8.0:
25744 # icc: Command line remark: option '-MP' not supported
25745 if (grep 'ignoring option' conftest.err ||
25746 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25747 am_cv_CXX_dependencies_compiler_type=$depmode
25748 break
25749 fi
25750 fi
25751 done
25752
25753 cd ..
25754 rm -rf conftest.dir
25755else
25756 am_cv_CXX_dependencies_compiler_type=none
25757fi
25758
25759fi
25760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25761$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25762CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25763
25764 if
25765 test "x$enable_dependency_tracking" != xno \
25766 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25767 am__fastdepCXX_TRUE=
25768 am__fastdepCXX_FALSE='#'
25769else
25770 am__fastdepCXX_TRUE='#'
25771 am__fastdepCXX_FALSE=
25772fi
25773
25774
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25776$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025777if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025778 $as_echo_n "(cached) " >&6
25779else
25780
25781 ac_ext=cpp
25782ac_cpp='$CXXCPP $CPPFLAGS'
25783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25786
25787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25788/* end confdefs.h. */
25789
25790int f(int x){return 1;}
25791int f(char x){return 1;}
25792int f(bool x){return 1;}
25793
25794int
25795main ()
25796{
25797bool b = true; return f(b);
25798 ;
25799 return 0;
25800}
25801_ACEOF
25802if ac_fn_cxx_try_compile "$LINENO"; then :
25803 ax_cv_cxx_bool=yes
25804else
25805 ax_cv_cxx_bool=no
25806fi
25807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25808 ac_ext=cpp
25809ac_cpp='$CXXCPP $CPPFLAGS'
25810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25813
25814
25815fi
25816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25817$as_echo "$ax_cv_cxx_bool" >&6; }
25818if test "$ax_cv_cxx_bool" = yes; then
25819
25820$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25821
25822fi
25823
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25825$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025826if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025827 $as_echo_n "(cached) " >&6
25828else
25829
25830 ac_ext=cpp
25831ac_cpp='$CXXCPP $CPPFLAGS'
25832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25835
25836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25837/* end confdefs.h. */
25838namespace Outer { namespace Inner { int i = 0; }}
25839int
25840main ()
25841{
25842using namespace Outer::Inner; return i;
25843 ;
25844 return 0;
25845}
25846_ACEOF
25847if ac_fn_cxx_try_compile "$LINENO"; then :
25848 ax_cv_cxx_namespaces=yes
25849else
25850 ax_cv_cxx_namespaces=no
25851fi
25852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25853 ac_ext=cpp
25854ac_cpp='$CXXCPP $CPPFLAGS'
25855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25858
25859
25860fi
25861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25862$as_echo "$ax_cv_cxx_namespaces" >&6; }
25863if test "$ax_cv_cxx_namespaces" = yes; then
25864
25865$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25866
25867fi
25868
25869
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25871$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025872if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025873 $as_echo_n "(cached) " >&6
25874else
25875
25876 ac_ext=cpp
25877ac_cpp='$CXXCPP $CPPFLAGS'
25878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25881
25882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25883/* end confdefs.h. */
25884#include <iostream>
25885 std::istream& is = std::cin;
25886int
25887main ()
25888{
25889
25890 ;
25891 return 0;
25892}
25893_ACEOF
25894if ac_fn_cxx_try_compile "$LINENO"; then :
25895 ax_cv_cxx_have_std_namespace=yes
25896else
25897 ax_cv_cxx_have_std_namespace=no
25898fi
25899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25900 ac_ext=cpp
25901ac_cpp='$CXXCPP $CPPFLAGS'
25902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25905
25906
25907fi
25908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25909$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25910 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25911
25912$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25913
25914 fi
25915
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25917$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025918if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025919 $as_echo_n "(cached) " >&6
25920else
25921
25922
25923 ac_ext=cpp
25924ac_cpp='$CXXCPP $CPPFLAGS'
25925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25928
25929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25930/* end confdefs.h. */
25931#include <iostream>
25932#include <map>
25933#include <iomanip>
25934#include <cmath>
25935#ifdef HAVE_NAMESPACES
25936using namespace std;
25937#endif
25938int
25939main ()
25940{
25941return 0;
25942 ;
25943 return 0;
25944}
25945_ACEOF
25946if ac_fn_cxx_try_compile "$LINENO"; then :
25947 ac_cv_cxx_have_std_libs=yes
25948else
25949 ac_cv_cxx_have_std_libs=no
25950fi
25951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25952 ac_ext=cpp
25953ac_cpp='$CXXCPP $CPPFLAGS'
25954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25957
25958
25959fi
25960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25961$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25962if test "$ac_cv_cxx_have_std_libs" = yes; then
25963
25964$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25965
25966fi
25967
cristy3ed852e2009-09-05 21:47:34 +000025968
25969 OPENMP_CXXFLAGS=
25970 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025971if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025972 enableval=$enable_openmp;
25973fi
25974
25975 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25977$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025978if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025979 $as_echo_n "(cached) " >&6
25980else
cristy8b350f62009-11-15 23:12:43 +000025981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25982/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025983
25984#ifndef _OPENMP
25985 choke me
25986#endif
25987#include <omp.h>
25988int main () { return omp_get_num_threads (); }
25989
25990_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025991if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025992 ac_cv_prog_cxx_openmp='none needed'
25993else
cristy8b350f62009-11-15 23:12:43 +000025994 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025995 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25996 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025997 ac_save_CXXFLAGS=$CXXFLAGS
25998 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26000/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026001
26002#ifndef _OPENMP
26003 choke me
26004#endif
26005#include <omp.h>
26006int main () { return omp_get_num_threads (); }
26007
26008_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026009if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026010 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026011fi
cristy8b350f62009-11-15 23:12:43 +000026012rm -f core conftest.err conftest.$ac_objext \
26013 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026014 CXXFLAGS=$ac_save_CXXFLAGS
26015 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26016 break
26017 fi
26018 done
26019fi
cristy8b350f62009-11-15 23:12:43 +000026020rm -f core conftest.err conftest.$ac_objext \
26021 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026022fi
cristy8b350f62009-11-15 23:12:43 +000026023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026024$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26025 case $ac_cv_prog_cxx_openmp in #(
26026 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026027 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026028 *)
cristy8b350f62009-11-15 23:12:43 +000026029 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026030 esac
26031 fi
26032
26033
26034 ac_ext=c
26035ac_cpp='$CPP $CPPFLAGS'
26036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26038ac_compiler_gnu=$ac_cv_c_compiler_gnu
26039
26040
cristy8b350f62009-11-15 23:12:43 +000026041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026042$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26043 if \
cristy964cb7f2010-04-25 23:18:00 +000026044 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026045 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026046 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026047 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026048 have_magick_plus_plus='yes'
26049 else
26050 have_magick_plus_plus='no (failed tests)'
26051 fi
cristyad38abe2012-12-23 23:03:21 +000026052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26053$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026054 LIBS="$OLIBS"
26055fi
cristy73bd4a52010-10-05 11:24:23 +000026056 if test "$have_magick_plus_plus" = 'yes'; then
26057 WITH_MAGICK_PLUS_PLUS_TRUE=
26058 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26059else
26060 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26061 WITH_MAGICK_PLUS_PLUS_FALSE=
26062fi
26063
cristy3ed852e2009-09-05 21:47:34 +000026064
26065# Only check for delegate libraries in subdirectories if requested.
26066if test "$enable_delegate_build" != 'no'; then
26067 # Check for delegate sub-directories and add -I & -L options as required.
26068 # This presumes that delegates are installed as detailed in the ImageMagick
26069 # README. If delegates are installed in a standard location where the
26070 # compiler will automatically find them then these options should not be
26071 # required.
26072
26073 #
26074 # Most delegates have includes in the same directory as the library, but not all...
26075 #
26076 # Includes
cristy2542fc62011-12-06 17:50:25 +000026077 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 +000026078 if test -d "$builddir/$dir"; then
26079 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26080 else
26081 if test -d "$srcdirfull/$dir"; then
26082 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26083 fi
26084 fi
26085 done
26086
26087 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026088 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 +000026089 if test -d "$builddir/$dir/.libs"; then
26090 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26091 else
26092 if test -d "$srcdirfull/$dir/.libs"; then
26093 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26094 fi
26095 fi
26096 if test -d "$builddir/$dir"; then
26097 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26098 else
26099 if test -d "$srcdirfull/$dir"; then
26100 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26101 fi
26102 fi
26103 done
26104fi
26105
26106# Assume that delegate headers reside under same directory as ImageMagick
26107# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026108MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026109
26110#
26111# Find the X11 RGB database
26112#
cristy8b350f62009-11-15 23:12:43 +000026113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026114$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026115if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026116 $as_echo_n "(cached) " >&6
26117else
26118 # Look for the header file in a standard set of common directories.
26119# Check X11 before X11Rn because it is often a symlink to the current release.
26120 for ac_dir in \
26121 /lib/usr/lib/X11 \
26122 /usr/X11/lib \
26123 /usr/X11R4/lib \
26124 /usr/X11R5/lib \
26125 /usr/X11R6/lib \
26126 /usr/X11R7/lib \
26127 /usr/X386/lib \
26128 /usr/XFree86/lib/X11 \
26129 /usr/athena/lib \
26130 /usr/lib \
26131 /usr/lib/X11 \
26132 /usr/lib/X11R4 \
26133 /usr/lib/X11R5 \
26134 /usr/lib/X11R6 \
26135 /usr/lib/X11R7 \
26136 /usr/local/X11/lib \
26137 /usr/local/X11R4/lib \
26138 /usr/local/X11R5/lib \
26139 /usr/local/X11R6/lib \
26140 /usr/local/lib \
26141 /usr/local/lib/X11 \
26142 /usr/local/lib/X11R4 \
26143 /usr/local/lib/X11R5 \
26144 /usr/local/lib/X11R6 \
26145 /usr/local/lib/X11R7 \
26146 /usr/local/x11r5/lib \
26147 /usr/lpp/Xamples/lib \
26148 /usr/openwin/lib \
26149 /usr/openwin/share/lib \
26150 /usr/unsupported/lib \
26151 /usr/x386/lib \
26152 ; do
26153 if test -f "$ac_dir/X11/rgb.txt"; then
26154 im_cv_x_configure="$ac_dir/X11/"
26155 break
26156 elif test -f "$ac_dir/rgb.txt"; then
26157 im_cv_x_configure="$ac_dir/"
26158 break
26159 fi
26160
26161 done
26162fi
cristy8b350f62009-11-15 23:12:43 +000026163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026164$as_echo "$im_cv_x_configure" >&6; }
26165X11_CONFIGURE_PATH="$im_cv_x_configure"
26166case "${build_os}" in
26167 mingw* )
26168 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26169 ;;
26170esac
26171
26172cat >>confdefs.h <<_ACEOF
26173#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26174_ACEOF
26175
26176
26177#
26178# Find OpenMP library
26179#
26180GOMP_LIBS=''
26181if test "$enable_openmp" != 'no'; then
26182 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026183 # Open64 (passes for GCC but uses different OpenMP implementation)
26184 if test "x$GOMP_LIBS" = x ; then
26185 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26187$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26188if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26189 $as_echo_n "(cached) " >&6
26190else
26191 ac_check_lib_save_LIBS=$LIBS
26192LIBS="-lopenmp $LIBS"
26193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26194/* end confdefs.h. */
26195
26196/* Override any GCC internal prototype to avoid an error.
26197 Use char because int might match the return type of a GCC
26198 builtin and then its argument prototype would still apply. */
26199#ifdef __cplusplus
26200extern "C"
26201#endif
26202char omp_get_num_procs ();
26203int
26204main ()
26205{
26206return omp_get_num_procs ();
26207 ;
26208 return 0;
26209}
26210_ACEOF
26211if ac_fn_c_try_link "$LINENO"; then :
26212 ac_cv_lib_openmp_omp_get_num_procs=yes
26213else
26214 ac_cv_lib_openmp_omp_get_num_procs=no
26215fi
26216rm -f core conftest.err conftest.$ac_objext \
26217 conftest$ac_exeext conftest.$ac_ext
26218LIBS=$ac_check_lib_save_LIBS
26219fi
26220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26221$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26222if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26223 GOMP_LIBS="-lopenmp"
26224fi
26225
26226 fi
26227 fi
26228 # GCC
26229 if test "x$GOMP_LIBS" = x ; then
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026231$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026232if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026233 $as_echo_n "(cached) " >&6
26234else
26235 ac_check_lib_save_LIBS=$LIBS
26236LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026238/* end confdefs.h. */
26239
26240/* Override any GCC internal prototype to avoid an error.
26241 Use char because int might match the return type of a GCC
26242 builtin and then its argument prototype would still apply. */
26243#ifdef __cplusplus
26244extern "C"
26245#endif
26246char GOMP_parallel_start ();
26247int
26248main ()
26249{
26250return GOMP_parallel_start ();
26251 ;
26252 return 0;
26253}
26254_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026255if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026256 ac_cv_lib_gomp_GOMP_parallel_start=yes
26257else
cristy8b350f62009-11-15 23:12:43 +000026258 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026259fi
cristy8b350f62009-11-15 23:12:43 +000026260rm -f core conftest.err conftest.$ac_objext \
26261 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026262LIBS=$ac_check_lib_save_LIBS
26263fi
cristy8b350f62009-11-15 23:12:43 +000026264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026265$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026266if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026267 GOMP_LIBS="-lgomp"
26268fi
cristy18307f12011-12-30 01:20:16 +000026269
26270 fi
cristy3ed852e2009-09-05 21:47:34 +000026271 else
cristy18307f12011-12-30 01:20:16 +000026272 # Sun CC
26273 if test "x$GOMP_LIBS" = x ; then
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026275$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026276if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026277 $as_echo_n "(cached) " >&6
26278else
26279 ac_check_lib_save_LIBS=$LIBS
26280LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026282/* end confdefs.h. */
26283
26284/* Override any GCC internal prototype to avoid an error.
26285 Use char because int might match the return type of a GCC
26286 builtin and then its argument prototype would still apply. */
26287#ifdef __cplusplus
26288extern "C"
26289#endif
26290char sunw_mp_register_warn ();
26291int
26292main ()
26293{
26294return sunw_mp_register_warn ();
26295 ;
26296 return 0;
26297}
26298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026299if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026300 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26301else
cristy8b350f62009-11-15 23:12:43 +000026302 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026303fi
cristy8b350f62009-11-15 23:12:43 +000026304rm -f core conftest.err conftest.$ac_objext \
26305 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026306LIBS=$ac_check_lib_save_LIBS
26307fi
cristy8b350f62009-11-15 23:12:43 +000026308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026309$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026310if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026311 GOMP_LIBS="-lmtsk"
26312fi
cristy18307f12011-12-30 01:20:16 +000026313
26314 fi
26315 # AIX xlc
26316 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026318$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026319if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026320 $as_echo_n "(cached) " >&6
26321else
26322 ac_check_lib_save_LIBS=$LIBS
26323LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026325/* end confdefs.h. */
26326
26327/* Override any GCC internal prototype to avoid an error.
26328 Use char because int might match the return type of a GCC
26329 builtin and then its argument prototype would still apply. */
26330#ifdef __cplusplus
26331extern "C"
26332#endif
26333char _xlsmpFlush ();
26334int
26335main ()
26336{
26337return _xlsmpFlush ();
26338 ;
26339 return 0;
26340}
26341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026342if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026343 ac_cv_lib_xlsmp__xlsmpFlush=yes
26344else
cristy8b350f62009-11-15 23:12:43 +000026345 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026346fi
cristy8b350f62009-11-15 23:12:43 +000026347rm -f core conftest.err conftest.$ac_objext \
26348 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026349LIBS=$ac_check_lib_save_LIBS
26350fi
cristy8b350f62009-11-15 23:12:43 +000026351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026352$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026353if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026354 GOMP_LIBS="-lxlsmp"
26355fi
cristy18307f12011-12-30 01:20:16 +000026356
26357 fi
26358 # SGI IRIX 6.5 MIPSpro C/C++
26359 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026361$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026362if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026363 $as_echo_n "(cached) " >&6
26364else
26365 ac_check_lib_save_LIBS=$LIBS
26366LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026368/* end confdefs.h. */
26369
26370/* Override any GCC internal prototype to avoid an error.
26371 Use char because int might match the return type of a GCC
26372 builtin and then its argument prototype would still apply. */
26373#ifdef __cplusplus
26374extern "C"
26375#endif
26376char mp_destroy ();
26377int
26378main ()
26379{
26380return mp_destroy ();
26381 ;
26382 return 0;
26383}
26384_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026385if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026386 ac_cv_lib_mp_mp_destroy=yes
26387else
cristy8b350f62009-11-15 23:12:43 +000026388 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026389fi
cristy8b350f62009-11-15 23:12:43 +000026390rm -f core conftest.err conftest.$ac_objext \
26391 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026392LIBS=$ac_check_lib_save_LIBS
26393fi
cristy8b350f62009-11-15 23:12:43 +000026394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026395$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026396if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026397 GOMP_LIBS="-lmp"
26398fi
cristy18307f12011-12-30 01:20:16 +000026399
26400 fi
cristy3ed852e2009-09-05 21:47:34 +000026401 fi
26402 LIBS="$GOMP_LIBS $LIBS"
26403fi
26404
26405
26406#
26407# Find Posix threads library
26408#
26409THREAD_LIBS=''
26410if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26411
26412 if test "x$PTHREAD_LIBS" = "x"; then
26413 case "${host_cpu}-${host_os}" in
26414 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026415
26416
26417
26418ac_ext=c
26419ac_cpp='$CPP $CPPFLAGS'
26420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26422ac_compiler_gnu=$ac_cv_c_compiler_gnu
26423
26424magick_pthread_lib_ok=no
26425
26426LIB=-lc_r
26427save_LIBS="$LIBS"
26428LIBS="$LIBS $LIB"
26429
26430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26431$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26433/* end confdefs.h. */
26434#include <pthread.h>
26435int
26436main ()
26437{
26438 pthread_t th;
26439 pthread_join(th, 0);
26440 pthread_attr_init(0);
26441 pthread_cleanup_push(0, 0);
26442 pthread_create(0,0,0,0);
26443 pthread_cleanup_pop(0);
26444 ;
26445 return 0;
26446}
26447_ACEOF
26448if ac_fn_c_try_link "$LINENO"; then :
26449 magick_pthread_lib_ok=yes
26450fi
26451rm -f core conftest.err conftest.$ac_objext \
26452 conftest$ac_exeext conftest.$ac_ext
26453
26454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26455$as_echo "${magick_pthread_lib_ok}" >&6; }
26456if test "$magick_pthread_lib_ok" = yes
26457then
26458 PTHREAD_LIBS=-lc_r
26459 :
26460else
26461
26462 :
26463fi
26464
26465LIBS="$save_LIBS"
26466
26467ac_ext=c
26468ac_cpp='$CPP $CPPFLAGS'
26469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26471ac_compiler_gnu=$ac_cv_c_compiler_gnu
26472
26473 ;;
cristy3ed852e2009-09-05 21:47:34 +000026474 esac
26475 fi
26476
26477 for lib in pthread pthreads; do
26478 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026479
26480
26481
26482ac_ext=c
26483ac_cpp='$CPP $CPPFLAGS'
26484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26486ac_compiler_gnu=$ac_cv_c_compiler_gnu
26487
26488magick_pthread_lib_ok=no
26489
26490LIB=-l$lib
26491save_LIBS="$LIBS"
26492LIBS="$LIBS $LIB"
26493
26494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26495$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26497/* end confdefs.h. */
26498#include <pthread.h>
26499int
26500main ()
26501{
26502 pthread_t th;
26503 pthread_join(th, 0);
26504 pthread_attr_init(0);
26505 pthread_cleanup_push(0, 0);
26506 pthread_create(0,0,0,0);
26507 pthread_cleanup_pop(0);
26508 ;
26509 return 0;
26510}
26511_ACEOF
26512if ac_fn_c_try_link "$LINENO"; then :
26513 magick_pthread_lib_ok=yes
26514fi
26515rm -f core conftest.err conftest.$ac_objext \
26516 conftest$ac_exeext conftest.$ac_ext
26517
26518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26519$as_echo "${magick_pthread_lib_ok}" >&6; }
26520if test "$magick_pthread_lib_ok" = yes
26521then
26522 PTHREAD_LIBS=-l$lib
26523 :
26524else
26525
26526 :
26527fi
26528
26529LIBS="$save_LIBS"
26530
26531ac_ext=c
26532ac_cpp='$CPP $CPPFLAGS'
26533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26535ac_compiler_gnu=$ac_cv_c_compiler_gnu
26536
26537
cristy3ed852e2009-09-05 21:47:34 +000026538 fi
26539 done
26540
26541 THREAD_LIBS="$PTHREAD_LIBS"
26542 LIBS="$LIBS $THREAD_LIBS"
26543fi
26544
26545
26546#
26547# Check for umem.
26548#
26549have_umem='no'
26550UMEM_LIBS=''
26551if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026553$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26555$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026556 failed=0
26557 passed=0
cristy8b350f62009-11-15 23:12:43 +000026558 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026559if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026560 passed=`expr $passed + 1`
26561else
26562 failed=`expr $failed + 1`
26563fi
26564
26565
cristy8b350f62009-11-15 23:12:43 +000026566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026567$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026568if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026569 $as_echo_n "(cached) " >&6
26570else
26571 ac_check_lib_save_LIBS=$LIBS
26572LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026574/* end confdefs.h. */
26575
26576/* Override any GCC internal prototype to avoid an error.
26577 Use char because int might match the return type of a GCC
26578 builtin and then its argument prototype would still apply. */
26579#ifdef __cplusplus
26580extern "C"
26581#endif
26582char umem_alloc ();
26583int
26584main ()
26585{
26586return umem_alloc ();
26587 ;
26588 return 0;
26589}
26590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026591if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026592 ac_cv_lib_umem_umem_alloc=yes
26593else
cristy8b350f62009-11-15 23:12:43 +000026594 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026595fi
cristy8b350f62009-11-15 23:12:43 +000026596rm -f core conftest.err conftest.$ac_objext \
26597 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026598LIBS=$ac_check_lib_save_LIBS
26599fi
cristy8b350f62009-11-15 23:12:43 +000026600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026601$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026602if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026603 passed=`expr $passed + 1`
26604else
26605 failed=`expr $failed + 1`
26606fi
26607
cristy8b350f62009-11-15 23:12:43 +000026608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026609$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026610if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026611 $as_echo_n "(cached) " >&6
26612else
26613 ac_check_lib_save_LIBS=$LIBS
26614LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026616/* end confdefs.h. */
26617
26618/* Override any GCC internal prototype to avoid an error.
26619 Use char because int might match the return type of a GCC
26620 builtin and then its argument prototype would still apply. */
26621#ifdef __cplusplus
26622extern "C"
26623#endif
26624char umem_free ();
26625int
26626main ()
26627{
26628return umem_free ();
26629 ;
26630 return 0;
26631}
26632_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026633if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026634 ac_cv_lib_umem_umem_free=yes
26635else
cristy8b350f62009-11-15 23:12:43 +000026636 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026637fi
cristy8b350f62009-11-15 23:12:43 +000026638rm -f core conftest.err conftest.$ac_objext \
26639 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026640LIBS=$ac_check_lib_save_LIBS
26641fi
cristy8b350f62009-11-15 23:12:43 +000026642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026643$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026644if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026645 passed=`expr $passed + 1`
26646else
26647 failed=`expr $failed + 1`
26648fi
26649
cristy8b350f62009-11-15 23:12:43 +000026650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026651$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26652 if test $passed -gt 0; then
26653 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26655$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026656 have_umem='no (failed tests)'
26657 else
26658 UMEM_LIBS='-lumem'
26659 LIBS="$UMEM_LIBS $LIBS"
26660
cristy8b350f62009-11-15 23:12:43 +000026661$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026662
cristyad38abe2012-12-23 23:03:21 +000026663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26664$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026665 have_umem='yes'
26666 fi
26667 else
cristyad38abe2012-12-23 23:03:21 +000026668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26669$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026670 fi
26671fi
cristy73bd4a52010-10-05 11:24:23 +000026672 if test "$have_umem" = 'yes'; then
26673 HasUMEM_TRUE=
26674 HasUMEM_FALSE='#'
26675else
26676 HasUMEM_TRUE='#'
26677 HasUMEM_FALSE=
26678fi
26679
cristy3ed852e2009-09-05 21:47:34 +000026680
26681
26682#
26683# Add support for ccmalloc memory debugging library if requested
26684#
26685have_ccmalloc='no'
26686CCMALLOC_LIBS=''
26687if test "$enable_ccmalloc" = 'yes'; then
26688 # Extract the first word of "ccmalloc", so it can be a program name with args.
26689set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026691$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026692if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026693 $as_echo_n "(cached) " >&6
26694else
26695 case $CCMALLOCDelegate in
26696 [\\/]* | ?:[\\/]*)
26697 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26698 ;;
26699 *)
26700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26701for as_dir in $PATH
26702do
26703 IFS=$as_save_IFS
26704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026707 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026709 break 2
26710 fi
26711done
cristy8b350f62009-11-15 23:12:43 +000026712 done
cristy3ed852e2009-09-05 21:47:34 +000026713IFS=$as_save_IFS
26714
26715 ;;
26716esac
26717fi
26718CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26719if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026721$as_echo "$CCMALLOCDelegate" >&6; }
26722else
cristy8b350f62009-11-15 23:12:43 +000026723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026724$as_echo "no" >&6; }
26725fi
26726
26727
26728 if test -n "$CCMALLOCDelegate"; then
26729 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26730 OLIBS="$LIBS"
26731 # Assume that gcc is used with ccmalloc.
26732 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026734$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026735if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026736 $as_echo_n "(cached) " >&6
26737else
26738 ac_check_lib_save_LIBS=$LIBS
26739LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026741/* end confdefs.h. */
26742
26743/* Override any GCC internal prototype to avoid an error.
26744 Use char because int might match the return type of a GCC
26745 builtin and then its argument prototype would still apply. */
26746#ifdef __cplusplus
26747extern "C"
26748#endif
26749char ccmalloc_malloc ();
26750int
26751main ()
26752{
26753return ccmalloc_malloc ();
26754 ;
26755 return 0;
26756}
26757_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026758if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026759 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26760else
cristy8b350f62009-11-15 23:12:43 +000026761 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026762fi
cristy8b350f62009-11-15 23:12:43 +000026763rm -f core conftest.err conftest.$ac_objext \
26764 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026765LIBS=$ac_check_lib_save_LIBS
26766fi
cristy8b350f62009-11-15 23:12:43 +000026767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026768$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026769if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026770 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26771fi
26772
26773 if test -n "$CCMALLOC_LIBS"; then
26774 LIBS="$OLIBS"
26775 LIBS="$LIBS $CCMALLOC_LIBS"
26776 have_ccmalloc='yes'
26777 else
26778 LIBS="$OLIBS"
26779 fi
26780 fi
26781fi
26782
26783#
cristy944e51f2013-04-16 18:45:02 +000026784# Add support for 'huge pages' if requested
26785#
26786if test "x$enable_hugepages" != "xno"; then :
26787
26788
26789$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26790
26791
26792fi
26793
26794#
cristy3ed852e2009-09-05 21:47:34 +000026795# Add support for efence memory debugging library if requested
26796#
26797if test "$enable_efence" = 'yes'; then
26798 EFENCE_LIBS='-lefence'
26799 LIBS="$EFENCE_LIBS $LIBS"
26800fi
26801
cristy3ed852e2009-09-05 21:47:34 +000026802
26803#
26804# Check for BZLIB
26805#
26806
26807
26808# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026809if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026810 withval=$with_bzlib; with_bzlib=$withval
26811else
26812 with_bzlib='yes'
26813fi
26814
26815
26816if test "$with_bzlib" != 'yes'; then
26817 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26818fi
26819
26820have_bzlib='no'
26821if test "$with_bzlib" != 'no'; then
26822 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26824$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026826$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26828$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026829 failed=0
26830 passed=0
26831 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026832 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026833if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026834 passed=`expr $passed + 1`
26835else
26836 failed=`expr $failed + 1`
26837fi
26838
26839
cristy8b350f62009-11-15 23:12:43 +000026840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026841$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026842if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026843 $as_echo_n "(cached) " >&6
26844else
26845 ac_check_lib_save_LIBS=$LIBS
26846LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026848/* end confdefs.h. */
26849
26850/* Override any GCC internal prototype to avoid an error.
26851 Use char because int might match the return type of a GCC
26852 builtin and then its argument prototype would still apply. */
26853#ifdef __cplusplus
26854extern "C"
26855#endif
26856char BZ2_bzDecompress ();
26857int
26858main ()
26859{
26860return BZ2_bzDecompress ();
26861 ;
26862 return 0;
26863}
26864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026865if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026866 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26867else
cristy8b350f62009-11-15 23:12:43 +000026868 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026869fi
cristy8b350f62009-11-15 23:12:43 +000026870rm -f core conftest.err conftest.$ac_objext \
26871 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026872LIBS=$ac_check_lib_save_LIBS
26873fi
cristy8b350f62009-11-15 23:12:43 +000026874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026875$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026876if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026877 found_libbz=`expr $found_libbz + 1`
26878fi
26879
26880 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026882$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026883if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026884 $as_echo_n "(cached) " >&6
26885else
26886 ac_check_lib_save_LIBS=$LIBS
26887LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026889/* end confdefs.h. */
26890
26891/* Override any GCC internal prototype to avoid an error.
26892 Use char because int might match the return type of a GCC
26893 builtin and then its argument prototype would still apply. */
26894#ifdef __cplusplus
26895extern "C"
26896#endif
26897char _imp__BZ2_decompress ();
26898int
26899main ()
26900{
26901return _imp__BZ2_decompress ();
26902 ;
26903 return 0;
26904}
26905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026906if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026907 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26908else
cristy8b350f62009-11-15 23:12:43 +000026909 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026910fi
cristy8b350f62009-11-15 23:12:43 +000026911rm -f core conftest.err conftest.$ac_objext \
26912 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026913LIBS=$ac_check_lib_save_LIBS
26914fi
cristy8b350f62009-11-15 23:12:43 +000026915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026916$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026917if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026918 found_libbz=`expr $found_libbz + 1`
26919fi
26920
26921 fi
26922 if test $found_libbz -gt 0; then
26923 passed=`expr $passed + 1`
26924 else
26925 failed=`expr $failed + 1`
26926 fi
cristy8b350f62009-11-15 23:12:43 +000026927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026928$as_echo_n "checking if BZLIB package is complete... " >&6; }
26929 if test $passed -gt 0; then
26930 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26932$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026933 have_bzlib='no (failed tests)'
26934 else
26935 BZLIB_LIBS='-lbz2'
26936 LIBS="$BZLIB_LIBS $LIBS"
26937
cristy8b350f62009-11-15 23:12:43 +000026938$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026939
cristyad38abe2012-12-23 23:03:21 +000026940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26941$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026942 have_bzlib='yes'
26943 fi
26944 else
cristyad38abe2012-12-23 23:03:21 +000026945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26946$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026947 fi
26948fi
cristy73bd4a52010-10-05 11:24:23 +000026949 if test "$have_bzlib" = 'yes'; then
26950 BZLIB_DELEGATE_TRUE=
26951 BZLIB_DELEGATE_FALSE='#'
26952else
26953 BZLIB_DELEGATE_TRUE='#'
26954 BZLIB_DELEGATE_FALSE=
26955fi
26956
cristy3ed852e2009-09-05 21:47:34 +000026957
26958
26959#
26960# Find the X11 include and library directories.
26961#
26962IPC_LIBS=''
26963X11_LIBS=''
26964XEXT_LIBS=''
26965XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026967$as_echo_n "checking for X... " >&6; }
26968
26969
26970# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026971if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026972 withval=$with_x;
26973fi
26974
26975# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26976if test "x$with_x" = xno; then
26977 # The user explicitly disabled X.
26978 have_x=disabled
26979else
26980 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026981 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026982 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026983 $as_echo_n "(cached) " >&6
26984else
26985 # One or both of the vars are not set, and there is no cached value.
26986ac_x_includes=no ac_x_libraries=no
26987rm -f -r conftest.dir
26988if mkdir conftest.dir; then
26989 cd conftest.dir
26990 cat >Imakefile <<'_ACEOF'
26991incroot:
26992 @echo incroot='${INCROOT}'
26993usrlibdir:
26994 @echo usrlibdir='${USRLIBDIR}'
26995libdir:
26996 @echo libdir='${LIBDIR}'
26997_ACEOF
26998 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026999 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027000 for ac_var in incroot usrlibdir libdir; do
27001 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27002 done
27003 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27004 for ac_extension in a so sl dylib la dll; do
27005 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27006 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27007 ac_im_usrlibdir=$ac_im_libdir; break
27008 fi
27009 done
27010 # Screen out bogus values from the imake configuration. They are
27011 # bogus both because they are the default anyway, and because
27012 # using them would break gcc on systems where it needs fixed includes.
27013 case $ac_im_incroot in
27014 /usr/include) ac_x_includes= ;;
27015 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27016 esac
27017 case $ac_im_usrlibdir in
27018 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27019 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27020 esac
27021 fi
27022 cd ..
27023 rm -f -r conftest.dir
27024fi
27025
27026# Standard set of common directories for X headers.
27027# Check X11 before X11Rn because it is often a symlink to the current release.
27028ac_x_header_dirs='
27029/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027030/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027031/usr/X11R6/include
27032/usr/X11R5/include
27033/usr/X11R4/include
27034
27035/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027036/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027037/usr/include/X11R6
27038/usr/include/X11R5
27039/usr/include/X11R4
27040
27041/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027042/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027043/usr/local/X11R6/include
27044/usr/local/X11R5/include
27045/usr/local/X11R4/include
27046
27047/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027048/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027049/usr/local/include/X11R6
27050/usr/local/include/X11R5
27051/usr/local/include/X11R4
27052
27053/usr/X386/include
27054/usr/x386/include
27055/usr/XFree86/include/X11
27056
27057/usr/include
27058/usr/local/include
27059/usr/unsupported/include
27060/usr/athena/include
27061/usr/local/x11r5/include
27062/usr/lpp/Xamples/include
27063
27064/usr/openwin/include
27065/usr/openwin/share/include'
27066
27067if test "$ac_x_includes" = no; then
27068 # Guess where to find include files, by looking for Xlib.h.
27069 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027071/* end confdefs.h. */
27072#include <X11/Xlib.h>
27073_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027074if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027075 # We can compile using X headers with no special include directory.
27076ac_x_includes=
27077else
cristyc7083c12009-10-14 03:16:55 +000027078 for ac_dir in $ac_x_header_dirs; do
27079 if test -r "$ac_dir/X11/Xlib.h"; then
27080 ac_x_includes=$ac_dir
27081 break
27082 fi
27083done
27084fi
cristyda16f162011-02-19 23:52:17 +000027085rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027086fi # $ac_x_includes = no
27087
27088if test "$ac_x_libraries" = no; then
27089 # Check for the libraries.
27090 # See if we find them without any special options.
27091 # Don't add to $LIBS permanently.
27092 ac_save_LIBS=$LIBS
27093 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027095/* end confdefs.h. */
27096#include <X11/Xlib.h>
27097int
27098main ()
27099{
27100XrmInitialize ()
27101 ;
27102 return 0;
27103}
27104_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027105if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027106 LIBS=$ac_save_LIBS
27107# We can link X programs with no special library path.
27108ac_x_libraries=
27109else
cristy8b350f62009-11-15 23:12:43 +000027110 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027111for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27112do
27113 # Don't even attempt the hair of trying to link an X program!
27114 for ac_extension in a so sl dylib la dll; do
27115 if test -r "$ac_dir/libX11.$ac_extension"; then
27116 ac_x_libraries=$ac_dir
27117 break 2
27118 fi
27119 done
27120done
27121fi
cristy8b350f62009-11-15 23:12:43 +000027122rm -f core conftest.err conftest.$ac_objext \
27123 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027124fi # $ac_x_libraries = no
27125
27126case $ac_x_includes,$ac_x_libraries in #(
27127 no,* | *,no | *\'*)
27128 # Didn't find X, or a directory has "'" in its name.
27129 ac_cv_have_x="have_x=no";; #(
27130 *)
27131 # Record where we found X for the cache.
27132 ac_cv_have_x="have_x=yes\
27133 ac_x_includes='$ac_x_includes'\
27134 ac_x_libraries='$ac_x_libraries'"
27135esac
27136fi
27137;; #(
27138 *) have_x=yes;;
27139 esac
27140 eval "$ac_cv_have_x"
27141fi # $with_x != no
27142
27143if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027145$as_echo "$have_x" >&6; }
27146 no_x=yes
27147else
27148 # If each of the values was on the command line, it overrides each guess.
27149 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27150 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27151 # Update the cache value to reflect the command line values.
27152 ac_cv_have_x="have_x=yes\
27153 ac_x_includes='$x_includes'\
27154 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027156$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27157fi
27158
cristy3ed852e2009-09-05 21:47:34 +000027159if test "$no_x" = yes; then
27160 # Not all programs may use this symbol, but it does not hurt to define it.
27161
cristy8b350f62009-11-15 23:12:43 +000027162$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027163
27164 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27165else
27166 if test -n "$x_includes"; then
27167 X_CFLAGS="$X_CFLAGS -I$x_includes"
27168 fi
27169
27170 # It would also be nice to do this for all -L options, not just this one.
27171 if test -n "$x_libraries"; then
27172 X_LIBS="$X_LIBS -L$x_libraries"
27173 # For Solaris; some versions of Sun CC require a space after -R and
27174 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027176$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27177 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27178 ac_xsave_c_werror_flag=$ac_c_werror_flag
27179 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027181/* end confdefs.h. */
27182
27183int
27184main ()
27185{
27186
27187 ;
27188 return 0;
27189}
27190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027191if ac_fn_c_try_link "$LINENO"; then :
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027193$as_echo "no" >&6; }
27194 X_LIBS="$X_LIBS -R$x_libraries"
27195else
cristy8b350f62009-11-15 23:12:43 +000027196 LIBS="$ac_xsave_LIBS -R $x_libraries"
27197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027198/* end confdefs.h. */
27199
27200int
27201main ()
27202{
27203
27204 ;
27205 return 0;
27206}
27207_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027208if ac_fn_c_try_link "$LINENO"; then :
27209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027210$as_echo "yes" >&6; }
27211 X_LIBS="$X_LIBS -R $x_libraries"
27212else
cristy8b350f62009-11-15 23:12:43 +000027213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027214$as_echo "neither works" >&6; }
27215fi
cristy8b350f62009-11-15 23:12:43 +000027216rm -f core conftest.err conftest.$ac_objext \
27217 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027218fi
cristy8b350f62009-11-15 23:12:43 +000027219rm -f core conftest.err conftest.$ac_objext \
27220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027221 ac_c_werror_flag=$ac_xsave_c_werror_flag
27222 LIBS=$ac_xsave_LIBS
27223 fi
27224
27225 # Check for system-dependent libraries X programs must link with.
27226 # Do this before checking for the system-independent R6 libraries
27227 # (-lICE), since we may need -lsocket or whatever for X linking.
27228
27229 if test "$ISC" = yes; then
27230 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27231 else
27232 # Martyn Johnson says this is needed for Ultrix, if the X
27233 # libraries were built with DECnet support. And Karl Berry says
27234 # the Alpha needs dnet_stub (dnet does not exist).
27235 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027237/* end confdefs.h. */
27238
27239/* Override any GCC internal prototype to avoid an error.
27240 Use char because int might match the return type of a GCC
27241 builtin and then its argument prototype would still apply. */
27242#ifdef __cplusplus
27243extern "C"
27244#endif
27245char XOpenDisplay ();
27246int
27247main ()
27248{
27249return XOpenDisplay ();
27250 ;
27251 return 0;
27252}
27253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027254if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027255
cristy8b350f62009-11-15 23:12:43 +000027256else
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027258$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027259if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027260 $as_echo_n "(cached) " >&6
27261else
27262 ac_check_lib_save_LIBS=$LIBS
27263LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027265/* end confdefs.h. */
27266
27267/* Override any GCC internal prototype to avoid an error.
27268 Use char because int might match the return type of a GCC
27269 builtin and then its argument prototype would still apply. */
27270#ifdef __cplusplus
27271extern "C"
27272#endif
27273char dnet_ntoa ();
27274int
27275main ()
27276{
27277return dnet_ntoa ();
27278 ;
27279 return 0;
27280}
27281_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027282if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027283 ac_cv_lib_dnet_dnet_ntoa=yes
27284else
cristy8b350f62009-11-15 23:12:43 +000027285 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027286fi
cristy8b350f62009-11-15 23:12:43 +000027287rm -f core conftest.err conftest.$ac_objext \
27288 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027289LIBS=$ac_check_lib_save_LIBS
27290fi
cristy8b350f62009-11-15 23:12:43 +000027291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027292$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027293if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027294 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27295fi
27296
27297 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027299$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027300if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027301 $as_echo_n "(cached) " >&6
27302else
27303 ac_check_lib_save_LIBS=$LIBS
27304LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027306/* end confdefs.h. */
27307
27308/* Override any GCC internal prototype to avoid an error.
27309 Use char because int might match the return type of a GCC
27310 builtin and then its argument prototype would still apply. */
27311#ifdef __cplusplus
27312extern "C"
27313#endif
27314char dnet_ntoa ();
27315int
27316main ()
27317{
27318return dnet_ntoa ();
27319 ;
27320 return 0;
27321}
27322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027323if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027324 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27325else
cristy8b350f62009-11-15 23:12:43 +000027326 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027327fi
cristy8b350f62009-11-15 23:12:43 +000027328rm -f core conftest.err conftest.$ac_objext \
27329 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027330LIBS=$ac_check_lib_save_LIBS
27331fi
cristy8b350f62009-11-15 23:12:43 +000027332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027333$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027334if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027335 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27336fi
27337
27338 fi
27339fi
cristy8b350f62009-11-15 23:12:43 +000027340rm -f core conftest.err conftest.$ac_objext \
27341 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027342 LIBS="$ac_xsave_LIBS"
27343
27344 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27345 # to get the SysV transport functions.
27346 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27347 # needs -lnsl.
27348 # The nsl library prevents programs from opening the X display
27349 # on Irix 5.2, according to T.E. Dickey.
27350 # The functions gethostbyname, getservbyname, and inet_addr are
27351 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027352 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027353if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027354
cristy3ed852e2009-09-05 21:47:34 +000027355fi
27356
cristy3ed852e2009-09-05 21:47:34 +000027357 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027359$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027360if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027361 $as_echo_n "(cached) " >&6
27362else
27363 ac_check_lib_save_LIBS=$LIBS
27364LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027366/* end confdefs.h. */
27367
27368/* Override any GCC internal prototype to avoid an error.
27369 Use char because int might match the return type of a GCC
27370 builtin and then its argument prototype would still apply. */
27371#ifdef __cplusplus
27372extern "C"
27373#endif
27374char gethostbyname ();
27375int
27376main ()
27377{
27378return gethostbyname ();
27379 ;
27380 return 0;
27381}
27382_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027383if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027384 ac_cv_lib_nsl_gethostbyname=yes
27385else
cristy8b350f62009-11-15 23:12:43 +000027386 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027387fi
cristy8b350f62009-11-15 23:12:43 +000027388rm -f core conftest.err conftest.$ac_objext \
27389 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027390LIBS=$ac_check_lib_save_LIBS
27391fi
cristy8b350f62009-11-15 23:12:43 +000027392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027393$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027394if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027395 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27396fi
27397
27398 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027400$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027401if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027402 $as_echo_n "(cached) " >&6
27403else
27404 ac_check_lib_save_LIBS=$LIBS
27405LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027407/* end confdefs.h. */
27408
27409/* Override any GCC internal prototype to avoid an error.
27410 Use char because int might match the return type of a GCC
27411 builtin and then its argument prototype would still apply. */
27412#ifdef __cplusplus
27413extern "C"
27414#endif
27415char gethostbyname ();
27416int
27417main ()
27418{
27419return gethostbyname ();
27420 ;
27421 return 0;
27422}
27423_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027424if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027425 ac_cv_lib_bsd_gethostbyname=yes
27426else
cristy8b350f62009-11-15 23:12:43 +000027427 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027428fi
cristy8b350f62009-11-15 23:12:43 +000027429rm -f core conftest.err conftest.$ac_objext \
27430 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027431LIBS=$ac_check_lib_save_LIBS
27432fi
cristy8b350f62009-11-15 23:12:43 +000027433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027434$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027435if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027436 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27437fi
27438
27439 fi
27440 fi
27441
27442 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27443 # socket/setsockopt and other routines are undefined under SCO ODT
27444 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27445 # on later versions), says Simon Leinen: it contains gethostby*
27446 # variants that don't use the name server (or something). -lsocket
27447 # must be given before -lnsl if both are needed. We assume that
27448 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027449 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027450if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027451
cristy3ed852e2009-09-05 21:47:34 +000027452fi
27453
cristy3ed852e2009-09-05 21:47:34 +000027454 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027456$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027457if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027458 $as_echo_n "(cached) " >&6
27459else
27460 ac_check_lib_save_LIBS=$LIBS
27461LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027463/* end confdefs.h. */
27464
27465/* Override any GCC internal prototype to avoid an error.
27466 Use char because int might match the return type of a GCC
27467 builtin and then its argument prototype would still apply. */
27468#ifdef __cplusplus
27469extern "C"
27470#endif
27471char connect ();
27472int
27473main ()
27474{
27475return connect ();
27476 ;
27477 return 0;
27478}
27479_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027480if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027481 ac_cv_lib_socket_connect=yes
27482else
cristy8b350f62009-11-15 23:12:43 +000027483 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027484fi
cristy8b350f62009-11-15 23:12:43 +000027485rm -f core conftest.err conftest.$ac_objext \
27486 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027487LIBS=$ac_check_lib_save_LIBS
27488fi
cristy8b350f62009-11-15 23:12:43 +000027489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027490$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027491if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027492 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27493fi
27494
27495 fi
27496
27497 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027498 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027499if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027500
cristy3ed852e2009-09-05 21:47:34 +000027501fi
27502
cristy3ed852e2009-09-05 21:47:34 +000027503 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027505$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027506if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027507 $as_echo_n "(cached) " >&6
27508else
27509 ac_check_lib_save_LIBS=$LIBS
27510LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027512/* end confdefs.h. */
27513
27514/* Override any GCC internal prototype to avoid an error.
27515 Use char because int might match the return type of a GCC
27516 builtin and then its argument prototype would still apply. */
27517#ifdef __cplusplus
27518extern "C"
27519#endif
27520char remove ();
27521int
27522main ()
27523{
27524return remove ();
27525 ;
27526 return 0;
27527}
27528_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027529if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027530 ac_cv_lib_posix_remove=yes
27531else
cristy8b350f62009-11-15 23:12:43 +000027532 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027533fi
cristy8b350f62009-11-15 23:12:43 +000027534rm -f core conftest.err conftest.$ac_objext \
27535 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027536LIBS=$ac_check_lib_save_LIBS
27537fi
cristy8b350f62009-11-15 23:12:43 +000027538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027539$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027540if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027541 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27542fi
27543
27544 fi
27545
27546 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027547 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027548if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027549
cristy3ed852e2009-09-05 21:47:34 +000027550fi
27551
cristy3ed852e2009-09-05 21:47:34 +000027552 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027554$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027555if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027556 $as_echo_n "(cached) " >&6
27557else
27558 ac_check_lib_save_LIBS=$LIBS
27559LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027561/* end confdefs.h. */
27562
27563/* Override any GCC internal prototype to avoid an error.
27564 Use char because int might match the return type of a GCC
27565 builtin and then its argument prototype would still apply. */
27566#ifdef __cplusplus
27567extern "C"
27568#endif
27569char shmat ();
27570int
27571main ()
27572{
27573return shmat ();
27574 ;
27575 return 0;
27576}
27577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027578if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027579 ac_cv_lib_ipc_shmat=yes
27580else
cristy8b350f62009-11-15 23:12:43 +000027581 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027582fi
cristy8b350f62009-11-15 23:12:43 +000027583rm -f core conftest.err conftest.$ac_objext \
27584 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027585LIBS=$ac_check_lib_save_LIBS
27586fi
cristy8b350f62009-11-15 23:12:43 +000027587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027588$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027589if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027590 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27591fi
27592
27593 fi
27594 fi
27595
27596 # Check for libraries that X11R6 Xt/Xaw programs need.
27597 ac_save_LDFLAGS=$LDFLAGS
27598 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27599 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27600 # check for ICE first), but we must link in the order -lSM -lICE or
27601 # we get undefined symbols. So assume we have SM if we have ICE.
27602 # These have to be linked with before -lX11, unlike the other
27603 # libraries we check for below, so use a different variable.
27604 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027606$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027607if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027608 $as_echo_n "(cached) " >&6
27609else
27610 ac_check_lib_save_LIBS=$LIBS
27611LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027613/* end confdefs.h. */
27614
27615/* Override any GCC internal prototype to avoid an error.
27616 Use char because int might match the return type of a GCC
27617 builtin and then its argument prototype would still apply. */
27618#ifdef __cplusplus
27619extern "C"
27620#endif
27621char IceConnectionNumber ();
27622int
27623main ()
27624{
27625return IceConnectionNumber ();
27626 ;
27627 return 0;
27628}
27629_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027630if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027631 ac_cv_lib_ICE_IceConnectionNumber=yes
27632else
cristy8b350f62009-11-15 23:12:43 +000027633 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027634fi
cristy8b350f62009-11-15 23:12:43 +000027635rm -f core conftest.err conftest.$ac_objext \
27636 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027637LIBS=$ac_check_lib_save_LIBS
27638fi
cristy8b350f62009-11-15 23:12:43 +000027639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027640$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027641if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027642 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27643fi
27644
27645 LDFLAGS=$ac_save_LDFLAGS
27646
27647fi
27648
27649if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27651$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027653$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27655$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027656 LDFLAGS="$LDFLAGS $X_LIBS"
27657 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27658 LIBS="$X11_LIBS $LIBS"
27659 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27660
27661
cristy8b350f62009-11-15 23:12:43 +000027662$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027663
27664 #
27665 # Check for X11 shared memory extension
27666 #
27667 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027668 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027669if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027670 have_shmctl='yes'
27671fi
27672
27673 if test "$have_shmctl" != 'yes'; then
27674 PERSIST_LIBS=$LIBS
27675 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027677/* end confdefs.h. */
27678
27679/* Override any GCC internal prototype to avoid an error.
27680 Use char because int might match the return type of a GCC
27681 builtin and then its argument prototype would still apply. */
27682#ifdef __cplusplus
27683extern "C"
27684#endif
27685char shmctl ();
27686int
27687main ()
27688{
27689return shmctl ();
27690 ;
27691 return 0;
27692}
27693_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027694if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027695 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027696fi
cristy8b350f62009-11-15 23:12:43 +000027697rm -f core conftest.err conftest.$ac_objext \
27698 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027699 LIBS=$PERSIST_LIBS
27700 fi
27701
27702 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027704$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027705if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027706 $as_echo_n "(cached) " >&6
27707else
27708 ac_check_lib_save_LIBS=$LIBS
27709LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027711/* end confdefs.h. */
27712
27713/* Override any GCC internal prototype to avoid an error.
27714 Use char because int might match the return type of a GCC
27715 builtin and then its argument prototype would still apply. */
27716#ifdef __cplusplus
27717extern "C"
27718#endif
27719char XShmAttach ();
27720int
27721main ()
27722{
27723return XShmAttach ();
27724 ;
27725 return 0;
27726}
27727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027728if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027729 ac_cv_lib_Xext_XShmAttach=yes
27730else
cristy8b350f62009-11-15 23:12:43 +000027731 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027732fi
cristy8b350f62009-11-15 23:12:43 +000027733rm -f core conftest.err conftest.$ac_objext \
27734 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027735LIBS=$ac_check_lib_save_LIBS
27736fi
cristy8b350f62009-11-15 23:12:43 +000027737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027738$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027739if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027740 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027741$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027742
27743fi
27744
27745 fi
27746
27747 #
27748 # Check for X11 shape extension
27749 #
cristy8b350f62009-11-15 23:12:43 +000027750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027751$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027752if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027753 $as_echo_n "(cached) " >&6
27754else
27755 ac_check_lib_save_LIBS=$LIBS
27756LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027758/* end confdefs.h. */
27759
27760/* Override any GCC internal prototype to avoid an error.
27761 Use char because int might match the return type of a GCC
27762 builtin and then its argument prototype would still apply. */
27763#ifdef __cplusplus
27764extern "C"
27765#endif
27766char XShapeCombineMask ();
27767int
27768main ()
27769{
27770return XShapeCombineMask ();
27771 ;
27772 return 0;
27773}
27774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027775if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027776 ac_cv_lib_Xext_XShapeCombineMask=yes
27777else
cristy8b350f62009-11-15 23:12:43 +000027778 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027779fi
cristy8b350f62009-11-15 23:12:43 +000027780rm -f core conftest.err conftest.$ac_objext \
27781 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027782LIBS=$ac_check_lib_save_LIBS
27783fi
cristy8b350f62009-11-15 23:12:43 +000027784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027785$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027786if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027787 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027788$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027789
27790fi
27791
cristy8b350f62009-11-15 23:12:43 +000027792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027793$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027794if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027795 $as_echo_n "(cached) " >&6
27796else
27797 ac_check_lib_save_LIBS=$LIBS
27798LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027800/* end confdefs.h. */
27801
27802/* Override any GCC internal prototype to avoid an error.
27803 Use char because int might match the return type of a GCC
27804 builtin and then its argument prototype would still apply. */
27805#ifdef __cplusplus
27806extern "C"
27807#endif
27808char XtSetEventDispatcher ();
27809int
27810main ()
27811{
27812return XtSetEventDispatcher ();
27813 ;
27814 return 0;
27815}
27816_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027817if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027818 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27819else
cristy8b350f62009-11-15 23:12:43 +000027820 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027821fi
cristy8b350f62009-11-15 23:12:43 +000027822rm -f core conftest.err conftest.$ac_objext \
27823 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027824LIBS=$ac_check_lib_save_LIBS
27825fi
cristy8b350f62009-11-15 23:12:43 +000027826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027827$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027828if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027829 XT_LIBS='-lXt'
27830fi
27831
27832 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27833fi
27834if test "$no_x" != 'yes'; then
27835 have_x='yes'
27836else
27837 have_x='no'
27838fi
cristy73bd4a52010-10-05 11:24:23 +000027839 if test "$have_x" = 'yes'; then
27840 X11_DELEGATE_TRUE=
27841 X11_DELEGATE_FALSE='#'
27842else
27843 X11_DELEGATE_TRUE='#'
27844 X11_DELEGATE_FALSE=
27845fi
27846
cristy3ed852e2009-09-05 21:47:34 +000027847
27848
27849
27850
27851#
27852# Check for ZLIB
27853#
27854
27855# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027856if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027857 withval=$with_zlib; with_zlib=$withval
27858else
27859 with_zlib='yes'
27860fi
27861
27862
27863if test "$with_zlib" != 'yes'; then
27864 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27865fi
27866
27867have_zlib='no'
27868ZLIB_LIBS=''
27869if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27871$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027873$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27875$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027876 ZLIB_LIBS=''
27877 failed=0
27878 passed=0
cristy8b350f62009-11-15 23:12:43 +000027879 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027880if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027881 passed=`expr $passed + 1`
27882else
27883 failed=`expr $failed + 1`
27884fi
27885
27886
cristy8b350f62009-11-15 23:12:43 +000027887 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027888if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027889 passed=`expr $passed + 1`
27890else
27891 failed=`expr $failed + 1`
27892fi
27893
27894
cristy8b350f62009-11-15 23:12:43 +000027895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027896$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027897if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027898 $as_echo_n "(cached) " >&6
27899else
27900 ac_check_lib_save_LIBS=$LIBS
27901LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027903/* end confdefs.h. */
27904
27905/* Override any GCC internal prototype to avoid an error.
27906 Use char because int might match the return type of a GCC
27907 builtin and then its argument prototype would still apply. */
27908#ifdef __cplusplus
27909extern "C"
27910#endif
27911char compress ();
27912int
27913main ()
27914{
27915return compress ();
27916 ;
27917 return 0;
27918}
27919_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027920if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027921 ac_cv_lib_z_compress=yes
27922else
cristy8b350f62009-11-15 23:12:43 +000027923 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027924fi
cristy8b350f62009-11-15 23:12:43 +000027925rm -f core conftest.err conftest.$ac_objext \
27926 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027927LIBS=$ac_check_lib_save_LIBS
27928fi
cristy8b350f62009-11-15 23:12:43 +000027929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027930$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027931if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027932 passed=`expr $passed + 1`
27933else
27934 failed=`expr $failed + 1`
27935fi
27936
cristy8b350f62009-11-15 23:12:43 +000027937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027938$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027939if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027940 $as_echo_n "(cached) " >&6
27941else
27942 ac_check_lib_save_LIBS=$LIBS
27943LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027945/* end confdefs.h. */
27946
27947/* Override any GCC internal prototype to avoid an error.
27948 Use char because int might match the return type of a GCC
27949 builtin and then its argument prototype would still apply. */
27950#ifdef __cplusplus
27951extern "C"
27952#endif
27953char uncompress ();
27954int
27955main ()
27956{
27957return uncompress ();
27958 ;
27959 return 0;
27960}
27961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027962if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027963 ac_cv_lib_z_uncompress=yes
27964else
cristy8b350f62009-11-15 23:12:43 +000027965 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027966fi
cristy8b350f62009-11-15 23:12:43 +000027967rm -f core conftest.err conftest.$ac_objext \
27968 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027969LIBS=$ac_check_lib_save_LIBS
27970fi
cristy8b350f62009-11-15 23:12:43 +000027971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027972$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027973if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027974 passed=`expr $passed + 1`
27975else
27976 failed=`expr $failed + 1`
27977fi
27978
cristy8b350f62009-11-15 23:12:43 +000027979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027980$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027981if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027982 $as_echo_n "(cached) " >&6
27983else
27984 ac_check_lib_save_LIBS=$LIBS
27985LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027987/* end confdefs.h. */
27988
27989/* Override any GCC internal prototype to avoid an error.
27990 Use char because int might match the return type of a GCC
27991 builtin and then its argument prototype would still apply. */
27992#ifdef __cplusplus
27993extern "C"
27994#endif
27995char deflate ();
27996int
27997main ()
27998{
27999return deflate ();
28000 ;
28001 return 0;
28002}
28003_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028004if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028005 ac_cv_lib_z_deflate=yes
28006else
cristy8b350f62009-11-15 23:12:43 +000028007 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028008fi
cristy8b350f62009-11-15 23:12:43 +000028009rm -f core conftest.err conftest.$ac_objext \
28010 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028011LIBS=$ac_check_lib_save_LIBS
28012fi
cristy8b350f62009-11-15 23:12:43 +000028013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028014$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028015if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028016 passed=`expr $passed + 1`
28017else
28018 failed=`expr $failed + 1`
28019fi
28020
cristy8b350f62009-11-15 23:12:43 +000028021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028022$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028023if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028024 $as_echo_n "(cached) " >&6
28025else
28026 ac_check_lib_save_LIBS=$LIBS
28027LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028029/* end confdefs.h. */
28030
28031/* Override any GCC internal prototype to avoid an error.
28032 Use char because int might match the return type of a GCC
28033 builtin and then its argument prototype would still apply. */
28034#ifdef __cplusplus
28035extern "C"
28036#endif
28037char inflate ();
28038int
28039main ()
28040{
28041return inflate ();
28042 ;
28043 return 0;
28044}
28045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028046if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028047 ac_cv_lib_z_inflate=yes
28048else
cristy8b350f62009-11-15 23:12:43 +000028049 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028050fi
cristy8b350f62009-11-15 23:12:43 +000028051rm -f core conftest.err conftest.$ac_objext \
28052 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028053LIBS=$ac_check_lib_save_LIBS
28054fi
cristy8b350f62009-11-15 23:12:43 +000028055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028056$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028057if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028058 passed=`expr $passed + 1`
28059else
28060 failed=`expr $failed + 1`
28061fi
28062
cristy8b350f62009-11-15 23:12:43 +000028063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028064$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028065if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028066 $as_echo_n "(cached) " >&6
28067else
28068 ac_check_lib_save_LIBS=$LIBS
28069LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028071/* end confdefs.h. */
28072
28073/* Override any GCC internal prototype to avoid an error.
28074 Use char because int might match the return type of a GCC
28075 builtin and then its argument prototype would still apply. */
28076#ifdef __cplusplus
28077extern "C"
28078#endif
28079char gzseek ();
28080int
28081main ()
28082{
28083return gzseek ();
28084 ;
28085 return 0;
28086}
28087_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028088if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028089 ac_cv_lib_z_gzseek=yes
28090else
cristy8b350f62009-11-15 23:12:43 +000028091 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028092fi
cristy8b350f62009-11-15 23:12:43 +000028093rm -f core conftest.err conftest.$ac_objext \
28094 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028095LIBS=$ac_check_lib_save_LIBS
28096fi
cristy8b350f62009-11-15 23:12:43 +000028097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028098$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028099if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028100 passed=`expr $passed + 1`
28101else
28102 failed=`expr $failed + 1`
28103fi
28104
cristy8b350f62009-11-15 23:12:43 +000028105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028106$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028107if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028108 $as_echo_n "(cached) " >&6
28109else
28110 ac_check_lib_save_LIBS=$LIBS
28111LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028113/* end confdefs.h. */
28114
28115/* Override any GCC internal prototype to avoid an error.
28116 Use char because int might match the return type of a GCC
28117 builtin and then its argument prototype would still apply. */
28118#ifdef __cplusplus
28119extern "C"
28120#endif
28121char gztell ();
28122int
28123main ()
28124{
28125return gztell ();
28126 ;
28127 return 0;
28128}
28129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028130if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028131 ac_cv_lib_z_gztell=yes
28132else
cristy8b350f62009-11-15 23:12:43 +000028133 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028134fi
cristy8b350f62009-11-15 23:12:43 +000028135rm -f core conftest.err conftest.$ac_objext \
28136 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028137LIBS=$ac_check_lib_save_LIBS
28138fi
cristy8b350f62009-11-15 23:12:43 +000028139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028140$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028141if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028142 passed=`expr $passed + 1`
28143else
28144 failed=`expr $failed + 1`
28145fi
28146
cristy8b350f62009-11-15 23:12:43 +000028147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028148$as_echo_n "checking if ZLIB package is complete... " >&6; }
28149 if test $passed -gt 0; then
28150 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28152$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028153 have_zlib='no (failed tests)'
28154 else
28155 ZLIB_LIBS='-lz'
28156 LIBS="$ZLIB_LIBS $LIBS"
28157
cristy8b350f62009-11-15 23:12:43 +000028158$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028159
cristyad38abe2012-12-23 23:03:21 +000028160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28161$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028162 have_zlib='yes'
28163 fi
28164 else
cristyad38abe2012-12-23 23:03:21 +000028165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28166$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028167 fi
28168fi
cristy73bd4a52010-10-05 11:24:23 +000028169 if test "$have_zlib" = 'yes'; then
28170 ZLIB_DELEGATE_TRUE=
28171 ZLIB_DELEGATE_FALSE='#'
28172else
28173 ZLIB_DELEGATE_TRUE='#'
28174 ZLIB_DELEGATE_FALSE=
28175fi
28176
cristy3ed852e2009-09-05 21:47:34 +000028177
28178
cristy5eef09f2012-10-16 12:08:28 +000028179# whether modules are built or not.
28180with_ltdl='yes'
28181have_ltdl='no'
28182LTDL_LIBS=''
28183if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28185$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28187$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28189$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028190 failed=0
28191 passed=0
28192 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28193if test "x$ac_cv_header_ltdl_h" = xyes; then :
28194 passed=`expr $passed + 1`
28195else
28196 failed=`expr $failed + 1`
28197fi
28198
28199
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28201$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28202if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28203 $as_echo_n "(cached) " >&6
28204else
28205 ac_check_lib_save_LIBS=$LIBS
28206LIBS="-lltdl $LIBS"
28207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28208/* end confdefs.h. */
28209
28210/* Override any GCC internal prototype to avoid an error.
28211 Use char because int might match the return type of a GCC
28212 builtin and then its argument prototype would still apply. */
28213#ifdef __cplusplus
28214extern "C"
28215#endif
28216char lt_dlinit ();
28217int
28218main ()
28219{
28220return lt_dlinit ();
28221 ;
28222 return 0;
28223}
28224_ACEOF
28225if ac_fn_c_try_link "$LINENO"; then :
28226 ac_cv_lib_ltdl_lt_dlinit=yes
28227else
28228 ac_cv_lib_ltdl_lt_dlinit=no
28229fi
28230rm -f core conftest.err conftest.$ac_objext \
28231 conftest$ac_exeext conftest.$ac_ext
28232LIBS=$ac_check_lib_save_LIBS
28233fi
28234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28235$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28236if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28237 passed=`expr $passed + 1`
28238else
28239 failed=`expr $failed + 1`
28240fi
28241
28242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28243$as_echo_n "checking if libltdl package is complete... " >&6; }
28244 if test $passed -gt 0 ; then
28245 if test $failed -gt 0 ; then
28246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28247$as_echo "no -- some components failed test" >&6; }
28248 have_ltdl='no (failed tests)'
28249 else
28250 LTDL_LIBS='-lltdl'
28251 LIBS="$LTDL_LIBS $LIBS"
28252
28253$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28254
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28256$as_echo "yes" >&6; }
28257 have_ltdl='yes'
28258 fi
28259 else
28260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28261$as_echo "no" >&6; }
28262 fi
cristyaf4cbf32012-10-16 23:47:41 +000028263 if test "$have_ltdl" != 'yes' ; then
28264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28266as_fn_error 1 "libltdl is required for modules build
28267See \`config.log' for more details" "$LINENO" 5; }
28268 fi
cristy5eef09f2012-10-16 12:08:28 +000028269fi
28270 if test "$have_ltdl" != 'no'; then
28271 WITH_LTDL_TRUE=
28272 WITH_LTDL_FALSE='#'
28273else
28274 WITH_LTDL_TRUE='#'
28275 WITH_LTDL_FALSE=
28276fi
28277
28278
cristy3ed852e2009-09-05 21:47:34 +000028279#
28280# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28281#
28282LIB_DL=''
28283if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028285$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028286if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028287 $as_echo_n "(cached) " >&6
28288else
28289 ac_check_lib_save_LIBS=$LIBS
28290LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028292/* end confdefs.h. */
28293
28294/* Override any GCC internal prototype to avoid an error.
28295 Use char because int might match the return type of a GCC
28296 builtin and then its argument prototype would still apply. */
28297#ifdef __cplusplus
28298extern "C"
28299#endif
28300char dlopen ();
28301int
28302main ()
28303{
28304return dlopen ();
28305 ;
28306 return 0;
28307}
28308_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028309if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028310 ac_cv_lib_dl_dlopen=yes
28311else
cristy8b350f62009-11-15 23:12:43 +000028312 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028313fi
cristy8b350f62009-11-15 23:12:43 +000028314rm -f core conftest.err conftest.$ac_objext \
28315 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028316LIBS=$ac_check_lib_save_LIBS
28317fi
cristy8b350f62009-11-15 23:12:43 +000028318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028319$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028320if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028321 LIB_DL='-ldl'
28322fi
28323
28324 LIBS="$LIB_DL $LIBS"
28325fi
28326
28327
28328
28329#
28330# Check for Autotrace delegate library.
28331#
28332
28333# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028334if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028335 withval=$with_autotrace; with_autotrace=$withval
28336else
28337 with_autotrace='no'
28338fi
28339
28340
28341if test "$with_autotrace" != 'yes'; then
28342 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28343fi
28344
28345have_autotrace='no'
28346AUTOTRACE_CFLAGS=""
28347AUTOTRACE_LIBS=""
28348AUTOTRACE_PKG=""
28349if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28351$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028352
28353pkg_failed=no
28354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28355$as_echo_n "checking for AUTOTRACE... " >&6; }
28356
28357if test -n "$AUTOTRACE_CFLAGS"; then
28358 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28359 elif test -n "$PKG_CONFIG"; then
28360 if test -n "$PKG_CONFIG" && \
28361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28362 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28363 ac_status=$?
28364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28365 test $ac_status = 0; }; then
28366 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28367else
28368 pkg_failed=yes
28369fi
28370 else
28371 pkg_failed=untried
28372fi
28373if test -n "$AUTOTRACE_LIBS"; then
28374 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28375 elif test -n "$PKG_CONFIG"; then
28376 if test -n "$PKG_CONFIG" && \
28377 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28378 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28379 ac_status=$?
28380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28381 test $ac_status = 0; }; then
28382 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28383else
28384 pkg_failed=yes
28385fi
28386 else
28387 pkg_failed=untried
28388fi
28389
28390
28391
28392if test $pkg_failed = yes; then
28393
28394if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28395 _pkg_short_errors_supported=yes
28396else
28397 _pkg_short_errors_supported=no
28398fi
28399 if test $_pkg_short_errors_supported = yes; then
28400 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28401 else
28402 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28403 fi
28404 # Put the nasty error message in config.log where it belongs
28405 echo "$AUTOTRACE_PKG_ERRORS" >&5
28406
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28408$as_echo "no" >&6; }
28409 have_autotrace=no
28410elif test $pkg_failed = untried; then
28411 have_autotrace=no
28412else
28413 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28414 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28416$as_echo "yes" >&6; }
28417 have_autotrace=yes
28418fi
cristyad38abe2012-12-23 23:03:21 +000028419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28420$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028421fi
28422
28423if test "$have_autotrace" = 'yes'; then
28424 failed=0
28425
cristy8b350f62009-11-15 23:12:43 +000028426$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028427
cristyc6722092012-10-14 00:19:31 +000028428 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028429 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028430 fi
28431fi
28432
cristy73bd4a52010-10-05 11:24:23 +000028433 if test "$have_autotrace" = 'yes'; then
28434 AUTOTRACE_DELEGATE_TRUE=
28435 AUTOTRACE_DELEGATE_FALSE='#'
28436else
28437 AUTOTRACE_DELEGATE_TRUE='#'
28438 AUTOTRACE_DELEGATE_FALSE=
28439fi
28440
cristy3ed852e2009-09-05 21:47:34 +000028441
28442
28443
28444
28445#
28446# Check for Display Postscript delegate library.
28447#
28448
28449# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028450if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028451 withval=$with_dps; with_dps=$withval
28452else
28453 with_dps='yes'
28454fi
28455
28456
28457if test "$with_dps" != 'yes'; then
28458 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28459fi
28460
28461have_dps='no'
28462DPS_LIBS=''
28463if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28465$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028467$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28469$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028470 failed=0
28471 passed=0
28472 PERSIST_CPPFLAGS="$CPPFLAGS"
28473 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028474 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 +000028475if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028476 passed=`expr $passed + 1`
28477else
28478 failed=`expr $failed + 1`
28479fi
28480
28481
28482 # DPS issues:
28483 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28484 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28485 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28486 # ImageMagick itself doesn't use -lXt.
28487 have_libdps='no'
28488 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028490$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028491if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028492 $as_echo_n "(cached) " >&6
28493else
28494 ac_check_lib_save_LIBS=$LIBS
28495LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028497/* end confdefs.h. */
28498
28499/* Override any GCC internal prototype to avoid an error.
28500 Use char because int might match the return type of a GCC
28501 builtin and then its argument prototype would still apply. */
28502#ifdef __cplusplus
28503extern "C"
28504#endif
28505char DPSInitialize ();
28506int
28507main ()
28508{
28509return DPSInitialize ();
28510 ;
28511 return 0;
28512}
28513_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028514if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028515 ac_cv_lib_dps_DPSInitialize=yes
28516else
cristy8b350f62009-11-15 23:12:43 +000028517 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028518fi
cristy8b350f62009-11-15 23:12:43 +000028519rm -f core conftest.err conftest.$ac_objext \
28520 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028521LIBS=$ac_check_lib_save_LIBS
28522fi
cristy8b350f62009-11-15 23:12:43 +000028523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028524$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028525if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028526 have_libdps='yes'
28527else
28528 have_libdps='no'
28529fi
28530
28531 if test "$have_libdps" != 'yes'; then
28532 # Unset cache variable so we can try again.
28533 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028535$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028536if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028537 $as_echo_n "(cached) " >&6
28538else
28539 ac_check_lib_save_LIBS=$LIBS
28540LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028542/* end confdefs.h. */
28543
28544/* Override any GCC internal prototype to avoid an error.
28545 Use char because int might match the return type of a GCC
28546 builtin and then its argument prototype would still apply. */
28547#ifdef __cplusplus
28548extern "C"
28549#endif
28550char DPSInitialize ();
28551int
28552main ()
28553{
28554return DPSInitialize ();
28555 ;
28556 return 0;
28557}
28558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028559if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028560 ac_cv_lib_dps_DPSInitialize=yes
28561else
cristy8b350f62009-11-15 23:12:43 +000028562 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028563fi
cristy8b350f62009-11-15 23:12:43 +000028564rm -f core conftest.err conftest.$ac_objext \
28565 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028566LIBS=$ac_check_lib_save_LIBS
28567fi
cristy8b350f62009-11-15 23:12:43 +000028568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028569$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028570if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028571 have_libdps='yes'
28572else
28573 have_libdps='no'
28574fi
28575
28576 if test "$have_libdps" = 'yes'; then
28577 LIBDPS_XT='-lXt'
28578 fi
28579 fi
28580 if test "$have_libdps" = 'yes'; then
28581 passed=`expr $passed + 1`
28582 else
28583 failed=`expr $failed + 1`
28584 fi
cristy8b350f62009-11-15 23:12:43 +000028585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028586$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028587if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028588 $as_echo_n "(cached) " >&6
28589else
28590 ac_check_lib_save_LIBS=$LIBS
28591LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028593/* end confdefs.h. */
28594
28595/* Override any GCC internal prototype to avoid an error.
28596 Use char because int might match the return type of a GCC
28597 builtin and then its argument prototype would still apply. */
28598#ifdef __cplusplus
28599extern "C"
28600#endif
28601char XDPSPixelsPerPoint ();
28602int
28603main ()
28604{
28605return XDPSPixelsPerPoint ();
28606 ;
28607 return 0;
28608}
28609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028610if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028611 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28612else
cristy8b350f62009-11-15 23:12:43 +000028613 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028614fi
cristy8b350f62009-11-15 23:12:43 +000028615rm -f core conftest.err conftest.$ac_objext \
28616 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028617LIBS=$ac_check_lib_save_LIBS
28618fi
cristy8b350f62009-11-15 23:12:43 +000028619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028620$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028621if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028622 passed=`expr $passed + 1`
28623else
28624 failed=`expr $failed + 1`
28625fi
28626
cristy8b350f62009-11-15 23:12:43 +000028627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028628$as_echo_n "checking if DPS package is complete... " >&6; }
28629 if test $passed -gt 0; then
28630 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28632$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028633 have_dps='no (failed tests)'
28634 CPPFLAGS="$PERSIST_CPPFLAGS"
28635 else
28636 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28637 LIBS="$DPS_LIBS $LIBS"
28638
cristy8b350f62009-11-15 23:12:43 +000028639$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028640
cristyad38abe2012-12-23 23:03:21 +000028641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28642$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028643 have_dps='yes'
28644 fi
28645 else
cristyad38abe2012-12-23 23:03:21 +000028646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28647$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028648 CPPFLAGS=$PERSIST_CPPFLAGS
28649 fi
28650fi
cristy73bd4a52010-10-05 11:24:23 +000028651 if test "$have_dps" = 'yes'; then
28652 DPS_DELEGATE_TRUE=
28653 DPS_DELEGATE_FALSE='#'
28654else
28655 DPS_DELEGATE_TRUE='#'
28656 DPS_DELEGATE_FALSE=
28657fi
28658
cristy3ed852e2009-09-05 21:47:34 +000028659
28660
28661
28662#
28663# Check for DJVU delegate library.
28664#
28665
28666# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028667if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028668 withval=$with_djvu; with_djvu=$withval
28669else
28670 with_djvu='yes'
28671fi
28672
28673
28674if test "$with_djvu" != 'yes'; then
28675 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28676fi
28677
28678have_djvu='no'
28679DJVU_LIBS=''
28680if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28682$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028684$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28686$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028687 failed=0
28688 passed=0
cristy8b350f62009-11-15 23:12:43 +000028689 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 +000028690if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028691 passed=`expr $passed + 1`
28692else
28693 failed=`expr $failed + 1`
28694fi
28695
28696
cristy8b350f62009-11-15 23:12:43 +000028697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028698$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028699if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028700 $as_echo_n "(cached) " >&6
28701else
28702 ac_check_lib_save_LIBS=$LIBS
28703LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028705/* end confdefs.h. */
28706
28707/* Override any GCC internal prototype to avoid an error.
28708 Use char because int might match the return type of a GCC
28709 builtin and then its argument prototype would still apply. */
28710#ifdef __cplusplus
28711extern "C"
28712#endif
28713char ddjvu_context_create ();
28714int
28715main ()
28716{
28717return ddjvu_context_create ();
28718 ;
28719 return 0;
28720}
28721_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028722if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028723 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28724else
cristy8b350f62009-11-15 23:12:43 +000028725 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028726fi
cristy8b350f62009-11-15 23:12:43 +000028727rm -f core conftest.err conftest.$ac_objext \
28728 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028729LIBS=$ac_check_lib_save_LIBS
28730fi
cristy8b350f62009-11-15 23:12:43 +000028731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028732$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028733if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028734 passed=`expr $passed + 1`
28735else
28736 failed=`expr $failed + 1`
28737fi
28738
cristy8b350f62009-11-15 23:12:43 +000028739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028740$as_echo_n "checking if DJVU package is complete... " >&6; }
28741 if test $passed -gt 0; then
28742 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28744$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028745 have_djvu='no (failed tests)'
28746 else
28747 DJVU_LIBS='-ldjvulibre'
28748 LIBS="$DJVU_LIBS $LIBS"
28749
cristy8b350f62009-11-15 23:12:43 +000028750$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028751
cristyad38abe2012-12-23 23:03:21 +000028752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28753$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028754 have_djvu='yes'
28755 fi
28756 else
cristyad38abe2012-12-23 23:03:21 +000028757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28758$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028759 fi
28760fi
cristy73bd4a52010-10-05 11:24:23 +000028761 if test "$have_djvu" = 'yes'; then
28762 DJVU_DELEGATE_TRUE=
28763 DJVU_DELEGATE_FALSE='#'
28764else
28765 DJVU_DELEGATE_TRUE='#'
28766 DJVU_DELEGATE_FALSE=
28767fi
28768
cristy3ed852e2009-09-05 21:47:34 +000028769
28770
28771
28772#
cristy430a7312010-01-21 20:44:04 +000028773# Set DejaVu font directory.
28774#
28775
28776# Check whether --with-dejavu-font-dir was given.
28777if test "${with_dejavu_font_dir+set}" = set; then :
28778 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28779else
28780 with_dejavu_font_dir='default'
28781fi
28782
28783
28784if test "$with_dejavu_font_dir" != 'default'; then
28785 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28786fi
28787
28788
28789#
cristy3ed852e2009-09-05 21:47:34 +000028790# Check for FFTW delegate library.
28791#
28792
28793# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028794if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028795 withval=$with_fftw; with_fftw=$withval
28796else
28797 with_fftw='yes'
28798fi
28799
28800
28801if test "$with_fftw" != 'yes'; then
28802 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28803fi
28804
cristy81beccd2011-10-03 18:17:24 +000028805have_fftw='no'
28806FFTW_LIBS=''
28807if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28809$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28811$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28813$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028814 failed=0
28815 passed=0
28816 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28817if test "x$ac_cv_header_fftw3_h" = xyes; then :
28818 passed=`expr $passed + 1`
28819else
28820 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028821fi
28822
cristy81beccd2011-10-03 18:17:24 +000028823
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28825$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28826if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28827 $as_echo_n "(cached) " >&6
28828else
28829 ac_check_lib_save_LIBS=$LIBS
28830LIBS="-lfftw3 $LIBS"
28831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28832/* end confdefs.h. */
28833
28834/* Override any GCC internal prototype to avoid an error.
28835 Use char because int might match the return type of a GCC
28836 builtin and then its argument prototype would still apply. */
28837#ifdef __cplusplus
28838extern "C"
28839#endif
28840char fftw_execute ();
28841int
28842main ()
28843{
28844return fftw_execute ();
28845 ;
28846 return 0;
28847}
28848_ACEOF
28849if ac_fn_c_try_link "$LINENO"; then :
28850 ac_cv_lib_fftw3_fftw_execute=yes
28851else
28852 ac_cv_lib_fftw3_fftw_execute=no
28853fi
28854rm -f core conftest.err conftest.$ac_objext \
28855 conftest$ac_exeext conftest.$ac_ext
28856LIBS=$ac_check_lib_save_LIBS
28857fi
28858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28859$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28860if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28861 passed=`expr $passed + 1`
28862else
28863 failed=`expr $failed + 1`
28864fi
28865
28866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28867$as_echo_n "checking if FFTW package is complete... " >&6; }
28868 if test $passed -gt 0; then
28869 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28871$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028872 have_fftw='no (failed tests)'
28873 else
28874 FFTW_LIBS='-lfftw3'
28875 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028876
cristy8b350f62009-11-15 23:12:43 +000028877$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028878
cristyad38abe2012-12-23 23:03:21 +000028879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28880$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028881 have_fftw='yes'
28882 fi
28883 else
cristyad38abe2012-12-23 23:03:21 +000028884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28885$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028886 fi
28887fi
cristy73bd4a52010-10-05 11:24:23 +000028888 if test "$have_fftw" = 'yes'; then
28889 FFTW_DELEGATE_TRUE=
28890 FFTW_DELEGATE_FALSE='#'
28891else
28892 FFTW_DELEGATE_TRUE='#'
28893 FFTW_DELEGATE_FALSE=
28894fi
28895
cristy3ed852e2009-09-05 21:47:34 +000028896
28897
28898
28899#
28900# Check for FlashPIX delegate library.
28901#
28902
28903# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028904if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028905 withval=$with_fpx; with_fpx=$withval
28906else
28907 with_fpx='yes'
28908fi
28909
28910
28911if test "$with_fpx" != 'yes'; then
28912 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28913fi
28914
28915have_fpx='no'
28916FPX_LIBS=''
28917if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28919$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028921$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28923$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028924 failed=0
28925 passed=0
28926 ac_ext=cpp
28927ac_cpp='$CXXCPP $CPPFLAGS'
28928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28931
28932
cristy8b350f62009-11-15 23:12:43 +000028933ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028934if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028935 passed=`expr $passed + 1`
28936else
28937 failed=`expr $failed + 1`
28938fi
28939
28940
cristy8b350f62009-11-15 23:12:43 +000028941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028942$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028943if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028944 $as_echo_n "(cached) " >&6
28945else
28946 ac_check_lib_save_LIBS=$LIBS
28947LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028949/* end confdefs.h. */
28950
28951/* Override any GCC internal prototype to avoid an error.
28952 Use char because int might match the return type of a GCC
28953 builtin and then its argument prototype would still apply. */
28954#ifdef __cplusplus
28955extern "C"
28956#endif
28957char FPX_OpenImageByFilename ();
28958int
28959main ()
28960{
28961return FPX_OpenImageByFilename ();
28962 ;
28963 return 0;
28964}
28965_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028966if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028967 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28968else
cristy8b350f62009-11-15 23:12:43 +000028969 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028970fi
cristy8b350f62009-11-15 23:12:43 +000028971rm -f core conftest.err conftest.$ac_objext \
28972 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028973LIBS=$ac_check_lib_save_LIBS
28974fi
cristy8b350f62009-11-15 23:12:43 +000028975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028976$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028977if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028978 passed=`expr $passed + 1`
28979else
28980 failed=`expr $failed + 1`
28981fi
28982
28983 ac_ext=c
28984ac_cpp='$CPP $CPPFLAGS'
28985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28987ac_compiler_gnu=$ac_cv_c_compiler_gnu
28988
cristy8b350f62009-11-15 23:12:43 +000028989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028990$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28991 if test $passed -gt 0; then
28992 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28994$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028995 have_fpx='no (failed tests)'
28996 else
28997 FPX_LIBS='-lfpx'
28998
cristy8b350f62009-11-15 23:12:43 +000028999$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029000
cristyad38abe2012-12-23 23:03:21 +000029001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29002$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029003 have_fpx='yes'
29004 PERLMAINCC="$CXX"
29005 fi
29006 else
cristyad38abe2012-12-23 23:03:21 +000029007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29008$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029009 fi
29010fi
cristy73bd4a52010-10-05 11:24:23 +000029011 if test "$have_fpx" = 'yes'; then
29012 FPX_DELEGATE_TRUE=
29013 FPX_DELEGATE_FALSE='#'
29014else
29015 FPX_DELEGATE_TRUE='#'
29016 FPX_DELEGATE_FALSE=
29017fi
29018
cristy3ed852e2009-09-05 21:47:34 +000029019
29020
29021
29022#
29023# Check for fontconfig delegate library.
29024#
29025
29026# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029027if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029028 withval=$with_fontconfig; with_fontconfig=$withval
29029else
cristyfc3d0222012-02-07 15:05:57 +000029030 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029031fi
29032
29033
29034if test "$with_fontconfig" != 'yes'; then
29035 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29036fi
29037
29038have_fontconfig='no'
29039FONTCONFIG_CFLAGS=""
29040FONTCONFIG_LIBS=""
29041FONTCONFIG_PKG=""
29042if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29044$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029045
29046pkg_failed=no
29047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29048$as_echo_n "checking for FONTCONFIG... " >&6; }
29049
29050if test -n "$FONTCONFIG_CFLAGS"; then
29051 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29052 elif test -n "$PKG_CONFIG"; then
29053 if test -n "$PKG_CONFIG" && \
29054 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29055 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29056 ac_status=$?
29057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29058 test $ac_status = 0; }; then
29059 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29060else
29061 pkg_failed=yes
29062fi
29063 else
29064 pkg_failed=untried
29065fi
29066if test -n "$FONTCONFIG_LIBS"; then
29067 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29068 elif test -n "$PKG_CONFIG"; then
29069 if test -n "$PKG_CONFIG" && \
29070 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29071 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29072 ac_status=$?
29073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29074 test $ac_status = 0; }; then
29075 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29076else
29077 pkg_failed=yes
29078fi
29079 else
29080 pkg_failed=untried
29081fi
29082
29083
29084
29085if test $pkg_failed = yes; then
29086
29087if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29088 _pkg_short_errors_supported=yes
29089else
29090 _pkg_short_errors_supported=no
29091fi
29092 if test $_pkg_short_errors_supported = yes; then
29093 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29094 else
29095 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29096 fi
29097 # Put the nasty error message in config.log where it belongs
29098 echo "$FONTCONFIG_PKG_ERRORS" >&5
29099
29100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29101$as_echo "no" >&6; }
29102 have_fontconfig=no
29103elif test $pkg_failed = untried; then
29104 have_fontconfig=no
29105else
29106 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29107 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29109$as_echo "yes" >&6; }
29110 have_fontconfig=yes
29111fi
cristyad38abe2012-12-23 23:03:21 +000029112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29113$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029114fi
29115
29116if test "$have_fontconfig" = 'yes'; then
29117
cristy8b350f62009-11-15 23:12:43 +000029118$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029119
cristyc6722092012-10-14 00:19:31 +000029120 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029121 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029122 fi
cristy3ed852e2009-09-05 21:47:34 +000029123fi
29124
cristy73bd4a52010-10-05 11:24:23 +000029125 if test "$have_fontconfig" = 'yes'; then
29126 FONTCONFIG_DELEGATE_TRUE=
29127 FONTCONFIG_DELEGATE_FALSE='#'
29128else
29129 FONTCONFIG_DELEGATE_TRUE='#'
29130 FONTCONFIG_DELEGATE_FALSE=
29131fi
29132
cristy3ed852e2009-09-05 21:47:34 +000029133
29134
29135
29136
29137#
cristy03f187e2013-01-24 00:22:19 +000029138# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029139#
29140
29141# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029142if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029143 withval=$with_freetype; with_freetype=$withval
29144else
29145 with_freetype='yes'
29146fi
29147
29148
cristy3ed852e2009-09-05 21:47:34 +000029149if test "$with_freetype" != 'yes'; then
29150 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29151fi
29152
cristy81beccd2011-10-03 18:17:24 +000029153have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029154FREETYPE_CFLAGS=""
29155FREETYPE_LIBS=""
29156FREETYPE_PKG=""
29157if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29159$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029160
29161pkg_failed=no
29162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29163$as_echo_n "checking for FREETYPE... " >&6; }
29164
29165if test -n "$FREETYPE_CFLAGS"; then
29166 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29167 elif test -n "$PKG_CONFIG"; then
29168 if test -n "$PKG_CONFIG" && \
29169 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29170 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29171 ac_status=$?
29172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29173 test $ac_status = 0; }; then
29174 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29175else
29176 pkg_failed=yes
29177fi
29178 else
29179 pkg_failed=untried
29180fi
29181if test -n "$FREETYPE_LIBS"; then
29182 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29183 elif test -n "$PKG_CONFIG"; then
29184 if test -n "$PKG_CONFIG" && \
29185 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29186 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29187 ac_status=$?
29188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29189 test $ac_status = 0; }; then
29190 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29191else
29192 pkg_failed=yes
29193fi
29194 else
29195 pkg_failed=untried
29196fi
29197
29198
29199
29200if test $pkg_failed = yes; then
29201
29202if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29203 _pkg_short_errors_supported=yes
29204else
29205 _pkg_short_errors_supported=no
29206fi
29207 if test $_pkg_short_errors_supported = yes; then
29208 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29209 else
29210 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29211 fi
29212 # Put the nasty error message in config.log where it belongs
29213 echo "$FREETYPE_PKG_ERRORS" >&5
29214
29215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29216$as_echo "no" >&6; }
29217 have_freetype=no
29218elif test $pkg_failed = untried; then
29219 have_freetype=no
29220else
29221 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29222 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29224$as_echo "yes" >&6; }
29225 have_freetype=yes
29226fi
cristyad38abe2012-12-23 23:03:21 +000029227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29228$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029229fi
29230
cristy03f187e2013-01-24 00:22:19 +000029231if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029232
cristy8b350f62009-11-15 23:12:43 +000029233$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029234
cristy03f187e2013-01-24 00:22:19 +000029235 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029236fi
cristy03f187e2013-01-24 00:22:19 +000029237
cristy73bd4a52010-10-05 11:24:23 +000029238 if test "$have_freetype" = 'yes'; then
29239 FREETYPE_DELEGATE_TRUE=
29240 FREETYPE_DELEGATE_FALSE='#'
29241else
29242 FREETYPE_DELEGATE_TRUE='#'
29243 FREETYPE_DELEGATE_FALSE=
29244fi
29245
cristy3ed852e2009-09-05 21:47:34 +000029246
29247
29248
cristy03f187e2013-01-24 00:22:19 +000029249
cristy3ed852e2009-09-05 21:47:34 +000029250#
29251# Check for Ghostscript library or framework.
29252#
29253# Test for iapi.h & test for gsapi_new_instance in -lgs
29254# or -framework Ghostscript
29255
29256
29257# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029258if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029259 withval=$with_gslib; with_gslib=$withval
29260else
29261 with_gslib='no'
29262fi
29263
29264
cristyb7931f12009-09-25 10:22:21 +000029265gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029266if test "$with_gslib" != 'yes'; then
29267 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29268fi
29269
29270have_gslib='no'
29271GS_LIBS=''
29272if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29274$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029276$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29278$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029279 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029280 failed=0
29281 passed=0
cristy8b350f62009-11-15 23:12:43 +000029282 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 +000029283if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029284 passed=`expr $passed + 1`
29285else
29286 failed=`expr $failed + 1`
29287fi
29288
29289
cristy8b350f62009-11-15 23:12:43 +000029290 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 +000029291if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029292 passed=`expr $passed + 1`
29293else
29294 failed=`expr $failed + 1`
29295fi
29296
29297
cristy73bd4a52010-10-05 11:24:23 +000029298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29299$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029300if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029301 $as_echo_n "(cached) " >&6
29302else
29303 ac_check_framework_save_LIBS=$LIBS
29304LIBS="-framework Ghostscript $LIBS"
29305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29306/* end confdefs.h. */
29307
29308/* Override any GCC internal prototype to avoid an error.
29309 Use char because int might match the return type of a GCC
29310 builtin and then its argument prototype would still apply. */
29311#ifdef __cplusplus
29312extern "C"
29313#endif
29314char gsapi_new_instance ();
29315int
29316main ()
29317{
29318return gsapi_new_instance ();
29319 ;
29320 return 0;
29321}
29322_ACEOF
29323if ac_fn_c_try_link "$LINENO"; then :
29324 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29325else
29326 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29327fi
29328rm -f core conftest.err conftest.$ac_objext \
29329 conftest$ac_exeext conftest.$ac_ext
29330LIBS=$ac_check_framework_save_LIBS
29331fi
29332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29333$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29334if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29335 framework=`expr $framework + 1`
29336else
29337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029338$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029339if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029340 $as_echo_n "(cached) " >&6
29341else
29342 ac_check_lib_save_LIBS=$LIBS
29343LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029345/* end confdefs.h. */
29346
29347/* Override any GCC internal prototype to avoid an error.
29348 Use char because int might match the return type of a GCC
29349 builtin and then its argument prototype would still apply. */
29350#ifdef __cplusplus
29351extern "C"
29352#endif
29353char gsapi_new_instance ();
29354int
29355main ()
29356{
29357return gsapi_new_instance ();
29358 ;
29359 return 0;
29360}
29361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029362if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029363 ac_cv_lib_gs_gsapi_new_instance=yes
29364else
cristy8b350f62009-11-15 23:12:43 +000029365 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029366fi
cristy8b350f62009-11-15 23:12:43 +000029367rm -f core conftest.err conftest.$ac_objext \
29368 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029369LIBS=$ac_check_lib_save_LIBS
29370fi
cristy8b350f62009-11-15 23:12:43 +000029371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029372$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029373if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029374 passed=`expr $passed + 1`
29375else
29376 failed=`expr $failed + 1`
29377fi
cristy73bd4a52010-10-05 11:24:23 +000029378
29379fi
cristy8b350f62009-11-15 23:12:43 +000029380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029381$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29382 if test $passed -gt 0; then
29383 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29385$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029386 have_gslib='no (failed tests)'
29387 else
29388 if test $framework -gt 0; then
29389 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029390 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29392$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029393 else
cristyad38abe2012-12-23 23:03:21 +000029394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29395$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029396 GS_LIBS='-lgs'
29397 fi
29398 LIBS="$GS_LIBS $LIBS"
29399
cristy8b350f62009-11-15 23:12:43 +000029400$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029401
29402 have_gslib='yes'
29403 fi
29404 else
cristyad38abe2012-12-23 23:03:21 +000029405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29406$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029407 fi
29408fi
cristy73bd4a52010-10-05 11:24:23 +000029409 if test "$have_gslib" = 'yes'; then
29410 GS_DELEGATE_TRUE=
29411 GS_DELEGATE_FALSE='#'
29412else
29413 GS_DELEGATE_TRUE='#'
29414 GS_DELEGATE_FALSE=
29415fi
29416
cristy3ed852e2009-09-05 21:47:34 +000029417
29418
29419# Set default font search path
29420
29421# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029422if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029423 withval=$with_fontpath; with_fontpath=$withval
29424else
29425 with_fontpath=''
29426fi
29427
29428
29429if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29430 with_fontpath=''
29431else
29432
29433cat >>confdefs.h <<_ACEOF
29434#define MAGICK_FONT_PATH "$with_fontpath"
29435_ACEOF
29436
29437fi
29438if test "$with_fontpath=" != ''; then
29439 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29440fi
29441
29442# Set Ghostscript font directory
29443
29444# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029445if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029446 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29447else
29448 with_gs_font_dir='default'
29449fi
29450
29451
29452if test "$with_gs_font_dir" != 'default'; then
29453 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29454fi
29455
29456
29457#
29458# Check for GVC delegate library.
29459#
29460
29461# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029462if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029463 withval=$with_gvc; with_gvc=$withval
29464else
cristy1b70dc82012-07-01 23:15:05 +000029465 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029466fi
29467
29468
29469if test "$with_gvc" != 'yes'; then
29470 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29471fi
29472
29473GVC_PKG=""
29474if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29476$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029477
29478pkg_failed=no
29479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29480$as_echo_n "checking for GVC... " >&6; }
29481
29482if test -n "$GVC_CFLAGS"; then
29483 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29484 elif test -n "$PKG_CONFIG"; then
29485 if test -n "$PKG_CONFIG" && \
29486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29487 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29488 ac_status=$?
29489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29490 test $ac_status = 0; }; then
29491 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29492else
29493 pkg_failed=yes
29494fi
29495 else
29496 pkg_failed=untried
29497fi
29498if test -n "$GVC_LIBS"; then
29499 pkg_cv_GVC_LIBS="$GVC_LIBS"
29500 elif test -n "$PKG_CONFIG"; then
29501 if test -n "$PKG_CONFIG" && \
29502 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29503 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29504 ac_status=$?
29505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29506 test $ac_status = 0; }; then
29507 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29508else
29509 pkg_failed=yes
29510fi
29511 else
29512 pkg_failed=untried
29513fi
29514
29515
29516
29517if test $pkg_failed = yes; then
29518
29519if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29520 _pkg_short_errors_supported=yes
29521else
29522 _pkg_short_errors_supported=no
29523fi
29524 if test $_pkg_short_errors_supported = yes; then
29525 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29526 else
29527 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29528 fi
29529 # Put the nasty error message in config.log where it belongs
29530 echo "$GVC_PKG_ERRORS" >&5
29531
29532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29533$as_echo "no" >&6; }
29534 have_gvc=no
29535elif test $pkg_failed = untried; then
29536 have_gvc=no
29537else
29538 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29539 GVC_LIBS=$pkg_cv_GVC_LIBS
29540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29541$as_echo "yes" >&6; }
29542 have_gvc=yes
29543fi
cristyad38abe2012-12-23 23:03:21 +000029544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29545$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029546fi
29547
29548if test "$have_gvc" = 'yes'; then
29549
cristy8b350f62009-11-15 23:12:43 +000029550$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029551
cristyc6722092012-10-14 00:19:31 +000029552 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029553 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29554 fi
29555fi
29556
cristy73bd4a52010-10-05 11:24:23 +000029557 if test "$have_gvc" = 'yes'; then
29558 GVC_DELEGATE_TRUE=
29559 GVC_DELEGATE_FALSE='#'
29560else
29561 GVC_DELEGATE_TRUE='#'
29562 GVC_DELEGATE_FALSE=
29563fi
29564
cristy3ed852e2009-09-05 21:47:34 +000029565
29566
29567
29568
29569#
29570# Check for JBIG delegate library.
29571#
29572
29573
29574# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029575if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029576 withval=$with_jbig; with_jbig=$withval
29577else
29578 with_jbig='yes'
29579fi
29580
29581
29582have_jbig='no'
29583JBIG_LIBS=''
29584if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29586$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029588$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29590$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029591 failed=0
29592 passed=0
cristy8b350f62009-11-15 23:12:43 +000029593 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029594if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029595 passed=`expr $passed + 1`
29596else
29597 failed=`expr $failed + 1`
29598fi
29599
29600
cristy8b350f62009-11-15 23:12:43 +000029601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029602$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029603if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029604 $as_echo_n "(cached) " >&6
29605else
29606 ac_check_lib_save_LIBS=$LIBS
29607LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029609/* end confdefs.h. */
29610
29611/* Override any GCC internal prototype to avoid an error.
29612 Use char because int might match the return type of a GCC
29613 builtin and then its argument prototype would still apply. */
29614#ifdef __cplusplus
29615extern "C"
29616#endif
29617char jbg_dec_init ();
29618int
29619main ()
29620{
29621return jbg_dec_init ();
29622 ;
29623 return 0;
29624}
29625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029626if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029627 ac_cv_lib_jbig_jbg_dec_init=yes
29628else
cristy8b350f62009-11-15 23:12:43 +000029629 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029630fi
cristy8b350f62009-11-15 23:12:43 +000029631rm -f core conftest.err conftest.$ac_objext \
29632 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029633LIBS=$ac_check_lib_save_LIBS
29634fi
cristy8b350f62009-11-15 23:12:43 +000029635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029636$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029637if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029638 passed=`expr $passed + 1`
29639else
29640 failed=`expr $failed + 1`
29641fi
29642
cristy8b350f62009-11-15 23:12:43 +000029643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029644$as_echo_n "checking if JBIG package is complete... " >&6; }
29645 if test $passed -gt 0; then
29646 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29648$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029649 have_jbig='no (failed tests)'
29650 else
29651 JBIG_LIBS='-ljbig'
29652 LIBS="$JBIG_LIBS $LIBS"
29653
cristy8b350f62009-11-15 23:12:43 +000029654$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029655
cristyad38abe2012-12-23 23:03:21 +000029656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29657$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029658 have_jbig='yes'
29659 fi
29660 else
cristyad38abe2012-12-23 23:03:21 +000029661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29662$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029663 fi
29664fi
cristy73bd4a52010-10-05 11:24:23 +000029665 if test "$have_jbig" = 'yes'; then
29666 JBIG_DELEGATE_TRUE=
29667 JBIG_DELEGATE_FALSE='#'
29668else
29669 JBIG_DELEGATE_TRUE='#'
29670 JBIG_DELEGATE_FALSE=
29671fi
29672
cristy3ed852e2009-09-05 21:47:34 +000029673
29674
29675
29676#
29677# Check for JPEG delegate library.
29678#
29679
29680# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029681if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029682 withval=$with_jpeg; with_jpeg=$withval
29683else
29684 with_jpeg='yes'
29685fi
29686
29687
29688if test "$with_jpeg" != 'yes'; then
29689 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29690fi
29691
29692have_jpeg='no'
29693JPEG_LIBS=''
29694if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29696$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029698$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29700$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029701 failed=0
29702 passed=0
cristy8b350f62009-11-15 23:12:43 +000029703 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029704if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029705 passed=`expr $passed + 1`
29706else
29707 failed=`expr $failed + 1`
29708fi
29709
29710
cristy8b350f62009-11-15 23:12:43 +000029711 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029712if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029713 passed=`expr $passed + 1`
29714else
29715 failed=`expr $failed + 1`
29716fi
29717
29718
cristy8b350f62009-11-15 23:12:43 +000029719 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029720if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029721 passed=`expr $passed + 1`
29722else
29723 failed=`expr $failed + 1`
29724fi
29725
29726
cristy8b350f62009-11-15 23:12:43 +000029727 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029728if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029729 passed=`expr $passed + 1`
29730else
29731 failed=`expr $failed + 1`
29732fi
29733
29734
cristy8b350f62009-11-15 23:12:43 +000029735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029736$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029737if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029738 $as_echo_n "(cached) " >&6
29739else
29740 ac_check_lib_save_LIBS=$LIBS
29741LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029743/* end confdefs.h. */
29744
29745/* Override any GCC internal prototype to avoid an error.
29746 Use char because int might match the return type of a GCC
29747 builtin and then its argument prototype would still apply. */
29748#ifdef __cplusplus
29749extern "C"
29750#endif
29751char jpeg_read_header ();
29752int
29753main ()
29754{
29755return jpeg_read_header ();
29756 ;
29757 return 0;
29758}
29759_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029760if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029761 ac_cv_lib_jpeg_jpeg_read_header=yes
29762else
cristy8b350f62009-11-15 23:12:43 +000029763 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029764fi
cristy8b350f62009-11-15 23:12:43 +000029765rm -f core conftest.err conftest.$ac_objext \
29766 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029767LIBS=$ac_check_lib_save_LIBS
29768fi
cristy8b350f62009-11-15 23:12:43 +000029769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029770$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029771if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029772 passed=`expr $passed + 1`
29773else
29774 failed=`expr $failed + 1`
29775fi
29776
29777
29778# Test for compatible JPEG library
29779if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029781$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029782if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029783 $as_echo_n "(cached) " >&6
29784else
cristy8b350f62009-11-15 23:12:43 +000029785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029786/* end confdefs.h. */
29787#include <stdio.h>
29788#include <stdlib.h>
29789#include <jpeglib.h>
29790
29791int
29792main ()
29793{
29794
29795#if JPEG_LIB_VERSION < 62
29796#error IJG JPEG library must be version 6b or newer!
29797#endif
29798return 0;
29799
29800 ;
29801 return 0;
29802}
29803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029804if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029805 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29806else
cristy8b350f62009-11-15 23:12:43 +000029807 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029808fi
cristy3ed852e2009-09-05 21:47:34 +000029809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29810fi
cristy8b350f62009-11-15 23:12:43 +000029811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029812$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29813fi
cristy8b350f62009-11-15 23:12:43 +000029814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029815$as_echo_n "checking if JPEG package is complete... " >&6; }
29816 if test $passed -gt 0; then
29817 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29819$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029820 have_jpeg='no (failed tests)'
29821 else
29822 JPEG_LIBS='-ljpeg'
29823 LIBS="$JPEG_LIBS $LIBS"
29824
cristy8b350f62009-11-15 23:12:43 +000029825$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029826
cristyad38abe2012-12-23 23:03:21 +000029827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29828$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029829 have_jpeg='yes'
29830 fi
29831 else
cristyad38abe2012-12-23 23:03:21 +000029832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29833$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029834 fi
29835fi
cristy73bd4a52010-10-05 11:24:23 +000029836 if test "$have_jpeg" = 'yes'; then
29837 JPEG_DELEGATE_TRUE=
29838 JPEG_DELEGATE_FALSE='#'
29839else
29840 JPEG_DELEGATE_TRUE='#'
29841 JPEG_DELEGATE_FALSE=
29842fi
29843
cristy3ed852e2009-09-05 21:47:34 +000029844
29845
29846
29847#
29848# Check for JPEG Version 2 delegate library.
29849#
29850
29851# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029852if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029853 withval=$with_jp2; with_jp2=$withval
29854else
29855 with_jp2='yes'
29856fi
29857
29858
29859if test "$with_jp2" != 'yes'; then
29860 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29861fi
29862
29863have_jp2='no'
29864JP2_LIBS=''
29865if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29867$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029869$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29871$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029872 failed=0
29873 passed=0
cristy8b350f62009-11-15 23:12:43 +000029874 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 +000029875if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029876 passed=`expr $passed + 1`
29877else
29878 failed=`expr $failed + 1`
29879fi
29880
29881
cristy8b350f62009-11-15 23:12:43 +000029882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029883$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029884if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029885 $as_echo_n "(cached) " >&6
29886else
29887 ac_check_lib_save_LIBS=$LIBS
29888LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029890/* end confdefs.h. */
29891
29892/* Override any GCC internal prototype to avoid an error.
29893 Use char because int might match the return type of a GCC
29894 builtin and then its argument prototype would still apply. */
29895#ifdef __cplusplus
29896extern "C"
29897#endif
29898char jas_stream_fopen ();
29899int
29900main ()
29901{
29902return jas_stream_fopen ();
29903 ;
29904 return 0;
29905}
29906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029907if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029908 ac_cv_lib_jasper_jas_stream_fopen=yes
29909else
cristy8b350f62009-11-15 23:12:43 +000029910 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029911fi
cristy8b350f62009-11-15 23:12:43 +000029912rm -f core conftest.err conftest.$ac_objext \
29913 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029914LIBS=$ac_check_lib_save_LIBS
29915fi
cristy8b350f62009-11-15 23:12:43 +000029916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029917$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029918if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029919 passed=`expr $passed + 1`
29920else
29921 failed=`expr $failed + 1`
29922fi
29923
cristy8b350f62009-11-15 23:12:43 +000029924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029925$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29926 if test $passed -gt 0; then
29927 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29929$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029930 have_jp2='no (failed tests)'
29931 else
29932 JP2_LIBS='-ljasper'
29933 LIBS="$JP2_LIBS $LIBS"
29934
cristy8b350f62009-11-15 23:12:43 +000029935$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029936
cristyad38abe2012-12-23 23:03:21 +000029937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29938$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029939 have_jp2='yes'
29940 fi
29941 else
cristyad38abe2012-12-23 23:03:21 +000029942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29943$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029944 fi
29945fi
cristy73bd4a52010-10-05 11:24:23 +000029946 if test "$have_jp2" = 'yes'; then
29947 JP2_DELEGATE_TRUE=
29948 JP2_DELEGATE_FALSE='#'
29949else
29950 JP2_DELEGATE_TRUE='#'
29951 JP2_DELEGATE_FALSE=
29952fi
29953
cristy3ed852e2009-09-05 21:47:34 +000029954
29955
29956
29957#
29958# Check for LCMS delegate library.
29959#
cristy71203402010-06-18 13:12:03 +000029960# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029961
29962# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029963if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029964 withval=$with_lcms; with_lcms=$withval
29965else
29966 with_lcms='yes'
29967fi
29968
cristy71203402010-06-18 13:12:03 +000029969if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029970 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29971fi
29972
cristy71203402010-06-18 13:12:03 +000029973# Disable LCMS2.
29974
29975# Check whether --with-lcms2 was given.
29976if test "${with_lcms2+set}" = set; then :
29977 withval=$with_lcms2; with_lcms2=$withval
29978else
29979 with_lcms2='yes'
29980fi
29981
29982if test "$with_lcms2" != 'yes' ; then
29983 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29984fi
29985
29986have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029987LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029988if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29990$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29992$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29994$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029995 failed=0
29996 passed=0
29997 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029998
29999 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030000 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030001if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030002 have_lcms_header='yes'
30003fi
30004
30005
30006 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030007
30008$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30009
cristy71203402010-06-18 13:12:03 +000030010 passed=`expr $passed + 1`
30011 fi
30012
30013 # Check for <lcms2/lcms2.h)
30014 if test "$have_lcms_header" != 'yes'; then
30015 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 +000030016if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030017 have_lcms_header='yes'
30018fi
30019
30020
cristy71203402010-06-18 13:12:03 +000030021 if test "$have_lcms_header" = 'yes'; then
30022 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030023
cristy71203402010-06-18 13:12:03 +000030024$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030025
cristy71203402010-06-18 13:12:03 +000030026 fi
cristyd09bcf92010-03-25 03:04:45 +000030027 fi
cristy71203402010-06-18 13:12:03 +000030028
30029 # Failed to find lcms header?
30030 if test "$have_lcms_header" != 'yes'; then
30031 failed=`expr $failed + 1`
30032 fi
30033
30034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30035$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030036if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030037 $as_echo_n "(cached) " >&6
30038else
30039 ac_check_lib_save_LIBS=$LIBS
30040LIBS="-llcms2 $LIBS"
30041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30042/* end confdefs.h. */
30043
30044/* Override any GCC internal prototype to avoid an error.
30045 Use char because int might match the return type of a GCC
30046 builtin and then its argument prototype would still apply. */
30047#ifdef __cplusplus
30048extern "C"
30049#endif
cristy71203402010-06-18 13:12:03 +000030050char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030051int
30052main ()
30053{
cristy71203402010-06-18 13:12:03 +000030054return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030055 ;
30056 return 0;
30057}
30058_ACEOF
30059if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030060 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030061else
cristy71203402010-06-18 13:12:03 +000030062 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030063fi
30064rm -f core conftest.err conftest.$ac_objext \
30065 conftest$ac_exeext conftest.$ac_ext
30066LIBS=$ac_check_lib_save_LIBS
30067fi
cristy71203402010-06-18 13:12:03 +000030068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30069$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030070if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030071 passed=`expr $passed + 1`
30072else
30073 failed=`expr $failed + 1`
30074fi
30075
cristy71203402010-06-18 13:12:03 +000030076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30077$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030078 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030079 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30081$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030082 have_lcms2='no (failed tests)'
30083 else
30084 LCMS_LIBS='-llcms2'
30085 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30087$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030088 have_lcms2='yes'
30089 fi
cristyd09bcf92010-03-25 03:04:45 +000030090 else
cristyad38abe2012-12-23 23:03:21 +000030091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30092$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030093 fi
30094fi
30095
cristy71203402010-06-18 13:12:03 +000030096#
30097# Check for LCMS v1 (1.11 or later)
30098#
30099if test $have_lcms2 = 'yes'; then
30100 with_lcms='no'
30101fi
30102
30103have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030104if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30106$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30108$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30110$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030111 failed=0
30112 passed=0
30113 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030114
30115 # Check for <lcms.h>
30116 if test "$have_lcms_header" != 'yes'; then
30117 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030118if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030119 have_lcms_header='yes'
30120fi
30121
30122
cristy71203402010-06-18 13:12:03 +000030123 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030124 passed=`expr $passed + 1`
30125
cristy8b350f62009-11-15 23:12:43 +000030126$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030127
cristy71203402010-06-18 13:12:03 +000030128 fi
30129 fi
30130
30131 # Check for <lcms/lcms.h>
30132 if test "$have_lcms_header" != 'yes'; then
30133 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 +000030134if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030135 have_lcms_header='yes'
30136fi
30137
30138
cristy71203402010-06-18 13:12:03 +000030139 if test "$have_lcms_header" = 'yes'; then
30140 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030141
cristy8b350f62009-11-15 23:12:43 +000030142$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030143
cristy71203402010-06-18 13:12:03 +000030144 fi
cristy3ed852e2009-09-05 21:47:34 +000030145 fi
cristy71203402010-06-18 13:12:03 +000030146
30147 # Failed to find lcms header?
30148 if test "$have_lcms_header" != 'yes'; then
30149 failed=`expr $failed + 1`
30150 fi
30151
30152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30153$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030154if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030155 $as_echo_n "(cached) " >&6
30156else
30157 ac_check_lib_save_LIBS=$LIBS
30158LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030160/* end confdefs.h. */
30161
30162/* Override any GCC internal prototype to avoid an error.
30163 Use char because int might match the return type of a GCC
30164 builtin and then its argument prototype would still apply. */
30165#ifdef __cplusplus
30166extern "C"
30167#endif
cristy71203402010-06-18 13:12:03 +000030168char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030169int
30170main ()
30171{
cristy71203402010-06-18 13:12:03 +000030172return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030173 ;
30174 return 0;
30175}
30176_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030177if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030178 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030179else
cristy71203402010-06-18 13:12:03 +000030180 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030181fi
cristy8b350f62009-11-15 23:12:43 +000030182rm -f core conftest.err conftest.$ac_objext \
30183 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030184LIBS=$ac_check_lib_save_LIBS
30185fi
cristy71203402010-06-18 13:12:03 +000030186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30187$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030188if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030189 passed=`expr $passed + 1`
30190else
30191 failed=`expr $failed + 1`
30192fi
30193
cristy8b350f62009-11-15 23:12:43 +000030194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030195$as_echo_n "checking if LCMS package is complete... " >&6; }
30196 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030197 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30199$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030200 have_lcms='no (failed tests)'
30201 else
30202 LCMS_LIBS='-llcms'
30203 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30205$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030206 have_lcms='yes'
30207 fi
cristy3ed852e2009-09-05 21:47:34 +000030208 else
cristyad38abe2012-12-23 23:03:21 +000030209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30210$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030211 fi
30212fi
cristy71203402010-06-18 13:12:03 +000030213
cristy73bd4a52010-10-05 11:24:23 +000030214 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30215 LCMS_DELEGATE_TRUE=
30216 LCMS_DELEGATE_FALSE='#'
30217else
30218 LCMS_DELEGATE_TRUE='#'
30219 LCMS_DELEGATE_FALSE=
30220fi
30221
cristy71203402010-06-18 13:12:03 +000030222if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30223
30224$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30225
30226fi
30227
cristy3ed852e2009-09-05 21:47:34 +000030228
30229
30230
30231#
30232# Check for the LQR (Liquid Rescale) delegate library.
30233#
30234
30235# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030236if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030237 withval=$with_lqr; with_lqr=$withval
30238else
30239 with_lqr='yes'
30240fi
30241
30242
30243if test "$with_lqr" != 'yes'; then
30244 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30245fi
30246
30247have_lqr='no'
30248LQR_CFLAGS=""
30249LQR_LIBS=""
30250LQR_PKG=""
30251if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30253$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030254
30255pkg_failed=no
30256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30257$as_echo_n "checking for LQR... " >&6; }
30258
30259if test -n "$LQR_CFLAGS"; then
30260 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30261 elif test -n "$PKG_CONFIG"; then
30262 if test -n "$PKG_CONFIG" && \
30263 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30264 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30265 ac_status=$?
30266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30267 test $ac_status = 0; }; then
30268 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30269else
30270 pkg_failed=yes
30271fi
30272 else
30273 pkg_failed=untried
30274fi
30275if test -n "$LQR_LIBS"; then
30276 pkg_cv_LQR_LIBS="$LQR_LIBS"
30277 elif test -n "$PKG_CONFIG"; then
30278 if test -n "$PKG_CONFIG" && \
30279 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30280 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30281 ac_status=$?
30282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30283 test $ac_status = 0; }; then
30284 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30285else
30286 pkg_failed=yes
30287fi
30288 else
30289 pkg_failed=untried
30290fi
30291
30292
30293
30294if test $pkg_failed = yes; then
30295
30296if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30297 _pkg_short_errors_supported=yes
30298else
30299 _pkg_short_errors_supported=no
30300fi
30301 if test $_pkg_short_errors_supported = yes; then
30302 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30303 else
30304 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30305 fi
30306 # Put the nasty error message in config.log where it belongs
30307 echo "$LQR_PKG_ERRORS" >&5
30308
30309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30310$as_echo "no" >&6; }
30311 have_lqr=no
30312elif test $pkg_failed = untried; then
30313 have_lqr=no
30314else
30315 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30316 LQR_LIBS=$pkg_cv_LQR_LIBS
30317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30318$as_echo "yes" >&6; }
30319 have_lqr=yes
30320fi
cristyad38abe2012-12-23 23:03:21 +000030321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30322$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030323fi
30324
30325if test "$have_lqr" = 'yes'; then
30326
cristy8b350f62009-11-15 23:12:43 +000030327$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030328
30329 CFLAGS="$LQR_CFLAGS $CFLAGS"
30330fi
30331
cristy73bd4a52010-10-05 11:24:23 +000030332 if test "$have_lqr" = 'yes'; then
30333 LQR_DELEGATE_TRUE=
30334 LQR_DELEGATE_FALSE='#'
30335else
30336 LQR_DELEGATE_TRUE='#'
30337 LQR_DELEGATE_FALSE=
30338fi
30339
cristy3ed852e2009-09-05 21:47:34 +000030340
30341
30342
30343
cristy81beccd2011-10-03 18:17:24 +000030344# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030345
30346# Check whether --with-lzma was given.
30347if test "${with_lzma+set}" = set; then :
30348 withval=$with_lzma; with_lzma=$withval
30349else
30350 with_lzma='yes'
30351fi
30352
cristy81beccd2011-10-03 18:17:24 +000030353if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030354 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30355fi
30356
cristyb94e5002011-11-14 13:20:10 +000030357LZMA_PKG=""
30358if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30360$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030361
30362pkg_failed=no
30363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030364$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030365
30366if test -n "$LZMA_CFLAGS"; then
30367 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30368 elif test -n "$PKG_CONFIG"; then
30369 if test -n "$PKG_CONFIG" && \
30370 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30371 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30372 ac_status=$?
30373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30374 test $ac_status = 0; }; then
30375 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30376else
30377 pkg_failed=yes
30378fi
30379 else
30380 pkg_failed=untried
30381fi
30382if test -n "$LZMA_LIBS"; then
30383 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30384 elif test -n "$PKG_CONFIG"; then
30385 if test -n "$PKG_CONFIG" && \
30386 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30387 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30388 ac_status=$?
30389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30390 test $ac_status = 0; }; then
30391 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30392else
30393 pkg_failed=yes
30394fi
30395 else
30396 pkg_failed=untried
30397fi
30398
30399
30400
30401if test $pkg_failed = yes; then
30402
30403if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30404 _pkg_short_errors_supported=yes
30405else
30406 _pkg_short_errors_supported=no
30407fi
30408 if test $_pkg_short_errors_supported = yes; then
30409 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30410 else
30411 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30412 fi
30413 # Put the nasty error message in config.log where it belongs
30414 echo "$LZMA_PKG_ERRORS" >&5
30415
30416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30417$as_echo "no" >&6; }
30418 have_lzma=no
30419elif test $pkg_failed = untried; then
30420 have_lzma=no
30421else
30422 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30423 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30425$as_echo "yes" >&6; }
30426 have_lzma=yes
30427fi
cristyad38abe2012-12-23 23:03:21 +000030428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30429$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030430fi
30431
cristyb94e5002011-11-14 13:20:10 +000030432if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030433
30434$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30435
cristyc6722092012-10-14 00:19:31 +000030436 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030437 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030438 fi
cristyfbb0ef02010-12-19 02:32:11 +000030439fi
cristyb94e5002011-11-14 13:20:10 +000030440
cristyfbb0ef02010-12-19 02:32:11 +000030441 if test "$have_lzma" = 'yes'; then
30442 LZMA_DELEGATE_TRUE=
30443 LZMA_DELEGATE_FALSE='#'
30444else
30445 LZMA_DELEGATE_TRUE='#'
30446 LZMA_DELEGATE_FALSE=
30447fi
30448
30449
30450
30451
cristyb94e5002011-11-14 13:20:10 +000030452
cristy3ed852e2009-09-05 21:47:34 +000030453#
30454# Check for the OpenEXR delegate library.
30455#
30456
30457# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030458if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030459 withval=$with_openexr; with_openexr=$withval
30460else
30461 with_openexr='yes'
30462fi
30463
30464
30465if test "$with_openexr" != 'yes'; then
30466 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30467fi
30468
30469have_openexr='no'
30470OPENEXR_CFLAGS=""
30471OPENEXR_LIBS=""
30472OPENEXR_PKG=""
30473if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30475$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030476
30477pkg_failed=no
30478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30479$as_echo_n "checking for OPENEXR... " >&6; }
30480
30481if test -n "$OPENEXR_CFLAGS"; then
30482 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30483 elif test -n "$PKG_CONFIG"; then
30484 if test -n "$PKG_CONFIG" && \
30485 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30486 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30487 ac_status=$?
30488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30489 test $ac_status = 0; }; then
30490 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30491else
30492 pkg_failed=yes
30493fi
30494 else
30495 pkg_failed=untried
30496fi
30497if test -n "$OPENEXR_LIBS"; then
30498 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30499 elif test -n "$PKG_CONFIG"; then
30500 if test -n "$PKG_CONFIG" && \
30501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30502 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30503 ac_status=$?
30504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30505 test $ac_status = 0; }; then
30506 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30507else
30508 pkg_failed=yes
30509fi
30510 else
30511 pkg_failed=untried
30512fi
30513
30514
30515
30516if test $pkg_failed = yes; then
30517
30518if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30519 _pkg_short_errors_supported=yes
30520else
30521 _pkg_short_errors_supported=no
30522fi
30523 if test $_pkg_short_errors_supported = yes; then
30524 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30525 else
30526 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30527 fi
30528 # Put the nasty error message in config.log where it belongs
30529 echo "$OPENEXR_PKG_ERRORS" >&5
30530
30531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30532$as_echo "no" >&6; }
30533 have_openexr=no
30534elif test $pkg_failed = untried; then
30535 have_openexr=no
30536else
30537 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30538 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30540$as_echo "yes" >&6; }
30541 have_openexr=yes
30542fi
cristyad38abe2012-12-23 23:03:21 +000030543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30544$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030545fi
30546
30547if test "$have_openexr" = 'yes'; then
30548
cristy8b350f62009-11-15 23:12:43 +000030549$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030550
cristyc6722092012-10-14 00:19:31 +000030551 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030552 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30553 fi
30554fi
30555
cristy73bd4a52010-10-05 11:24:23 +000030556 if test "$have_openexr" = 'yes'; then
30557 OPENEXR_DELEGATE_TRUE=
30558 OPENEXR_DELEGATE_FALSE='#'
30559else
30560 OPENEXR_DELEGATE_TRUE='#'
30561 OPENEXR_DELEGATE_FALSE=
30562fi
30563
cristy3ed852e2009-09-05 21:47:34 +000030564
30565
30566
30567
30568#
cristy41cbe8a2011-10-27 01:35:18 +000030569# Check for PANGO delegate library.
30570#
30571
30572# Check whether --with-pango was given.
30573if test "${with_pango+set}" = set; then :
30574 withval=$with_pango; with_pango=$withval
30575else
cristyfc3d0222012-02-07 15:05:57 +000030576 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030577fi
30578
30579
30580if test "$with_pango" != 'yes'; then
30581 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30582fi
30583
30584have_pango='no'
cristya054b762012-03-26 23:16:00 +000030585have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030586PANGO_CFLAGS=""
30587PANGO_LIBS=""
30588PANGO_PKG=""
30589if test "x$with_pango" = "xyes"; then
30590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30591$as_echo "-------------------------------------------------------------" >&6; }
30592
30593pkg_failed=no
30594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30595$as_echo_n "checking for PANGO... " >&6; }
30596
30597if test -n "$PANGO_CFLAGS"; then
30598 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30599 elif test -n "$PKG_CONFIG"; then
30600 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030601 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30602 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030603 ac_status=$?
30604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30605 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030606 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030607else
30608 pkg_failed=yes
30609fi
30610 else
30611 pkg_failed=untried
30612fi
30613if test -n "$PANGO_LIBS"; then
30614 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30615 elif test -n "$PKG_CONFIG"; then
30616 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030617 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30618 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030619 ac_status=$?
30620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30621 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030622 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030623else
30624 pkg_failed=yes
30625fi
30626 else
30627 pkg_failed=untried
30628fi
30629
30630
30631
30632if test $pkg_failed = yes; then
30633
30634if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30635 _pkg_short_errors_supported=yes
30636else
30637 _pkg_short_errors_supported=no
30638fi
30639 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030640 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030641 else
cristya054b762012-03-26 23:16:00 +000030642 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030643 fi
30644 # Put the nasty error message in config.log where it belongs
30645 echo "$PANGO_PKG_ERRORS" >&5
30646
30647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30648$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030649 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030650elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030651 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030652else
30653 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30654 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30656$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030657 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030658fi
30659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30660$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030661
30662pkg_failed=no
30663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30664$as_echo_n "checking for PANGO... " >&6; }
30665
30666if test -n "$PANGO_CFLAGS"; then
30667 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30668 elif test -n "$PKG_CONFIG"; then
30669 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030670 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30671 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030672 ac_status=$?
30673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30674 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030675 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030676else
30677 pkg_failed=yes
30678fi
30679 else
30680 pkg_failed=untried
30681fi
30682if test -n "$PANGO_LIBS"; then
30683 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30684 elif test -n "$PKG_CONFIG"; then
30685 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30687 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030688 ac_status=$?
30689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30690 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030691 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030692else
30693 pkg_failed=yes
30694fi
30695 else
30696 pkg_failed=untried
30697fi
30698
30699
30700
30701if test $pkg_failed = yes; then
30702
30703if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30704 _pkg_short_errors_supported=yes
30705else
30706 _pkg_short_errors_supported=no
30707fi
30708 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030709 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030710 else
cristy2542fc62011-12-06 17:50:25 +000030711 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030712 fi
30713 # Put the nasty error message in config.log where it belongs
30714 echo "$PANGO_PKG_ERRORS" >&5
30715
30716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30717$as_echo "no" >&6; }
30718 have_pango=no
30719elif test $pkg_failed = untried; then
30720 have_pango=no
30721else
30722 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30723 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30725$as_echo "yes" >&6; }
30726 have_pango=yes
30727fi
30728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30729$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030730fi
30731
30732if test "$have_pango" = 'yes'; then
30733
30734$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30735
cristyc6722092012-10-14 00:19:31 +000030736 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030737 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30738 fi
30739fi
30740
cristya054b762012-03-26 23:16:00 +000030741if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030742
cristya054b762012-03-26 23:16:00 +000030743$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030744
cristyc6722092012-10-14 00:19:31 +000030745 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030746 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030747 fi
30748fi
30749
30750 if test "$have_pango" = 'yes'; then
30751 PANGO_DELEGATE_TRUE=
30752 PANGO_DELEGATE_FALSE='#'
30753else
30754 PANGO_DELEGATE_TRUE='#'
30755 PANGO_DELEGATE_FALSE=
30756fi
30757
cristya054b762012-03-26 23:16:00 +000030758 if test "$have_pangocairo" = 'yes'; then
30759 PANGOCAIRO_DELEGATE_TRUE=
30760 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030761else
cristya054b762012-03-26 23:16:00 +000030762 PANGOCAIRO_DELEGATE_TRUE='#'
30763 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030764fi
30765
30766
30767
30768
30769
30770#
cristy3ed852e2009-09-05 21:47:34 +000030771# Check for PNG delegate library.
30772#
30773
30774# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030775if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030776 withval=$with_png; with_png=$withval
30777else
30778 with_png='yes'
30779fi
30780
30781
30782if test "$with_png" != 'yes'; then
30783 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30784fi
30785
cristy81beccd2011-10-03 18:17:24 +000030786have_png='no'
30787PNG_LIBS=''
30788
30789if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30791$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30793$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30795$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030796 failed=0
30797 passed=0
30798 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30799if test "x$ac_cv_header_png_h" = xyes; then :
30800 passed=`expr $passed + 1`
30801else
30802 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030803fi
30804
cristy81beccd2011-10-03 18:17:24 +000030805
30806
30807 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030808 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030809 if test "$have_png" = 'no' ; then
30810 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030811 pnglib='png'
30812 else
30813 pnglib="png1${var}"
30814 fi
30815
30816# Test for compatible LIBPNG library
30817 failed=0
30818 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030819 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030820 if test "${pnglib}" != 'png' ; then
30821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30822$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30824/* end confdefs.h. */
30825#include <stdio.h>
30826#include <stdlib.h>
30827#include <png.h>
30828
30829int
30830main ()
30831{
30832
30833#if PNG_LIBPNG_VER_MINOR != ${var}
30834#error LIBPNG library must be version 1${var}!
30835Kaboom, Kaboom
30836#endif
30837return 0;
30838
30839 ;
30840 return 0;
30841}
30842_ACEOF
30843if ac_fn_c_try_compile "$LINENO"; then :
30844 ac_cv_libpng_ok='yes'
30845else
30846 ac_cv_libpng_ok='no'
30847fi
30848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30849 if test "$ac_cv_libpng_ok" = 'yes' ; then
30850 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30852$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030853 else
30854 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30856$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030857 fi
30858 else
30859 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30861$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030862 fi
30863 fi
30864
30865 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030866 if test "1${var}" = '17' ; then
30867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30868$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30869if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30870 $as_echo_n "(cached) " >&6
30871else
30872 ac_check_lib_save_LIBS=$LIBS
30873LIBS="-lpng17 $LIBS"
30874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30875/* end confdefs.h. */
30876
30877/* Override any GCC internal prototype to avoid an error.
30878 Use char because int might match the return type of a GCC
30879 builtin and then its argument prototype would still apply. */
30880#ifdef __cplusplus
30881extern "C"
30882#endif
30883char png_get_io_ptr ();
30884int
30885main ()
30886{
30887return png_get_io_ptr ();
30888 ;
30889 return 0;
30890}
30891_ACEOF
30892if ac_fn_c_try_link "$LINENO"; then :
30893 ac_cv_lib_png17_png_get_io_ptr=yes
30894else
30895 ac_cv_lib_png17_png_get_io_ptr=no
30896fi
30897rm -f core conftest.err conftest.$ac_objext \
30898 conftest$ac_exeext conftest.$ac_ext
30899LIBS=$ac_check_lib_save_LIBS
30900fi
30901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30902$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30903if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30904 passed=`expr $passed + 1`
30905else
30906 failed=`expr $failed + 1`
30907fi
30908
30909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30910$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30911if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30912 $as_echo_n "(cached) " >&6
30913else
30914 ac_check_lib_save_LIBS=$LIBS
30915LIBS="-lpng17 $LIBS"
30916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30917/* end confdefs.h. */
30918
30919/* Override any GCC internal prototype to avoid an error.
30920 Use char because int might match the return type of a GCC
30921 builtin and then its argument prototype would still apply. */
30922#ifdef __cplusplus
30923extern "C"
30924#endif
30925char png_longjmp ();
30926int
30927main ()
30928{
30929return png_longjmp ();
30930 ;
30931 return 0;
30932}
30933_ACEOF
30934if ac_fn_c_try_link "$LINENO"; then :
30935 ac_cv_lib_png17_png_longjmp=yes
30936else
30937 ac_cv_lib_png17_png_longjmp=no
30938fi
30939rm -f core conftest.err conftest.$ac_objext \
30940 conftest$ac_exeext conftest.$ac_ext
30941LIBS=$ac_check_lib_save_LIBS
30942fi
30943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30944$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30945if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30946 passed=`expr $passed + 1`
30947else
30948 failed=`expr $failed + 1`
30949fi
30950
30951 fi
30952 if test "1${var}" = '16' ; then
30953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30954$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30955if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30956 $as_echo_n "(cached) " >&6
30957else
30958 ac_check_lib_save_LIBS=$LIBS
30959LIBS="-lpng16 $LIBS"
30960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30961/* end confdefs.h. */
30962
30963/* Override any GCC internal prototype to avoid an error.
30964 Use char because int might match the return type of a GCC
30965 builtin and then its argument prototype would still apply. */
30966#ifdef __cplusplus
30967extern "C"
30968#endif
30969char png_get_io_ptr ();
30970int
30971main ()
30972{
30973return png_get_io_ptr ();
30974 ;
30975 return 0;
30976}
30977_ACEOF
30978if ac_fn_c_try_link "$LINENO"; then :
30979 ac_cv_lib_png16_png_get_io_ptr=yes
30980else
30981 ac_cv_lib_png16_png_get_io_ptr=no
30982fi
30983rm -f core conftest.err conftest.$ac_objext \
30984 conftest$ac_exeext conftest.$ac_ext
30985LIBS=$ac_check_lib_save_LIBS
30986fi
30987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30988$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30989if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30990 passed=`expr $passed + 1`
30991else
30992 failed=`expr $failed + 1`
30993fi
30994
30995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30996$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30997if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30998 $as_echo_n "(cached) " >&6
30999else
31000 ac_check_lib_save_LIBS=$LIBS
31001LIBS="-lpng16 $LIBS"
31002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31003/* end confdefs.h. */
31004
31005/* Override any GCC internal prototype to avoid an error.
31006 Use char because int might match the return type of a GCC
31007 builtin and then its argument prototype would still apply. */
31008#ifdef __cplusplus
31009extern "C"
31010#endif
31011char png_longjmp ();
31012int
31013main ()
31014{
31015return png_longjmp ();
31016 ;
31017 return 0;
31018}
31019_ACEOF
31020if ac_fn_c_try_link "$LINENO"; then :
31021 ac_cv_lib_png16_png_longjmp=yes
31022else
31023 ac_cv_lib_png16_png_longjmp=no
31024fi
31025rm -f core conftest.err conftest.$ac_objext \
31026 conftest$ac_exeext conftest.$ac_ext
31027LIBS=$ac_check_lib_save_LIBS
31028fi
31029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31030$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31031if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31032 passed=`expr $passed + 1`
31033else
31034 failed=`expr $failed + 1`
31035fi
31036
31037 fi
cristy81beccd2011-10-03 18:17:24 +000031038 if test "1${var}" = '15' ; then
31039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31040$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31041if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31042 $as_echo_n "(cached) " >&6
31043else
31044 ac_check_lib_save_LIBS=$LIBS
31045LIBS="-lpng15 $LIBS"
31046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31047/* end confdefs.h. */
31048
31049/* Override any GCC internal prototype to avoid an error.
31050 Use char because int might match the return type of a GCC
31051 builtin and then its argument prototype would still apply. */
31052#ifdef __cplusplus
31053extern "C"
31054#endif
31055char png_get_io_ptr ();
31056int
31057main ()
31058{
31059return png_get_io_ptr ();
31060 ;
31061 return 0;
31062}
31063_ACEOF
31064if ac_fn_c_try_link "$LINENO"; then :
31065 ac_cv_lib_png15_png_get_io_ptr=yes
31066else
31067 ac_cv_lib_png15_png_get_io_ptr=no
31068fi
31069rm -f core conftest.err conftest.$ac_objext \
31070 conftest$ac_exeext conftest.$ac_ext
31071LIBS=$ac_check_lib_save_LIBS
31072fi
31073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31074$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31075if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31076 passed=`expr $passed + 1`
31077else
31078 failed=`expr $failed + 1`
31079fi
31080
31081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31082$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31083if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31084 $as_echo_n "(cached) " >&6
31085else
31086 ac_check_lib_save_LIBS=$LIBS
31087LIBS="-lpng15 $LIBS"
31088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31089/* end confdefs.h. */
31090
31091/* Override any GCC internal prototype to avoid an error.
31092 Use char because int might match the return type of a GCC
31093 builtin and then its argument prototype would still apply. */
31094#ifdef __cplusplus
31095extern "C"
31096#endif
31097char png_longjmp ();
31098int
31099main ()
31100{
31101return png_longjmp ();
31102 ;
31103 return 0;
31104}
31105_ACEOF
31106if ac_fn_c_try_link "$LINENO"; then :
31107 ac_cv_lib_png15_png_longjmp=yes
31108else
31109 ac_cv_lib_png15_png_longjmp=no
31110fi
31111rm -f core conftest.err conftest.$ac_objext \
31112 conftest$ac_exeext conftest.$ac_ext
31113LIBS=$ac_check_lib_save_LIBS
31114fi
31115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31116$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31117if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31118 passed=`expr $passed + 1`
31119else
31120 failed=`expr $failed + 1`
31121fi
31122
31123 fi
31124 if test "1${var}" = '14' ; then
31125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31126$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31127if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31128 $as_echo_n "(cached) " >&6
31129else
31130 ac_check_lib_save_LIBS=$LIBS
31131LIBS="-lpng14 $LIBS"
31132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31133/* end confdefs.h. */
31134
31135/* Override any GCC internal prototype to avoid an error.
31136 Use char because int might match the return type of a GCC
31137 builtin and then its argument prototype would still apply. */
31138#ifdef __cplusplus
31139extern "C"
31140#endif
31141char png_get_io_ptr ();
31142int
31143main ()
31144{
31145return png_get_io_ptr ();
31146 ;
31147 return 0;
31148}
31149_ACEOF
31150if ac_fn_c_try_link "$LINENO"; then :
31151 ac_cv_lib_png14_png_get_io_ptr=yes
31152else
31153 ac_cv_lib_png14_png_get_io_ptr=no
31154fi
31155rm -f core conftest.err conftest.$ac_objext \
31156 conftest$ac_exeext conftest.$ac_ext
31157LIBS=$ac_check_lib_save_LIBS
31158fi
31159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31160$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31161if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31162 passed=`expr $passed + 1`
31163else
31164 failed=`expr $failed + 1`
31165fi
31166
31167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31168$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31169if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31170 $as_echo_n "(cached) " >&6
31171else
31172 ac_check_lib_save_LIBS=$LIBS
31173LIBS="-lpng14 $LIBS"
31174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31175/* end confdefs.h. */
31176
31177/* Override any GCC internal prototype to avoid an error.
31178 Use char because int might match the return type of a GCC
31179 builtin and then its argument prototype would still apply. */
31180#ifdef __cplusplus
31181extern "C"
31182#endif
31183char png_get_io_state ();
31184int
31185main ()
31186{
31187return png_get_io_state ();
31188 ;
31189 return 0;
31190}
31191_ACEOF
31192if ac_fn_c_try_link "$LINENO"; then :
31193 ac_cv_lib_png14_png_get_io_state=yes
31194else
31195 ac_cv_lib_png14_png_get_io_state=no
31196fi
31197rm -f core conftest.err conftest.$ac_objext \
31198 conftest$ac_exeext conftest.$ac_ext
31199LIBS=$ac_check_lib_save_LIBS
31200fi
31201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31202$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31203if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31204 passed=`expr $passed + 1`
31205else
31206 failed=`expr $failed + 1`
31207fi
31208
31209 fi
31210 if test "1${var}" = '12' ; then
31211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31212$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31213if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31214 $as_echo_n "(cached) " >&6
31215else
31216 ac_check_lib_save_LIBS=$LIBS
31217LIBS="-lpng12 $LIBS"
31218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31219/* end confdefs.h. */
31220
31221/* Override any GCC internal prototype to avoid an error.
31222 Use char because int might match the return type of a GCC
31223 builtin and then its argument prototype would still apply. */
31224#ifdef __cplusplus
31225extern "C"
31226#endif
31227char png_get_io_ptr ();
31228int
31229main ()
31230{
31231return png_get_io_ptr ();
31232 ;
31233 return 0;
31234}
31235_ACEOF
31236if ac_fn_c_try_link "$LINENO"; then :
31237 ac_cv_lib_png12_png_get_io_ptr=yes
31238else
31239 ac_cv_lib_png12_png_get_io_ptr=no
31240fi
31241rm -f core conftest.err conftest.$ac_objext \
31242 conftest$ac_exeext conftest.$ac_ext
31243LIBS=$ac_check_lib_save_LIBS
31244fi
31245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31246$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31247if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31248 passed=`expr $passed + 1`
31249else
31250 failed=`expr $failed + 1`
31251fi
31252
31253 fi
31254 if test "1${var}" = '1' ; then
31255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31256$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31257if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31258 $as_echo_n "(cached) " >&6
31259else
31260 ac_check_lib_save_LIBS=$LIBS
31261LIBS="-lpng $LIBS"
31262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31263/* end confdefs.h. */
31264
31265/* Override any GCC internal prototype to avoid an error.
31266 Use char because int might match the return type of a GCC
31267 builtin and then its argument prototype would still apply. */
31268#ifdef __cplusplus
31269extern "C"
31270#endif
31271char png_get_io_ptr ();
31272int
31273main ()
31274{
31275return png_get_io_ptr ();
31276 ;
31277 return 0;
31278}
31279_ACEOF
31280if ac_fn_c_try_link "$LINENO"; then :
31281 ac_cv_lib_png_png_get_io_ptr=yes
31282else
31283 ac_cv_lib_png_png_get_io_ptr=no
31284fi
31285rm -f core conftest.err conftest.$ac_objext \
31286 conftest$ac_exeext conftest.$ac_ext
31287LIBS=$ac_check_lib_save_LIBS
31288fi
31289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31290$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31291if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31292 passed=`expr $passed + 1`
31293else
31294 failed=`expr $failed + 1`
31295fi
31296
31297 fi
31298 if test $passed -gt 0 -a $failed -le 0 ; then
31299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31300$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31301 if test $passed -gt 0 ; then
31302 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31304$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031305 have_png='no (failed tests)'
31306 else
31307 PNG_LIBS="-l${pnglib}"
31308 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031309
cristy8b350f62009-11-15 23:12:43 +000031310$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031311
cristyad38abe2012-12-23 23:03:21 +000031312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31313$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031314 have_png='yes'
31315 fi
31316 fi
31317 fi
31318 fi
31319 fi
31320 done
31321 fi
cristy3ed852e2009-09-05 21:47:34 +000031322fi
cristy64877302011-08-23 19:10:31 +000031323
cristy73bd4a52010-10-05 11:24:23 +000031324 if test "$have_png" = 'yes'; then
31325 PNG_DELEGATE_TRUE=
31326 PNG_DELEGATE_FALSE='#'
31327else
31328 PNG_DELEGATE_TRUE='#'
31329 PNG_DELEGATE_FALSE=
31330fi
31331
cristy3ed852e2009-09-05 21:47:34 +000031332
cristy50d3f5c2011-09-10 20:09:06 +000031333
cristy3ed852e2009-09-05 21:47:34 +000031334
31335
31336#
31337# Check for RSVG delegate library.
31338#
31339
31340# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031341if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031342 withval=$with_rsvg; with_rsvg=$withval
31343else
cristy1164d5f2012-08-15 00:58:25 +000031344 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031345fi
31346
31347
31348if test "$with_rsvg" != 'yes'; then
31349 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31350fi
31351
31352have_rsvg='no'
31353have_cairo='no'
31354RSVG_CFLAGS=""
31355RSVG_LIBS=""
31356RSVG_PKG=""
31357if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31359$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031360
31361pkg_failed=no
31362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31363$as_echo_n "checking for RSVG... " >&6; }
31364
31365if test -n "$RSVG_CFLAGS"; then
31366 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31367 elif test -n "$PKG_CONFIG"; then
31368 if test -n "$PKG_CONFIG" && \
31369 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31370 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31371 ac_status=$?
31372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31373 test $ac_status = 0; }; then
31374 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31375else
31376 pkg_failed=yes
31377fi
31378 else
31379 pkg_failed=untried
31380fi
31381if test -n "$RSVG_LIBS"; then
31382 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31383 elif test -n "$PKG_CONFIG"; then
31384 if test -n "$PKG_CONFIG" && \
31385 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31386 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31387 ac_status=$?
31388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31389 test $ac_status = 0; }; then
31390 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31391else
31392 pkg_failed=yes
31393fi
31394 else
31395 pkg_failed=untried
31396fi
31397
31398
31399
31400if test $pkg_failed = yes; then
31401
31402if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31403 _pkg_short_errors_supported=yes
31404else
31405 _pkg_short_errors_supported=no
31406fi
31407 if test $_pkg_short_errors_supported = yes; then
31408 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31409 else
31410 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31411 fi
31412 # Put the nasty error message in config.log where it belongs
31413 echo "$RSVG_PKG_ERRORS" >&5
31414
31415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31416$as_echo "no" >&6; }
31417 have_rsvg=no
31418elif test $pkg_failed = untried; then
31419 have_rsvg=no
31420else
31421 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31422 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31424$as_echo "yes" >&6; }
31425 have_rsvg=yes
31426fi
cristyad38abe2012-12-23 23:03:21 +000031427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31428$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031429
31430pkg_failed=no
31431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31432$as_echo_n "checking for CAIRO_SVG... " >&6; }
31433
31434if test -n "$CAIRO_SVG_CFLAGS"; then
31435 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31436 elif test -n "$PKG_CONFIG"; then
31437 if test -n "$PKG_CONFIG" && \
31438 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31439 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31440 ac_status=$?
31441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31442 test $ac_status = 0; }; then
31443 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31444else
31445 pkg_failed=yes
31446fi
31447 else
31448 pkg_failed=untried
31449fi
31450if test -n "$CAIRO_SVG_LIBS"; then
31451 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31452 elif test -n "$PKG_CONFIG"; then
31453 if test -n "$PKG_CONFIG" && \
31454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31455 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31456 ac_status=$?
31457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31458 test $ac_status = 0; }; then
31459 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31460else
31461 pkg_failed=yes
31462fi
31463 else
31464 pkg_failed=untried
31465fi
31466
31467
31468
31469if test $pkg_failed = yes; then
31470
31471if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31472 _pkg_short_errors_supported=yes
31473else
31474 _pkg_short_errors_supported=no
31475fi
31476 if test $_pkg_short_errors_supported = yes; then
31477 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31478 else
31479 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31480 fi
31481 # Put the nasty error message in config.log where it belongs
31482 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31483
31484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31485$as_echo "no" >&6; }
31486 have_cairo=no
31487elif test $pkg_failed = untried; then
31488 have_cairo=no
31489else
31490 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31491 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31493$as_echo "yes" >&6; }
31494 have_cairo=yes
31495fi
cristyad38abe2012-12-23 23:03:21 +000031496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31497$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031498fi
31499
31500if test "$have_rsvg" = 'yes'; then
31501
cristy8b350f62009-11-15 23:12:43 +000031502$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031503
cristyc6722092012-10-14 00:19:31 +000031504 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031505 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31506 fi
31507fi
31508
31509if test "$have_cairo" = 'yes'; then
31510
cristy8b350f62009-11-15 23:12:43 +000031511$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031512
cristyc6722092012-10-14 00:19:31 +000031513 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031514 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31515 fi
31516fi
31517
cristy73bd4a52010-10-05 11:24:23 +000031518 if test "$have_rsvg" = 'yes'; then
31519 RSVG_DELEGATE_TRUE=
31520 RSVG_DELEGATE_FALSE='#'
31521else
31522 RSVG_DELEGATE_TRUE='#'
31523 RSVG_DELEGATE_FALSE=
31524fi
31525
31526 if test "$have_cairo" = 'yes'; then
31527 CAIRO_DELEGATE_TRUE=
31528 CAIRO_DELEGATE_FALSE='#'
31529else
31530 CAIRO_DELEGATE_TRUE='#'
31531 CAIRO_DELEGATE_FALSE=
31532fi
31533
cristy3ed852e2009-09-05 21:47:34 +000031534
31535
31536
31537
31538#
31539# Check for TIFF delegate library.
31540#
31541
31542# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031543if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031544 withval=$with_tiff; with_tiff=$withval
31545else
31546 with_tiff='yes'
31547fi
31548
31549
31550if test "$with_tiff" != 'yes'; then
31551 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31552fi
31553
31554have_tiff='no'
31555TIFF_LIBS=''
31556if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31558$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031560$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31562$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031563 failed=0
31564 passed=0
cristy8b350f62009-11-15 23:12:43 +000031565 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031566if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031567 passed=`expr $passed + 1`
31568else
31569 failed=`expr $failed + 1`
31570fi
31571
31572
cristy8b350f62009-11-15 23:12:43 +000031573 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031574if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031575 passed=`expr $passed + 1`
31576else
31577 failed=`expr $failed + 1`
31578fi
31579
31580
cristy8b350f62009-11-15 23:12:43 +000031581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031582$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031583if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031584 $as_echo_n "(cached) " >&6
31585else
31586 ac_check_lib_save_LIBS=$LIBS
31587LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031589/* end confdefs.h. */
31590
31591/* Override any GCC internal prototype to avoid an error.
31592 Use char because int might match the return type of a GCC
31593 builtin and then its argument prototype would still apply. */
31594#ifdef __cplusplus
31595extern "C"
31596#endif
31597char TIFFOpen ();
31598int
31599main ()
31600{
31601return TIFFOpen ();
31602 ;
31603 return 0;
31604}
31605_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031606if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031607 ac_cv_lib_tiff_TIFFOpen=yes
31608else
cristy8b350f62009-11-15 23:12:43 +000031609 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031610fi
cristy8b350f62009-11-15 23:12:43 +000031611rm -f core conftest.err conftest.$ac_objext \
31612 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031613LIBS=$ac_check_lib_save_LIBS
31614fi
cristy8b350f62009-11-15 23:12:43 +000031615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031616$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031617if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031618 passed=`expr $passed + 1`
31619else
31620 failed=`expr $failed + 1`
31621fi
31622
cristy8b350f62009-11-15 23:12:43 +000031623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031624$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031625if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031626 $as_echo_n "(cached) " >&6
31627else
31628 ac_check_lib_save_LIBS=$LIBS
31629LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031631/* end confdefs.h. */
31632
31633/* Override any GCC internal prototype to avoid an error.
31634 Use char because int might match the return type of a GCC
31635 builtin and then its argument prototype would still apply. */
31636#ifdef __cplusplus
31637extern "C"
31638#endif
31639char TIFFClientOpen ();
31640int
31641main ()
31642{
31643return TIFFClientOpen ();
31644 ;
31645 return 0;
31646}
31647_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031648if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031649 ac_cv_lib_tiff_TIFFClientOpen=yes
31650else
cristy8b350f62009-11-15 23:12:43 +000031651 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031652fi
cristy8b350f62009-11-15 23:12:43 +000031653rm -f core conftest.err conftest.$ac_objext \
31654 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031655LIBS=$ac_check_lib_save_LIBS
31656fi
cristy8b350f62009-11-15 23:12:43 +000031657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031658$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031659if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031660 passed=`expr $passed + 1`
31661else
31662 failed=`expr $failed + 1`
31663fi
31664
cristy8b350f62009-11-15 23:12:43 +000031665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031666$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031667if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031668 $as_echo_n "(cached) " >&6
31669else
31670 ac_check_lib_save_LIBS=$LIBS
31671LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031673/* end confdefs.h. */
31674
31675/* Override any GCC internal prototype to avoid an error.
31676 Use char because int might match the return type of a GCC
31677 builtin and then its argument prototype would still apply. */
31678#ifdef __cplusplus
31679extern "C"
31680#endif
31681char TIFFIsByteSwapped ();
31682int
31683main ()
31684{
31685return TIFFIsByteSwapped ();
31686 ;
31687 return 0;
31688}
31689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031690if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031691 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31692else
cristy8b350f62009-11-15 23:12:43 +000031693 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031694fi
cristy8b350f62009-11-15 23:12:43 +000031695rm -f core conftest.err conftest.$ac_objext \
31696 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031697LIBS=$ac_check_lib_save_LIBS
31698fi
cristy8b350f62009-11-15 23:12:43 +000031699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031700$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031701if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031702 passed=`expr $passed + 1`
31703else
31704 failed=`expr $failed + 1`
31705fi
31706
cristy8b350f62009-11-15 23:12:43 +000031707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031708$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031709if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031710 $as_echo_n "(cached) " >&6
31711else
31712 ac_check_lib_save_LIBS=$LIBS
31713LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031715/* end confdefs.h. */
31716
31717/* Override any GCC internal prototype to avoid an error.
31718 Use char because int might match the return type of a GCC
31719 builtin and then its argument prototype would still apply. */
31720#ifdef __cplusplus
31721extern "C"
31722#endif
31723char TIFFReadRGBATile ();
31724int
31725main ()
31726{
31727return TIFFReadRGBATile ();
31728 ;
31729 return 0;
31730}
31731_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031732if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031733 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31734else
cristy8b350f62009-11-15 23:12:43 +000031735 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031736fi
cristy8b350f62009-11-15 23:12:43 +000031737rm -f core conftest.err conftest.$ac_objext \
31738 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031739LIBS=$ac_check_lib_save_LIBS
31740fi
cristy8b350f62009-11-15 23:12:43 +000031741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031742$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031743if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031744 passed=`expr $passed + 1`
31745else
31746 failed=`expr $failed + 1`
31747fi
31748
cristy8b350f62009-11-15 23:12:43 +000031749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031750$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031751if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031752 $as_echo_n "(cached) " >&6
31753else
31754 ac_check_lib_save_LIBS=$LIBS
31755LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031757/* end confdefs.h. */
31758
31759/* Override any GCC internal prototype to avoid an error.
31760 Use char because int might match the return type of a GCC
31761 builtin and then its argument prototype would still apply. */
31762#ifdef __cplusplus
31763extern "C"
31764#endif
31765char TIFFReadRGBAStrip ();
31766int
31767main ()
31768{
31769return TIFFReadRGBAStrip ();
31770 ;
31771 return 0;
31772}
31773_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031774if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031775 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31776else
cristy8b350f62009-11-15 23:12:43 +000031777 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031778fi
cristy8b350f62009-11-15 23:12:43 +000031779rm -f core conftest.err conftest.$ac_objext \
31780 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031781LIBS=$ac_check_lib_save_LIBS
31782fi
cristy8b350f62009-11-15 23:12:43 +000031783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031784$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031785if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031786 passed=`expr $passed + 1`
31787else
31788 failed=`expr $failed + 1`
31789fi
31790
cristy8b350f62009-11-15 23:12:43 +000031791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031792$as_echo_n "checking if TIFF package is complete... " >&6; }
31793 if test $passed -gt 0; then
31794 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31796$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031797 have_tiff='no (failed tests)'
31798 else
31799 TIFF_LIBS='-ltiff'
31800 LIBS="$TIFF_LIBS $LIBS"
31801
cristy8b350f62009-11-15 23:12:43 +000031802$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031803
cristyad38abe2012-12-23 23:03:21 +000031804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31805$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031806 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031807 for ac_header in tiffconf.h
31808do :
31809 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031810if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031811 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031812#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031813_ACEOF
31814
31815fi
31816
31817done
31818
cristy8b350f62009-11-15 23:12:43 +000031819 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031820 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31821 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31822 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031823do :
31824 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31825ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031826if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031827 cat >>confdefs.h <<_ACEOF
31828#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31829_ACEOF
31830
31831fi
31832done
31833
31834 fi
31835 else
cristyad38abe2012-12-23 23:03:21 +000031836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31837$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031838 fi
31839fi
cristy73bd4a52010-10-05 11:24:23 +000031840 if test "$have_tiff" = 'yes'; then
31841 TIFF_DELEGATE_TRUE=
31842 TIFF_DELEGATE_FALSE='#'
31843else
31844 TIFF_DELEGATE_TRUE='#'
31845 TIFF_DELEGATE_FALSE=
31846fi
31847
cristy3ed852e2009-09-05 21:47:34 +000031848
31849
31850
31851#
cristyb1860752011-03-14 00:27:46 +000031852# Check for WEBP delegate library.
31853#
31854
31855# Check whether --with-webp was given.
31856if test "${with_webp+set}" = set; then :
31857 withval=$with_webp; with_webp=$withval
31858else
31859 with_webp='yes'
31860fi
31861
31862
31863if test "$with_webp" != 'yes'; then
31864 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31865fi
31866
31867have_webp='no'
31868WEBP_LIBS=''
31869if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31871$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31873$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31875$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031876 failed=0
31877 passed=0
31878 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31879if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31880 passed=`expr $passed + 1`
31881else
31882 failed=`expr $failed + 1`
31883fi
31884
31885
cristy6d670312013-03-22 23:23:01 +000031886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31887$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31888if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031889 $as_echo_n "(cached) " >&6
31890else
31891 ac_check_lib_save_LIBS=$LIBS
31892LIBS="-lwebp $LIBS"
31893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31894/* end confdefs.h. */
31895
31896/* Override any GCC internal prototype to avoid an error.
31897 Use char because int might match the return type of a GCC
31898 builtin and then its argument prototype would still apply. */
31899#ifdef __cplusplus
31900extern "C"
31901#endif
cristy6d670312013-03-22 23:23:01 +000031902char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031903int
31904main ()
31905{
cristy6d670312013-03-22 23:23:01 +000031906return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031907 ;
31908 return 0;
31909}
31910_ACEOF
31911if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031912 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031913else
cristy6d670312013-03-22 23:23:01 +000031914 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031915fi
31916rm -f core conftest.err conftest.$ac_objext \
31917 conftest$ac_exeext conftest.$ac_ext
31918LIBS=$ac_check_lib_save_LIBS
31919fi
cristy6d670312013-03-22 23:23:01 +000031920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31921$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31922if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031923 passed=`expr $passed + 1`
31924else
31925 failed=`expr $failed + 1`
31926fi
31927
31928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31929$as_echo_n "checking if WEBP package is complete... " >&6; }
31930 if test $passed -gt 0; then
31931 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31933$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031934 have_webp='no (failed tests)'
31935 else
31936 WEBP_LIBS='-lwebp'
31937 LIBS="$WEBP_LIBS $LIBS"
31938
31939$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31940
cristyad38abe2012-12-23 23:03:21 +000031941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31942$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031943 have_webp='yes'
31944 fi
31945 else
cristyad38abe2012-12-23 23:03:21 +000031946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31947$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031948 fi
31949fi
31950 if test "$have_webp" = 'yes'; then
31951 WEBP_DELEGATE_TRUE=
31952 WEBP_DELEGATE_FALSE='#'
31953else
31954 WEBP_DELEGATE_TRUE='#'
31955 WEBP_DELEGATE_FALSE=
31956fi
31957
31958
31959
31960
31961#
cristy3ed852e2009-09-05 21:47:34 +000031962# Set Windows font directory.
31963#
31964
31965# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031966if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031967 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31968else
31969 with_windows_font_dir=''
31970fi
31971
31972if test "$with_windows_font_dir" != '' ; then
31973 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31974fi
31975
31976
31977#
31978# Check for WMF delegate library.
31979#
31980
31981# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031982if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031983 withval=$with_wmf; with_wmf=$withval
31984else
cristyfc3d0222012-02-07 15:05:57 +000031985 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031986fi
31987
31988
31989if test "$with_wmf" != 'yes'; then
31990 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31991fi
31992
31993have_wmf='no'
31994WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031995WMF_LIBS_DEPS=''
31996OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031997if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31999$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032001$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32003$as_echo "" >&6; }
32004 have_libwmf='no'
32005 have_libwmflite='no'
32006 have_libwmf_ipa_h='no'
32007
32008 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32009"
32010if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32011 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032012fi
32013
32014
cristy03f7cf92011-12-15 01:40:41 +000032015 if test "$have_libwmf_ipa_h" = 'yes'; then
32016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32017$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32018if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032019 $as_echo_n "(cached) " >&6
32020else
32021 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032022LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032024/* end confdefs.h. */
32025
32026/* Override any GCC internal prototype to avoid an error.
32027 Use char because int might match the return type of a GCC
32028 builtin and then its argument prototype would still apply. */
32029#ifdef __cplusplus
32030extern "C"
32031#endif
cristy03f7cf92011-12-15 01:40:41 +000032032char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032033int
32034main ()
32035{
cristy03f7cf92011-12-15 01:40:41 +000032036return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032037 ;
32038 return 0;
32039}
32040_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032041if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032042 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032043else
cristy03f7cf92011-12-15 01:40:41 +000032044 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032045fi
cristy8b350f62009-11-15 23:12:43 +000032046rm -f core conftest.err conftest.$ac_objext \
32047 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032048LIBS=$ac_check_lib_save_LIBS
32049fi
cristy03f7cf92011-12-15 01:40:41 +000032050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32051$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32052if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32053 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032054fi
32055
cristy03f7cf92011-12-15 01:40:41 +000032056 if test "$have_libwmflite" = 'yes'; then
32057
32058$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32059
32060 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032061 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032062 have_wmf='yes'
32063 else
32064 WMF_LIBS_DEPS=''
32065 WMF_CONFIG_LIBS=`libwmf-config --libs`
32066 for lib in xml2 expat freetype jpeg png z; do
32067 testlib="-l${lib}"
32068 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32069 done
32070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32071$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32072if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32073 $as_echo_n "(cached) " >&6
32074else
32075 ac_check_lib_save_LIBS=$LIBS
32076LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32078/* end confdefs.h. */
32079
32080/* Override any GCC internal prototype to avoid an error.
32081 Use char because int might match the return type of a GCC
32082 builtin and then its argument prototype would still apply. */
32083#ifdef __cplusplus
32084extern "C"
32085#endif
32086char wmf_api_create ();
32087int
32088main ()
32089{
32090return wmf_api_create ();
32091 ;
32092 return 0;
32093}
32094_ACEOF
32095if ac_fn_c_try_link "$LINENO"; then :
32096 ac_cv_lib_wmf_wmf_api_create=yes
32097else
32098 ac_cv_lib_wmf_wmf_api_create=no
32099fi
32100rm -f core conftest.err conftest.$ac_objext \
32101 conftest$ac_exeext conftest.$ac_ext
32102LIBS=$ac_check_lib_save_LIBS
32103fi
32104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32105$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32106if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32107 have_libwmf='yes'
32108fi
32109
32110 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032111
cristy8b350f62009-11-15 23:12:43 +000032112$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032113
cristy03f7cf92011-12-15 01:40:41 +000032114 WMF_LIBS='-lwmf'
32115 LIBS="$WMF_LIBS $LIBS"
32116 have_wmf='yes'
32117 else
32118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32119$as_echo "no -- some components failed test" >&6; }
32120 have_wmf='no (failed tests)'
32121 have_wmflite='no (failed tests)'
32122 LIBS="$OLIBS"
32123 WMF_LIBS=''
32124 fi
glennrp33e524b2011-08-24 17:41:57 +000032125 fi
cristy03f7cf92011-12-15 01:40:41 +000032126 fi
32127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32128$as_echo_n "checking if WMF package is complete... " >&6; }
32129 if test "$have_wmf" = 'yes'; then
32130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32131$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032132 else
cristy03f7cf92011-12-15 01:40:41 +000032133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32134$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032135 fi
cristy3ed852e2009-09-05 21:47:34 +000032136fi
cristy73bd4a52010-10-05 11:24:23 +000032137 if test "$have_wmf" = 'yes'; then
32138 WMF_DELEGATE_TRUE=
32139 WMF_DELEGATE_FALSE='#'
32140else
32141 WMF_DELEGATE_TRUE='#'
32142 WMF_DELEGATE_FALSE=
32143fi
32144
cristy3ed852e2009-09-05 21:47:34 +000032145
32146
32147
cristy81beccd2011-10-03 18:17:24 +000032148
32149
cristy3ed852e2009-09-05 21:47:34 +000032150#
32151# Check for XML delegate library.
32152#
32153
32154# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032155if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032156 withval=$with_xml; with_xml=$withval
32157else
cristyfc3d0222012-02-07 15:05:57 +000032158 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032159fi
32160
32161
cristy81beccd2011-10-03 18:17:24 +000032162if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032163 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32164fi
32165
cristy81beccd2011-10-03 18:17:24 +000032166have_xml='no'
32167XML_LIBS=''
32168if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32170$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32172$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32174$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032175 PERSIST_LDFLAGS=$LDFLAGS
32176 PERSIST_CPPFLAGS=$CPPFLAGS
32177 xml2_config=''
32178 # Extract the first word of "xml2-config", so it can be a program name with args.
32179set dummy xml2-config; ac_word=$2
32180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32181$as_echo_n "checking for $ac_word... " >&6; }
32182if ${ac_cv_path_xml2_config+:} false; then :
32183 $as_echo_n "(cached) " >&6
32184else
32185 case $xml2_config in
32186 [\\/]* | ?:[\\/]*)
32187 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32188 ;;
32189 *)
32190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32191for as_dir in $PATH
32192do
32193 IFS=$as_save_IFS
32194 test -z "$as_dir" && as_dir=.
32195 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032197 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32199 break 2
32200 fi
32201done
32202 done
32203IFS=$as_save_IFS
32204
32205 ;;
32206esac
32207fi
32208xml2_config=$ac_cv_path_xml2_config
32209if test -n "$xml2_config"; then
32210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32211$as_echo "$xml2_config" >&6; }
32212else
32213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32214$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032215fi
32216
cristy81beccd2011-10-03 18:17:24 +000032217 if test -n "$xml2_config"; then
32218 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32219 # the shared library installed under /usr/lib, whereas the package
32220 # installs itself under $prefix/libxml and $prefix/lib.
32221 xml2_prefix=`xml2-config --prefix`
32222 if test -d "${xml2_prefix}/include/libxml2"; then
32223 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32224 fi
32225 if test "${xml2_prefix}" != '/usr'; then
32226 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32227 fi
32228 fi
32229 failed=0
32230 passed=0
32231 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32232if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32233 passed=`expr $passed + 1`
32234else
32235 failed=`expr $failed + 1`
32236fi
32237
32238
32239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32240$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32241if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32242 $as_echo_n "(cached) " >&6
32243else
32244 ac_check_lib_save_LIBS=$LIBS
32245LIBS="-lxml2 $LIBS"
32246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32247/* end confdefs.h. */
32248
32249/* Override any GCC internal prototype to avoid an error.
32250 Use char because int might match the return type of a GCC
32251 builtin and then its argument prototype would still apply. */
32252#ifdef __cplusplus
32253extern "C"
32254#endif
32255char xmlSAXVersion ();
32256int
32257main ()
32258{
32259return xmlSAXVersion ();
32260 ;
32261 return 0;
32262}
32263_ACEOF
32264if ac_fn_c_try_link "$LINENO"; then :
32265 ac_cv_lib_xml2_xmlSAXVersion=yes
32266else
32267 ac_cv_lib_xml2_xmlSAXVersion=no
32268fi
32269rm -f core conftest.err conftest.$ac_objext \
32270 conftest$ac_exeext conftest.$ac_ext
32271LIBS=$ac_check_lib_save_LIBS
32272fi
32273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32274$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32275if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32276 passed=`expr $passed + 1`
32277else
32278 failed=`expr $failed + 1`
32279fi
32280
32281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32282$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32283if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32284 $as_echo_n "(cached) " >&6
32285else
32286 ac_check_lib_save_LIBS=$LIBS
32287LIBS="-lxml2 $LIBS"
32288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32289/* end confdefs.h. */
32290
32291/* Override any GCC internal prototype to avoid an error.
32292 Use char because int might match the return type of a GCC
32293 builtin and then its argument prototype would still apply. */
32294#ifdef __cplusplus
32295extern "C"
32296#endif
32297char xmlParseChunk ();
32298int
32299main ()
32300{
32301return xmlParseChunk ();
32302 ;
32303 return 0;
32304}
32305_ACEOF
32306if ac_fn_c_try_link "$LINENO"; then :
32307 ac_cv_lib_xml2_xmlParseChunk=yes
32308else
32309 ac_cv_lib_xml2_xmlParseChunk=no
32310fi
32311rm -f core conftest.err conftest.$ac_objext \
32312 conftest$ac_exeext conftest.$ac_ext
32313LIBS=$ac_check_lib_save_LIBS
32314fi
32315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32316$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32317if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32318 passed=`expr $passed + 1`
32319else
32320 failed=`expr $failed + 1`
32321fi
32322
32323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32324$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32325if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32326 $as_echo_n "(cached) " >&6
32327else
32328 ac_check_lib_save_LIBS=$LIBS
32329LIBS="-lxml2 $LIBS"
32330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32331/* end confdefs.h. */
32332
32333/* Override any GCC internal prototype to avoid an error.
32334 Use char because int might match the return type of a GCC
32335 builtin and then its argument prototype would still apply. */
32336#ifdef __cplusplus
32337extern "C"
32338#endif
32339char xmlCreatePushParserCtxt ();
32340int
32341main ()
32342{
32343return xmlCreatePushParserCtxt ();
32344 ;
32345 return 0;
32346}
32347_ACEOF
32348if ac_fn_c_try_link "$LINENO"; then :
32349 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32350else
32351 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32352fi
32353rm -f core conftest.err conftest.$ac_objext \
32354 conftest$ac_exeext conftest.$ac_ext
32355LIBS=$ac_check_lib_save_LIBS
32356fi
32357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32358$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32359if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32360 passed=`expr $passed + 1`
32361else
32362 failed=`expr $failed + 1`
32363fi
32364
32365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32366$as_echo_n "checking if XML package is complete... " >&6; }
32367 if test $passed -gt 0; then
32368 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32370$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032371 have_xml='no (failed tests)'
32372 LDFLAGS="$PERSIST_LDFLAGS"
32373 CPPFLAGS="$PERSIST_CPPFLAGS"
32374 else
32375 XML_LIBS='-lxml2'
32376 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032377
cristy8b350f62009-11-15 23:12:43 +000032378$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032379
cristyad38abe2012-12-23 23:03:21 +000032380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32381$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032382 have_xml='yes'
32383 fi
32384 else
cristyad38abe2012-12-23 23:03:21 +000032385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32386$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032387 fi
32388fi
cristy73bd4a52010-10-05 11:24:23 +000032389 if test "$have_xml" = 'yes'; then
32390 XML_DELEGATE_TRUE=
32391 XML_DELEGATE_FALSE='#'
32392else
32393 XML_DELEGATE_TRUE='#'
32394 XML_DELEGATE_FALSE=
32395fi
32396
cristy3ed852e2009-09-05 21:47:34 +000032397
32398
32399
32400# Substitute compiler name to build/link PerlMagick
32401#
32402
32403
32404#
32405# Configure install Paths
32406#
cristy7def36a2011-10-28 19:04:41 +000032407
cristy2a11bef2011-10-28 18:33:11 +000032408# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032409INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032410INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32411DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032412case "${build_os}" in
32413 mingw* )
32414 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32415 ;;
32416esac
32417
32418cat >>confdefs.h <<_ACEOF
32419#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32420_ACEOF
32421
32422
cristy3ed852e2009-09-05 21:47:34 +000032423
cristye52f12f2012-12-31 15:32:36 +000032424# Path to ImageMagick header files (arch part)
32425INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32426DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32427case "${build_os}" in
32428 mingw* )
32429 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32430 ;;
32431esac
32432
32433cat >>confdefs.h <<_ACEOF
32434#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32435_ACEOF
32436
32437
32438
cristy3ed852e2009-09-05 21:47:34 +000032439# Subdirectory under lib to place ImageMagick lib files
32440LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32441
32442cat >>confdefs.h <<_ACEOF
32443#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32444_ACEOF
32445
32446
32447# Path to ImageMagick bin directory
32448EXECUTABLE_PATH="${BIN_DIR}"
32449DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32450case "${build_os}" in
32451 mingw* )
32452 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32453 ;;
32454esac
32455
32456cat >>confdefs.h <<_ACEOF
32457#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32458_ACEOF
32459
32460
32461
32462# Path to ImageMagick lib
32463LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32464DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32465case "${build_os}" in
32466 mingw* )
32467 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32468 ;;
32469esac
32470
32471cat >>confdefs.h <<_ACEOF
32472#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32473_ACEOF
32474
32475
32476
cristy3ed852e2009-09-05 21:47:34 +000032477#
cristy8d0ff762013-03-10 20:33:28 +000032478# path to local binaries
32479if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32480 LIB_BIN_BASEDIRNAME="bin"
32481fi
32482
32483cat >>confdefs.h <<_ACEOF
32484#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32485_ACEOF
32486
32487
32488
32489if test "x$LIB_BIN_DIR" = "x"; then
32490 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32491fi
32492
32493
32494LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32495
32496LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32497
32498
32499#
cristy01ff9f32012-12-01 18:15:29 +000032500# path to modules lib
32501if test "x$MODULES_BASEDIRNAME" = "x"; then
32502 MODULES_BASEDIRNAME="modules"
32503fi
cristy3ed852e2009-09-05 21:47:34 +000032504
32505cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032506#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032507_ACEOF
32508
cristy01ff9f32012-12-01 18:15:29 +000032509
32510
32511if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032512 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32513else
cristy3ed852e2009-09-05 21:47:34 +000032514
32515cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032516#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032517_ACEOF
32518
cristycf4a3c22012-12-02 21:47:25 +000032519fi
cristy01ff9f32012-12-01 18:15:29 +000032520
32521
cristy371d4812012-12-01 19:48:10 +000032522MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032523
32524MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32525
32526
32527#
32528# path to coders lib
32529if test "x$CODER_DIRNAME" = "x"; then
32530 CODER_DIRNAME="coders"
32531fi
32532
32533cat >>confdefs.h <<_ACEOF
32534#define CODER_DIRNAME "$CODER_DIRNAME"
32535_ACEOF
32536
32537
32538
cristy371d4812012-12-01 19:48:10 +000032539CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032540CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032541
32542
32543#
32544# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032545#
32546# path to coders lib
32547if test "x$FILTER_DIRNAME" = "x"; then
32548 FILTER_DIRNAME="filters"
32549fi
cristy3ed852e2009-09-05 21:47:34 +000032550
32551cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032552#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032553_ACEOF
32554
cristy3ed852e2009-09-05 21:47:34 +000032555
cristy3ed852e2009-09-05 21:47:34 +000032556
cristy371d4812012-12-01 19:48:10 +000032557FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032558FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032559
32560
32561#
32562# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032563DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032564DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32565DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032566case "${build_os}" in
32567 mingw* )
32568 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32569 ;;
32570esac
32571
32572cat >>confdefs.h <<_ACEOF
32573#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32574_ACEOF
32575
32576
32577
cristy2a11bef2011-10-28 18:33:11 +000032578# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032579CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032580
32581cat >>confdefs.h <<_ACEOF
32582#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32583_ACEOF
32584
cristy7def36a2011-10-28 19:04:41 +000032585CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032586DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32587case "${build_os}" in
32588 mingw* )
32589 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32590 ;;
32591esac
32592
32593cat >>confdefs.h <<_ACEOF
32594#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32595_ACEOF
32596
32597
32598
cristy2a11bef2011-10-28 18:33:11 +000032599# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032600SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032601
32602cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032603#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032604_ACEOF
32605
cristy670aa3c2011-11-03 00:54:00 +000032606SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032607DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032608case "${build_os}" in
32609 mingw* )
cristy4f820712011-04-01 12:35:43 +000032610 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032611 ;;
32612esac
32613
32614cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032615#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032616_ACEOF
32617
32618
32619
cristy54378032012-12-04 15:52:20 +000032620#
32621# Subdirectory to place architecture-dependent configuration files.
32622if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32623 SHAREARCH_BASEDIRNAME="config"
32624fi
cristy670aa3c2011-11-03 00:54:00 +000032625
32626cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032627#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032628_ACEOF
32629
cristy54378032012-12-04 15:52:20 +000032630
32631
32632if test "x$SHAREARCH_DIRNAME" = "x"; then
32633 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32634else
cristy670aa3c2011-11-03 00:54:00 +000032635
32636cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032637#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032638_ACEOF
32639
cristy54378032012-12-04 15:52:20 +000032640fi
32641
32642
32643SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32644
32645SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032646
32647
cristy3ed852e2009-09-05 21:47:34 +000032648#
32649# program_transform_name is formed for use in a Makefile, so create a
32650# modified version for use in a shell script.
32651configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32652
32653# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32655$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032657$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32659$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032660AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032661BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032662BZIPDelegateDefault='bzip2'
32663BrowseDelegateDefault='xdg-open'
32664CGMDecodeDelegateDefault='ralcgm'
32665CatDelegateDefault='cat'
32666DNGDecodeDelegateDefault='ufraw-batch'
32667GVCDecodeDelegateDefault='dot'
32668DVIDecodeDelegateDefault='dvips'
32669EchoDelegateDefault='echo'
32670EditorDelegateDefault='xterm'
32671FIGDecodeDelegateDefault='fig2dev'
32672ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32673DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32674MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32675GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032676HPGLDecodeDelegateDefault='hp2xx'
32677HTMLDecodeDelegateDefault='html2ps'
32678ILBMDecodeDelegateDefault='ilbmtoppm'
32679ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032680JXRDecodeDelegateDefault='JxrDecApp'
32681JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032682LPDelegateDefault='lp'
32683LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032684LaunchDelegateDefault='gimp'
32685MANDelegateDefault='groff'
32686MPEGDecodeDelegateDefault='ffmpeg'
32687MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032688MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032689MVDelegateDefault='mv'
32690PCLDelegateDefault='pcl6'
32691PGPDecodeDelegateDefault='pgpv'
32692POVDelegateDefault='povray'
32693if test "$native_win32_build" = 'yes'; then
32694 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032695elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032696 PSDelegateDefault='gsc'
32697else
32698 PSDelegateDefault='gs'
32699fi
32700RLEEncodeDelegateDefault='rawtorle'
32701RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032702RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032703SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032704SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032705TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032706UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032707WMFDecodeDelegateDefault='wmf2eps'
32708WWWDecodeDelegateDefault='curl'
32709XPSDelegateDefault='gxps'
32710ZipDelegateDefault='gzip'
32711
32712# Search for delegates
32713# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32714set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032716$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032717if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032718 $as_echo_n "(cached) " >&6
32719else
32720 case $AutotraceDecodeDelegate in
32721 [\\/]* | ?:[\\/]*)
32722 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32723 ;;
32724 *)
32725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32726for as_dir in $PATH
32727do
32728 IFS=$as_save_IFS
32729 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032730 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032732 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032734 break 2
32735 fi
32736done
cristy8b350f62009-11-15 23:12:43 +000032737 done
cristy3ed852e2009-09-05 21:47:34 +000032738IFS=$as_save_IFS
32739
32740 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32741 ;;
32742esac
32743fi
32744AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32745if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032747$as_echo "$AutotraceDecodeDelegate" >&6; }
32748else
cristy8b350f62009-11-15 23:12:43 +000032749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032750$as_echo "no" >&6; }
32751fi
32752
32753
cristy3ed852e2009-09-05 21:47:34 +000032754# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32755set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032757$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032758if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032759 $as_echo_n "(cached) " >&6
32760else
32761 case $BlenderDecodeDelegate in
32762 [\\/]* | ?:[\\/]*)
32763 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32764 ;;
32765 *)
32766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32767for as_dir in $PATH
32768do
32769 IFS=$as_save_IFS
32770 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032771 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032773 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032775 break 2
32776 fi
32777done
cristy8b350f62009-11-15 23:12:43 +000032778 done
cristy3ed852e2009-09-05 21:47:34 +000032779IFS=$as_save_IFS
32780
32781 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32782 ;;
32783esac
32784fi
32785BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32786if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032788$as_echo "$BlenderDecodeDelegate" >&6; }
32789else
cristy8b350f62009-11-15 23:12:43 +000032790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032791$as_echo "no" >&6; }
32792fi
32793
32794
32795# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32796set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032798$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032799if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032800 $as_echo_n "(cached) " >&6
32801else
32802 case $BZIPDelegate in
32803 [\\/]* | ?:[\\/]*)
32804 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32805 ;;
32806 *)
32807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32808for as_dir in $PATH
32809do
32810 IFS=$as_save_IFS
32811 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032814 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032816 break 2
32817 fi
32818done
cristy8b350f62009-11-15 23:12:43 +000032819 done
cristy3ed852e2009-09-05 21:47:34 +000032820IFS=$as_save_IFS
32821
32822 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32823 ;;
32824esac
32825fi
32826BZIPDelegate=$ac_cv_path_BZIPDelegate
32827if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032829$as_echo "$BZIPDelegate" >&6; }
32830else
cristy8b350f62009-11-15 23:12:43 +000032831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032832$as_echo "no" >&6; }
32833fi
32834
32835
cristyc59f0e72012-08-27 12:59:33 +000032836for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32837do
32838 # Extract the first word of "$ac_prog", so it can be a program name with args.
32839set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032841$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032842if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032843 $as_echo_n "(cached) " >&6
32844else
32845 case $BrowseDelegate in
32846 [\\/]* | ?:[\\/]*)
32847 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32848 ;;
32849 *)
32850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32851for as_dir in $PATH
32852do
32853 IFS=$as_save_IFS
32854 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032855 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032857 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032859 break 2
32860 fi
32861done
cristy8b350f62009-11-15 23:12:43 +000032862 done
cristy3ed852e2009-09-05 21:47:34 +000032863IFS=$as_save_IFS
32864
cristy3ed852e2009-09-05 21:47:34 +000032865 ;;
32866esac
32867fi
32868BrowseDelegate=$ac_cv_path_BrowseDelegate
32869if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032871$as_echo "$BrowseDelegate" >&6; }
32872else
cristy8b350f62009-11-15 23:12:43 +000032873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032874$as_echo "no" >&6; }
32875fi
32876
32877
cristyc59f0e72012-08-27 12:59:33 +000032878 test -n "$BrowseDelegate" && break
32879done
32880test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32881
cristy3ed852e2009-09-05 21:47:34 +000032882# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32883set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032885$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032886if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032887 $as_echo_n "(cached) " >&6
32888else
32889 case $CGMDecodeDelegate in
32890 [\\/]* | ?:[\\/]*)
32891 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32892 ;;
32893 *)
32894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32895for as_dir in $PATH
32896do
32897 IFS=$as_save_IFS
32898 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032901 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032903 break 2
32904 fi
32905done
cristy8b350f62009-11-15 23:12:43 +000032906 done
cristy3ed852e2009-09-05 21:47:34 +000032907IFS=$as_save_IFS
32908
32909 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32910 ;;
32911esac
32912fi
32913CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32914if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032916$as_echo "$CGMDecodeDelegate" >&6; }
32917else
cristy8b350f62009-11-15 23:12:43 +000032918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032919$as_echo "no" >&6; }
32920fi
32921
32922
32923# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32924set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032926$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032927if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032928 $as_echo_n "(cached) " >&6
32929else
32930 case $CatDelegate in
32931 [\\/]* | ?:[\\/]*)
32932 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32933 ;;
32934 *)
32935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32936for as_dir in $PATH
32937do
32938 IFS=$as_save_IFS
32939 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032942 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032944 break 2
32945 fi
32946done
cristy8b350f62009-11-15 23:12:43 +000032947 done
cristy3ed852e2009-09-05 21:47:34 +000032948IFS=$as_save_IFS
32949
32950 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32951 ;;
32952esac
32953fi
32954CatDelegate=$ac_cv_path_CatDelegate
32955if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032957$as_echo "$CatDelegate" >&6; }
32958else
cristy8b350f62009-11-15 23:12:43 +000032959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032960$as_echo "no" >&6; }
32961fi
32962
32963
32964# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32965set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032967$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032968if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032969 $as_echo_n "(cached) " >&6
32970else
32971 case $DNGDecodeDelegate in
32972 [\\/]* | ?:[\\/]*)
32973 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32974 ;;
32975 *)
32976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32977for as_dir in $PATH
32978do
32979 IFS=$as_save_IFS
32980 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032981 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032983 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032985 break 2
32986 fi
32987done
cristy8b350f62009-11-15 23:12:43 +000032988 done
cristy3ed852e2009-09-05 21:47:34 +000032989IFS=$as_save_IFS
32990
32991 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32992 ;;
32993esac
32994fi
32995DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32996if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032998$as_echo "$DNGDecodeDelegate" >&6; }
32999else
cristy8b350f62009-11-15 23:12:43 +000033000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033001$as_echo "no" >&6; }
33002fi
33003
33004
33005# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33006set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033008$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033009if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033010 $as_echo_n "(cached) " >&6
33011else
33012 case $GVCDecodeDelegate in
33013 [\\/]* | ?:[\\/]*)
33014 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33015 ;;
33016 *)
33017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33018for as_dir in $PATH
33019do
33020 IFS=$as_save_IFS
33021 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033022 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033024 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033026 break 2
33027 fi
33028done
cristy8b350f62009-11-15 23:12:43 +000033029 done
cristy3ed852e2009-09-05 21:47:34 +000033030IFS=$as_save_IFS
33031
33032 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33033 ;;
33034esac
33035fi
33036GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33037if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033039$as_echo "$GVCDecodeDelegate" >&6; }
33040else
cristy8b350f62009-11-15 23:12:43 +000033041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033042$as_echo "no" >&6; }
33043fi
33044
33045
33046# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33047set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033049$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033050if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033051 $as_echo_n "(cached) " >&6
33052else
33053 case $DVIDecodeDelegate in
33054 [\\/]* | ?:[\\/]*)
33055 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33056 ;;
33057 *)
33058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33059for as_dir in $PATH
33060do
33061 IFS=$as_save_IFS
33062 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033063 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033065 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033067 break 2
33068 fi
33069done
cristy8b350f62009-11-15 23:12:43 +000033070 done
cristy3ed852e2009-09-05 21:47:34 +000033071IFS=$as_save_IFS
33072
33073 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33074 ;;
33075esac
33076fi
33077DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33078if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033080$as_echo "$DVIDecodeDelegate" >&6; }
33081else
cristy8b350f62009-11-15 23:12:43 +000033082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033083$as_echo "no" >&6; }
33084fi
33085
33086
33087# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33088set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033090$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033091if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033092 $as_echo_n "(cached) " >&6
33093else
33094 case $EchoDelegate in
33095 [\\/]* | ?:[\\/]*)
33096 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33097 ;;
33098 *)
33099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33100for as_dir in $PATH
33101do
33102 IFS=$as_save_IFS
33103 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033104 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033106 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033108 break 2
33109 fi
33110done
cristy8b350f62009-11-15 23:12:43 +000033111 done
cristy3ed852e2009-09-05 21:47:34 +000033112IFS=$as_save_IFS
33113
33114 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33115 ;;
33116esac
33117fi
33118EchoDelegate=$ac_cv_path_EchoDelegate
33119if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033121$as_echo "$EchoDelegate" >&6; }
33122else
cristy8b350f62009-11-15 23:12:43 +000033123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033124$as_echo "no" >&6; }
33125fi
33126
33127
33128# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33129set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033131$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033132if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033133 $as_echo_n "(cached) " >&6
33134else
33135 case $EditorDelegate in
33136 [\\/]* | ?:[\\/]*)
33137 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33138 ;;
33139 *)
33140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33141for as_dir in $PATH
33142do
33143 IFS=$as_save_IFS
33144 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033145 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033147 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033149 break 2
33150 fi
33151done
cristy8b350f62009-11-15 23:12:43 +000033152 done
cristy3ed852e2009-09-05 21:47:34 +000033153IFS=$as_save_IFS
33154
33155 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33156 ;;
33157esac
33158fi
33159EditorDelegate=$ac_cv_path_EditorDelegate
33160if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033162$as_echo "$EditorDelegate" >&6; }
33163else
cristy8b350f62009-11-15 23:12:43 +000033164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033165$as_echo "no" >&6; }
33166fi
33167
33168
33169# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33170set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033172$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033173if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033174 $as_echo_n "(cached) " >&6
33175else
33176 case $FIGDecodeDelegate in
33177 [\\/]* | ?:[\\/]*)
33178 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33179 ;;
33180 *)
33181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33182for as_dir in $PATH
33183do
33184 IFS=$as_save_IFS
33185 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033186 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033188 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033190 break 2
33191 fi
33192done
cristy8b350f62009-11-15 23:12:43 +000033193 done
cristy3ed852e2009-09-05 21:47:34 +000033194IFS=$as_save_IFS
33195
33196 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33197 ;;
33198esac
33199fi
33200FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33201if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033203$as_echo "$FIGDecodeDelegate" >&6; }
33204else
cristy8b350f62009-11-15 23:12:43 +000033205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033206$as_echo "no" >&6; }
33207fi
33208
33209
33210# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33211set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033214if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033215 $as_echo_n "(cached) " >&6
33216else
33217 case $ConvertDelegate in
33218 [\\/]* | ?:[\\/]*)
33219 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33220 ;;
33221 *)
33222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33223for as_dir in $PATH
33224do
33225 IFS=$as_save_IFS
33226 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033227 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033229 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033231 break 2
33232 fi
33233done
cristy8b350f62009-11-15 23:12:43 +000033234 done
cristy3ed852e2009-09-05 21:47:34 +000033235IFS=$as_save_IFS
33236
33237 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33238 ;;
33239esac
33240fi
33241ConvertDelegate=$ac_cv_path_ConvertDelegate
33242if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033244$as_echo "$ConvertDelegate" >&6; }
33245else
cristy8b350f62009-11-15 23:12:43 +000033246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033247$as_echo "no" >&6; }
33248fi
33249
33250
33251# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33252set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033254$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033255if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033256 $as_echo_n "(cached) " >&6
33257else
33258 case $DisplayDelegate in
33259 [\\/]* | ?:[\\/]*)
33260 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33261 ;;
33262 *)
33263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33264for as_dir in $PATH
33265do
33266 IFS=$as_save_IFS
33267 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033268 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033270 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033272 break 2
33273 fi
33274done
cristy8b350f62009-11-15 23:12:43 +000033275 done
cristy3ed852e2009-09-05 21:47:34 +000033276IFS=$as_save_IFS
33277
33278 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33279 ;;
33280esac
33281fi
33282DisplayDelegate=$ac_cv_path_DisplayDelegate
33283if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033285$as_echo "$DisplayDelegate" >&6; }
33286else
cristy8b350f62009-11-15 23:12:43 +000033287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033288$as_echo "no" >&6; }
33289fi
33290
33291
33292# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33293set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033295$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033296if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033297 $as_echo_n "(cached) " >&6
33298else
33299 case $MogrifyDelegate in
33300 [\\/]* | ?:[\\/]*)
33301 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33302 ;;
33303 *)
33304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33305for as_dir in $PATH
33306do
33307 IFS=$as_save_IFS
33308 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033309 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033311 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033313 break 2
33314 fi
33315done
cristy8b350f62009-11-15 23:12:43 +000033316 done
cristy3ed852e2009-09-05 21:47:34 +000033317IFS=$as_save_IFS
33318
33319 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33320 ;;
33321esac
33322fi
33323MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33324if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033326$as_echo "$MogrifyDelegate" >&6; }
33327else
cristy8b350f62009-11-15 23:12:43 +000033328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033329$as_echo "no" >&6; }
33330fi
33331
33332
33333# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33334set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033336$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033337if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033338 $as_echo_n "(cached) " >&6
33339else
33340 case $GnuplotDecodeDelegate in
33341 [\\/]* | ?:[\\/]*)
33342 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33343 ;;
33344 *)
33345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33346for as_dir in $PATH
33347do
33348 IFS=$as_save_IFS
33349 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033350 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033352 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033354 break 2
33355 fi
33356done
cristy8b350f62009-11-15 23:12:43 +000033357 done
cristy3ed852e2009-09-05 21:47:34 +000033358IFS=$as_save_IFS
33359
33360 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33361 ;;
33362esac
33363fi
33364GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33365if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033367$as_echo "$GnuplotDecodeDelegate" >&6; }
33368else
cristy8b350f62009-11-15 23:12:43 +000033369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033370$as_echo "no" >&6; }
33371fi
33372
33373
cristy3ed852e2009-09-05 21:47:34 +000033374# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33375set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033377$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033378if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033379 $as_echo_n "(cached) " >&6
33380else
33381 case $HPGLDecodeDelegate in
33382 [\\/]* | ?:[\\/]*)
33383 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33384 ;;
33385 *)
33386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33387for as_dir in $PATH
33388do
33389 IFS=$as_save_IFS
33390 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033391 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033393 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033395 break 2
33396 fi
33397done
cristy8b350f62009-11-15 23:12:43 +000033398 done
cristy3ed852e2009-09-05 21:47:34 +000033399IFS=$as_save_IFS
33400
33401 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33402 ;;
33403esac
33404fi
33405HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33406if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033408$as_echo "$HPGLDecodeDelegate" >&6; }
33409else
cristy8b350f62009-11-15 23:12:43 +000033410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033411$as_echo "no" >&6; }
33412fi
33413
33414
33415# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33416set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033418$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033419if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033420 $as_echo_n "(cached) " >&6
33421else
33422 case $HTMLDecodeDelegate in
33423 [\\/]* | ?:[\\/]*)
33424 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33425 ;;
33426 *)
33427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33428for as_dir in $PATH
33429do
33430 IFS=$as_save_IFS
33431 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033432 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033434 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033436 break 2
33437 fi
33438done
cristy8b350f62009-11-15 23:12:43 +000033439 done
cristy3ed852e2009-09-05 21:47:34 +000033440IFS=$as_save_IFS
33441
33442 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33443 ;;
33444esac
33445fi
33446HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33447if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033449$as_echo "$HTMLDecodeDelegate" >&6; }
33450else
cristy8b350f62009-11-15 23:12:43 +000033451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033452$as_echo "no" >&6; }
33453fi
33454
33455
33456# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33457set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033459$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033460if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033461 $as_echo_n "(cached) " >&6
33462else
33463 case $ILBMDecodeDelegate in
33464 [\\/]* | ?:[\\/]*)
33465 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33466 ;;
33467 *)
33468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33469for as_dir in $PATH
33470do
33471 IFS=$as_save_IFS
33472 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033473 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033475 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033477 break 2
33478 fi
33479done
cristy8b350f62009-11-15 23:12:43 +000033480 done
cristy3ed852e2009-09-05 21:47:34 +000033481IFS=$as_save_IFS
33482
33483 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33484 ;;
33485esac
33486fi
33487ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33488if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033490$as_echo "$ILBMDecodeDelegate" >&6; }
33491else
cristy8b350f62009-11-15 23:12:43 +000033492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033493$as_echo "no" >&6; }
33494fi
33495
33496
33497# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33498set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033500$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033501if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033502 $as_echo_n "(cached) " >&6
33503else
33504 case $ILBMEncodeDelegate in
33505 [\\/]* | ?:[\\/]*)
33506 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33507 ;;
33508 *)
33509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33510for as_dir in $PATH
33511do
33512 IFS=$as_save_IFS
33513 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033516 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033518 break 2
33519 fi
33520done
cristy8b350f62009-11-15 23:12:43 +000033521 done
cristy3ed852e2009-09-05 21:47:34 +000033522IFS=$as_save_IFS
33523
33524 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33525 ;;
33526esac
33527fi
33528ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33529if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531$as_echo "$ILBMEncodeDelegate" >&6; }
33532else
cristy8b350f62009-11-15 23:12:43 +000033533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033534$as_echo "no" >&6; }
33535fi
33536
33537
cristy71f53d52013-04-27 13:33:59 +000033538# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33539set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33541$as_echo_n "checking for $ac_word... " >&6; }
33542if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33543 $as_echo_n "(cached) " >&6
33544else
33545 case $JXRDecodeDelegate in
33546 [\\/]* | ?:[\\/]*)
33547 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33548 ;;
33549 *)
33550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33551for as_dir in $PATH
33552do
33553 IFS=$as_save_IFS
33554 test -z "$as_dir" && as_dir=.
33555 for ac_exec_ext in '' $ac_executable_extensions; do
33556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33557 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33559 break 2
33560 fi
33561done
33562 done
33563IFS=$as_save_IFS
33564
33565 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33566 ;;
33567esac
33568fi
33569JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33570if test -n "$JXRDecodeDelegate"; then
33571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33572$as_echo "$JXRDecodeDelegate" >&6; }
33573else
33574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33575$as_echo "no" >&6; }
33576fi
33577
33578
33579# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33580set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33582$as_echo_n "checking for $ac_word... " >&6; }
33583if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33584 $as_echo_n "(cached) " >&6
33585else
33586 case $JXREncodeDelegate in
33587 [\\/]* | ?:[\\/]*)
33588 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33589 ;;
33590 *)
33591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33592for as_dir in $PATH
33593do
33594 IFS=$as_save_IFS
33595 test -z "$as_dir" && as_dir=.
33596 for ac_exec_ext in '' $ac_executable_extensions; do
33597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33598 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33600 break 2
33601 fi
33602done
33603 done
33604IFS=$as_save_IFS
33605
33606 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33607 ;;
33608esac
33609fi
33610JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33611if test -n "$JXREncodeDelegate"; then
33612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33613$as_echo "$JXREncodeDelegate" >&6; }
33614else
33615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33616$as_echo "no" >&6; }
33617fi
33618
33619
cristy3ed852e2009-09-05 21:47:34 +000033620# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33621set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033623$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033624if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033625 $as_echo_n "(cached) " >&6
33626else
33627 case $LPDelegate in
33628 [\\/]* | ?:[\\/]*)
33629 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33630 ;;
33631 *)
33632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33633for as_dir in $PATH
33634do
33635 IFS=$as_save_IFS
33636 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033637 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033639 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033641 break 2
33642 fi
33643done
cristy8b350f62009-11-15 23:12:43 +000033644 done
cristy3ed852e2009-09-05 21:47:34 +000033645IFS=$as_save_IFS
33646
33647 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33648 ;;
33649esac
33650fi
33651LPDelegate=$ac_cv_path_LPDelegate
33652if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033654$as_echo "$LPDelegate" >&6; }
33655else
cristy8b350f62009-11-15 23:12:43 +000033656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033657$as_echo "no" >&6; }
33658fi
33659
33660
33661# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33662set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033664$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033665if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033666 $as_echo_n "(cached) " >&6
33667else
33668 case $LPRDelegate in
33669 [\\/]* | ?:[\\/]*)
33670 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33671 ;;
33672 *)
33673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33674for as_dir in $PATH
33675do
33676 IFS=$as_save_IFS
33677 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033678 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033680 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033682 break 2
33683 fi
33684done
cristy8b350f62009-11-15 23:12:43 +000033685 done
cristy3ed852e2009-09-05 21:47:34 +000033686IFS=$as_save_IFS
33687
33688 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33689 ;;
33690esac
33691fi
33692LPRDelegate=$ac_cv_path_LPRDelegate
33693if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033695$as_echo "$LPRDelegate" >&6; }
33696else
cristy8b350f62009-11-15 23:12:43 +000033697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033698$as_echo "no" >&6; }
33699fi
33700
33701
cristy3ed852e2009-09-05 21:47:34 +000033702# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33703set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033705$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033706if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033707 $as_echo_n "(cached) " >&6
33708else
33709 case $LaunchDelegate in
33710 [\\/]* | ?:[\\/]*)
33711 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33712 ;;
33713 *)
33714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33715for as_dir in $PATH
33716do
33717 IFS=$as_save_IFS
33718 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033719 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033721 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033723 break 2
33724 fi
33725done
cristy8b350f62009-11-15 23:12:43 +000033726 done
cristy3ed852e2009-09-05 21:47:34 +000033727IFS=$as_save_IFS
33728
33729 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33730 ;;
33731esac
33732fi
33733LaunchDelegate=$ac_cv_path_LaunchDelegate
33734if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033736$as_echo "$LaunchDelegate" >&6; }
33737else
cristy8b350f62009-11-15 23:12:43 +000033738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033739$as_echo "no" >&6; }
33740fi
33741
33742
33743# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33744set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033746$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033747if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033748 $as_echo_n "(cached) " >&6
33749else
33750 case $MANDelegate in
33751 [\\/]* | ?:[\\/]*)
33752 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33753 ;;
33754 *)
33755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33756for as_dir in $PATH
33757do
33758 IFS=$as_save_IFS
33759 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033760 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033762 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033764 break 2
33765 fi
33766done
cristy8b350f62009-11-15 23:12:43 +000033767 done
cristy3ed852e2009-09-05 21:47:34 +000033768IFS=$as_save_IFS
33769
33770 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33771 ;;
33772esac
33773fi
33774MANDelegate=$ac_cv_path_MANDelegate
33775if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033777$as_echo "$MANDelegate" >&6; }
33778else
cristy8b350f62009-11-15 23:12:43 +000033779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033780$as_echo "no" >&6; }
33781fi
33782
33783
33784# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33785set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033787$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033788if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033789 $as_echo_n "(cached) " >&6
33790else
33791 case $MPEGDecodeDelegate in
33792 [\\/]* | ?:[\\/]*)
33793 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33794 ;;
33795 *)
33796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33797for as_dir in $PATH
33798do
33799 IFS=$as_save_IFS
33800 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033801 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033803 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033805 break 2
33806 fi
33807done
cristy8b350f62009-11-15 23:12:43 +000033808 done
cristy3ed852e2009-09-05 21:47:34 +000033809IFS=$as_save_IFS
33810
33811 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33812 ;;
33813esac
33814fi
33815MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33816if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033818$as_echo "$MPEGDecodeDelegate" >&6; }
33819else
cristy8b350f62009-11-15 23:12:43 +000033820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033821$as_echo "no" >&6; }
33822fi
33823
33824
33825# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33826set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033828$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033829if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033830 $as_echo_n "(cached) " >&6
33831else
33832 case $MPEGEncodeDelegate in
33833 [\\/]* | ?:[\\/]*)
33834 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33835 ;;
33836 *)
33837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33838for as_dir in $PATH
33839do
33840 IFS=$as_save_IFS
33841 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033842 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033844 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033846 break 2
33847 fi
33848done
cristy8b350f62009-11-15 23:12:43 +000033849 done
cristy3ed852e2009-09-05 21:47:34 +000033850IFS=$as_save_IFS
33851
33852 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33853 ;;
33854esac
33855fi
33856MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33857if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859$as_echo "$MPEGEncodeDelegate" >&6; }
33860else
cristy8b350f62009-11-15 23:12:43 +000033861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033862$as_echo "no" >&6; }
33863fi
33864
33865
cristy935c86e2010-06-05 23:50:07 +000033866# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33867set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33869$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033870if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033871 $as_echo_n "(cached) " >&6
33872else
33873 case $MrSIDDecodeDelegate in
33874 [\\/]* | ?:[\\/]*)
33875 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33876 ;;
33877 *)
33878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33879for as_dir in $PATH
33880do
33881 IFS=$as_save_IFS
33882 test -z "$as_dir" && as_dir=.
33883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033885 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33887 break 2
33888 fi
33889done
33890 done
33891IFS=$as_save_IFS
33892
33893 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33894 ;;
33895esac
33896fi
33897MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33898if test -n "$MrSIDDecodeDelegate"; then
33899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33900$as_echo "$MrSIDDecodeDelegate" >&6; }
33901else
33902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33903$as_echo "no" >&6; }
33904fi
33905
33906
cristy3ed852e2009-09-05 21:47:34 +000033907# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33908set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033910$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033911if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033912 $as_echo_n "(cached) " >&6
33913else
33914 case $MVDelegate in
33915 [\\/]* | ?:[\\/]*)
33916 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33917 ;;
33918 *)
33919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33920for as_dir in $PATH
33921do
33922 IFS=$as_save_IFS
33923 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033924 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033926 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033928 break 2
33929 fi
33930done
cristy8b350f62009-11-15 23:12:43 +000033931 done
cristy3ed852e2009-09-05 21:47:34 +000033932IFS=$as_save_IFS
33933
33934 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33935 ;;
33936esac
33937fi
33938MVDelegate=$ac_cv_path_MVDelegate
33939if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033941$as_echo "$MVDelegate" >&6; }
33942else
cristy8b350f62009-11-15 23:12:43 +000033943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033944$as_echo "no" >&6; }
33945fi
33946
33947
33948# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33949set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033951$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033952if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033953 $as_echo_n "(cached) " >&6
33954else
33955 case $PCLDelegate in
33956 [\\/]* | ?:[\\/]*)
33957 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33958 ;;
33959 *)
33960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33961for as_dir in $PATH
33962do
33963 IFS=$as_save_IFS
33964 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033965 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033967 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033969 break 2
33970 fi
33971done
cristy8b350f62009-11-15 23:12:43 +000033972 done
cristy3ed852e2009-09-05 21:47:34 +000033973IFS=$as_save_IFS
33974
33975 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33976 ;;
33977esac
33978fi
33979PCLDelegate=$ac_cv_path_PCLDelegate
33980if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033982$as_echo "$PCLDelegate" >&6; }
33983else
cristy8b350f62009-11-15 23:12:43 +000033984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033985$as_echo "no" >&6; }
33986fi
33987
33988
33989# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33990set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033992$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033993if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033994 $as_echo_n "(cached) " >&6
33995else
33996 case $PGPDecodeDelegate in
33997 [\\/]* | ?:[\\/]*)
33998 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33999 ;;
34000 *)
34001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34002for as_dir in $PATH
34003do
34004 IFS=$as_save_IFS
34005 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034006 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034008 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034010 break 2
34011 fi
34012done
cristy8b350f62009-11-15 23:12:43 +000034013 done
cristy3ed852e2009-09-05 21:47:34 +000034014IFS=$as_save_IFS
34015
34016 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34017 ;;
34018esac
34019fi
34020PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34021if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034023$as_echo "$PGPDecodeDelegate" >&6; }
34024else
cristy8b350f62009-11-15 23:12:43 +000034025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034026$as_echo "no" >&6; }
34027fi
34028
34029
34030# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34031set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034034if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034035 $as_echo_n "(cached) " >&6
34036else
34037 case $POVDelegate in
34038 [\\/]* | ?:[\\/]*)
34039 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34040 ;;
34041 *)
34042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34043for as_dir in $PATH
34044do
34045 IFS=$as_save_IFS
34046 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034049 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034051 break 2
34052 fi
34053done
cristy8b350f62009-11-15 23:12:43 +000034054 done
cristy3ed852e2009-09-05 21:47:34 +000034055IFS=$as_save_IFS
34056
34057 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34058 ;;
34059esac
34060fi
34061POVDelegate=$ac_cv_path_POVDelegate
34062if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034064$as_echo "$POVDelegate" >&6; }
34065else
cristy8b350f62009-11-15 23:12:43 +000034066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034067$as_echo "no" >&6; }
34068fi
34069
34070
34071for ac_prog in gsx gsc "$PSDelegateDefault"
34072do
34073 # Extract the first word of "$ac_prog", so it can be a program name with args.
34074set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034076$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034077if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034078 $as_echo_n "(cached) " >&6
34079else
34080 case $PSDelegate in
34081 [\\/]* | ?:[\\/]*)
34082 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34083 ;;
34084 *)
34085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34086for as_dir in $PATH
34087do
34088 IFS=$as_save_IFS
34089 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034090 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034092 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034094 break 2
34095 fi
34096done
cristy8b350f62009-11-15 23:12:43 +000034097 done
cristy3ed852e2009-09-05 21:47:34 +000034098IFS=$as_save_IFS
34099
34100 ;;
34101esac
34102fi
34103PSDelegate=$ac_cv_path_PSDelegate
34104if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034106$as_echo "$PSDelegate" >&6; }
34107else
cristy8b350f62009-11-15 23:12:43 +000034108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034109$as_echo "no" >&6; }
34110fi
34111
34112
34113 test -n "$PSDelegate" && break
34114done
34115test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34116
34117# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34118set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034120$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034121if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034122 $as_echo_n "(cached) " >&6
34123else
34124 case $RLEEncodeDelegate in
34125 [\\/]* | ?:[\\/]*)
34126 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34127 ;;
34128 *)
34129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34130for as_dir in $PATH
34131do
34132 IFS=$as_save_IFS
34133 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034134 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034136 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034138 break 2
34139 fi
34140done
cristy8b350f62009-11-15 23:12:43 +000034141 done
cristy3ed852e2009-09-05 21:47:34 +000034142IFS=$as_save_IFS
34143
34144 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34145 ;;
34146esac
34147fi
34148RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34149if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034151$as_echo "$RLEEncodeDelegate" >&6; }
34152else
cristy8b350f62009-11-15 23:12:43 +000034153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034154$as_echo "no" >&6; }
34155fi
34156
34157
34158# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34159set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034161$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034162if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034163 $as_echo_n "(cached) " >&6
34164else
34165 case $RMDelegate in
34166 [\\/]* | ?:[\\/]*)
34167 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34168 ;;
34169 *)
34170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34171for as_dir in $PATH
34172do
34173 IFS=$as_save_IFS
34174 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034175 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034177 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034179 break 2
34180 fi
34181done
cristy8b350f62009-11-15 23:12:43 +000034182 done
cristy3ed852e2009-09-05 21:47:34 +000034183IFS=$as_save_IFS
34184
34185 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34186 ;;
34187esac
34188fi
34189RMDelegate=$ac_cv_path_RMDelegate
34190if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034192$as_echo "$RMDelegate" >&6; }
34193else
cristy8b350f62009-11-15 23:12:43 +000034194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034195$as_echo "no" >&6; }
34196fi
34197
34198
cristy4689cf02010-02-17 21:15:45 +000034199# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34200set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34202$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034203if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034204 $as_echo_n "(cached) " >&6
34205else
34206 case $RSVGDecodeDelegate in
34207 [\\/]* | ?:[\\/]*)
34208 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34209 ;;
34210 *)
34211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34212for as_dir in $PATH
34213do
34214 IFS=$as_save_IFS
34215 test -z "$as_dir" && as_dir=.
34216 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034218 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34220 break 2
34221 fi
34222done
34223 done
34224IFS=$as_save_IFS
34225
34226 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34227 ;;
34228esac
34229fi
34230RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34231if test -n "$RSVGDecodeDelegate"; then
34232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34233$as_echo "$RSVGDecodeDelegate" >&6; }
34234else
34235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34236$as_echo "no" >&6; }
34237fi
34238
34239
cristy3ed852e2009-09-05 21:47:34 +000034240# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34241set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034243$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034244if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034245 $as_echo_n "(cached) " >&6
34246else
34247 case $SCANDecodeDelegate in
34248 [\\/]* | ?:[\\/]*)
34249 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34250 ;;
34251 *)
34252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34253for as_dir in $PATH
34254do
34255 IFS=$as_save_IFS
34256 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034257 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034259 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034261 break 2
34262 fi
34263done
cristy8b350f62009-11-15 23:12:43 +000034264 done
cristy3ed852e2009-09-05 21:47:34 +000034265IFS=$as_save_IFS
34266
34267 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34268 ;;
34269esac
34270fi
34271SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34272if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034274$as_echo "$SCANDecodeDelegate" >&6; }
34275else
cristy8b350f62009-11-15 23:12:43 +000034276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034277$as_echo "no" >&6; }
34278fi
34279
34280
cristyec6934f2012-08-14 18:38:40 +000034281# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34282set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34284$as_echo_n "checking for $ac_word... " >&6; }
34285if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34286 $as_echo_n "(cached) " >&6
34287else
34288 case $SVGDecodeDelegate in
34289 [\\/]* | ?:[\\/]*)
34290 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34291 ;;
34292 *)
34293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34294for as_dir in $PATH
34295do
34296 IFS=$as_save_IFS
34297 test -z "$as_dir" && as_dir=.
34298 for ac_exec_ext in '' $ac_executable_extensions; do
34299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34300 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34302 break 2
34303 fi
34304done
34305 done
34306IFS=$as_save_IFS
34307
34308 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34309 ;;
34310esac
34311fi
34312SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34313if test -n "$SVGDecodeDelegate"; then
34314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34315$as_echo "$SVGDecodeDelegate" >&6; }
34316else
34317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34318$as_echo "no" >&6; }
34319fi
34320
34321
cristy3ed852e2009-09-05 21:47:34 +000034322# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34323set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034325$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034326if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034327 $as_echo_n "(cached) " >&6
34328else
34329 case $TXTDelegate in
34330 [\\/]* | ?:[\\/]*)
34331 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34332 ;;
34333 *)
34334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34335for as_dir in $PATH
34336do
34337 IFS=$as_save_IFS
34338 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034339 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034341 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034343 break 2
34344 fi
34345done
cristy8b350f62009-11-15 23:12:43 +000034346 done
cristy3ed852e2009-09-05 21:47:34 +000034347IFS=$as_save_IFS
34348
34349 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34350 ;;
34351esac
34352fi
34353TXTDelegate=$ac_cv_path_TXTDelegate
34354if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034356$as_echo "$TXTDelegate" >&6; }
34357else
cristy8b350f62009-11-15 23:12:43 +000034358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034359$as_echo "no" >&6; }
34360fi
34361
34362
cristy5ac9ac82010-07-29 13:24:24 +000034363# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34364set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34366$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034367if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034368 $as_echo_n "(cached) " >&6
34369else
34370 case $UniconvertorDelegate in
34371 [\\/]* | ?:[\\/]*)
34372 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34373 ;;
34374 *)
34375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34376for as_dir in $PATH
34377do
34378 IFS=$as_save_IFS
34379 test -z "$as_dir" && as_dir=.
34380 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034382 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34384 break 2
34385 fi
34386done
34387 done
34388IFS=$as_save_IFS
34389
34390 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34391 ;;
34392esac
34393fi
34394UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34395if test -n "$UniconvertorDelegate"; then
34396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34397$as_echo "$UniconvertorDelegate" >&6; }
34398else
34399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34400$as_echo "no" >&6; }
34401fi
34402
34403
cristy3ed852e2009-09-05 21:47:34 +000034404# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34405set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034407$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034408if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034409 $as_echo_n "(cached) " >&6
34410else
34411 case $WMFDecodeDelegate in
34412 [\\/]* | ?:[\\/]*)
34413 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34414 ;;
34415 *)
34416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34417for as_dir in $PATH
34418do
34419 IFS=$as_save_IFS
34420 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034421 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034423 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034425 break 2
34426 fi
34427done
cristy8b350f62009-11-15 23:12:43 +000034428 done
cristy3ed852e2009-09-05 21:47:34 +000034429IFS=$as_save_IFS
34430
34431 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34432 ;;
34433esac
34434fi
34435WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34436if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034438$as_echo "$WMFDecodeDelegate" >&6; }
34439else
cristy8b350f62009-11-15 23:12:43 +000034440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034441$as_echo "no" >&6; }
34442fi
34443
34444
34445# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34446set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034448$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034449if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034450 $as_echo_n "(cached) " >&6
34451else
34452 case $WWWDecodeDelegate in
34453 [\\/]* | ?:[\\/]*)
34454 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34455 ;;
34456 *)
34457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34458for as_dir in $PATH
34459do
34460 IFS=$as_save_IFS
34461 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034462 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034464 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034466 break 2
34467 fi
34468done
cristy8b350f62009-11-15 23:12:43 +000034469 done
cristy3ed852e2009-09-05 21:47:34 +000034470IFS=$as_save_IFS
34471
34472 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34473 ;;
34474esac
34475fi
34476WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34477if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034479$as_echo "$WWWDecodeDelegate" >&6; }
34480else
cristy8b350f62009-11-15 23:12:43 +000034481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034482$as_echo "no" >&6; }
34483fi
34484
34485
34486# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34487set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034489$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034490if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034491 $as_echo_n "(cached) " >&6
34492else
34493 case $XPSDelegate in
34494 [\\/]* | ?:[\\/]*)
34495 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34496 ;;
34497 *)
34498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34499for as_dir in $PATH
34500do
34501 IFS=$as_save_IFS
34502 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034505 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034507 break 2
34508 fi
34509done
cristy8b350f62009-11-15 23:12:43 +000034510 done
cristy3ed852e2009-09-05 21:47:34 +000034511IFS=$as_save_IFS
34512
34513 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34514 ;;
34515esac
34516fi
34517XPSDelegate=$ac_cv_path_XPSDelegate
34518if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034520$as_echo "$XPSDelegate" >&6; }
34521else
cristy8b350f62009-11-15 23:12:43 +000034522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034523$as_echo "no" >&6; }
34524fi
34525
34526
34527# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34528set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034530$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034531if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034532 $as_echo_n "(cached) " >&6
34533else
34534 case $ZipDelegate in
34535 [\\/]* | ?:[\\/]*)
34536 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34537 ;;
34538 *)
34539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34540for as_dir in $PATH
34541do
34542 IFS=$as_save_IFS
34543 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034544 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034546 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034548 break 2
34549 fi
34550done
cristy8b350f62009-11-15 23:12:43 +000034551 done
cristy3ed852e2009-09-05 21:47:34 +000034552IFS=$as_save_IFS
34553
34554 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34555 ;;
34556esac
34557fi
34558ZipDelegate=$ac_cv_path_ZipDelegate
34559if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034561$as_echo "$ZipDelegate" >&6; }
34562else
cristy8b350f62009-11-15 23:12:43 +000034563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034564$as_echo "no" >&6; }
34565fi
34566
34567
34568
34569# Prefer lpr to lp; lp needs options tacked on.
34570if test "$LPRDelegate" != no; then
34571 PrintDelegate="$LPRDelegate"
34572else
34573 PrintDelegate="$LPDelegate -c -s"
34574fi
34575
34576
34577# Installed ImageMagick utiltity paths
34578ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34579DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34580MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34581
34582# Set delegate booleans
34583have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34584have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34585have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34586have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34587have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034588have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034589have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34590have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034591have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34592have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34593
34594#
34595# Test for font directories
34596#
34597type_include_files=''
34598
cristy430a7312010-01-21 20:44:04 +000034599# Dejavu fonts.
34600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34601$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34602dejavu_font_dir=''
34603if test "${with_dejavu_font_dir}" != 'default'; then
34604 dejavu_font_dir="${with_dejavu_font_dir}/"
34605else
34606 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34607 if test -f "${font_dir}DejaVuSerif.ttf"; then
34608 dejavu_font_dir="${font_dir}"
34609 break 1
34610 fi
34611 done
34612fi
34613if test "${dejavu_font_dir}x" != 'x'; then
34614 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34616$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034617else
cristyad38abe2012-12-23 23:03:21 +000034618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34619$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034620fi
34621
34622
cristy3ed852e2009-09-05 21:47:34 +000034623# Windows
34624windows_font_dir=''
34625if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34626 windows_font_dir="${with_windows_font_dir}/"
34627fi
cristy430a7312010-01-21 20:44:04 +000034628if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034629 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34630 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34631 fi
34632 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34633 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34634 fi
34635 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34636 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34637 fi
34638fi
cristy430a7312010-01-21 20:44:04 +000034639if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034640 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34641fi
34642
34643
34644# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034646$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34647ghostscript_font_dir=''
34648if test "${with_gs_font_dir}" != 'default'; then
34649 ghostscript_font_dir="${with_gs_font_dir}/"
34650else
34651 if test "${native_win32_build}" = 'yes'; then
34652 # Native Windows Build
34653 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34654 if test -f "${font_dir}a010013l.pfb"; then
34655 ghostscript_font_dir="$font_dir"
34656 break 1
34657 fi
34658 done
34659 if test "${PSDelegate}" != 'gswin32c'; then
34660 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34661 fi
34662 else
34663 # Linux / Mac OS X / Unix Build
34664 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
34665 if test -f "${font_dir}a010013l.pfb"; then
34666 ghostscript_font_dir="${font_dir}"
34667 break 1
34668 fi
34669 done
34670 if test "${ghostscript_font_dir}x" = 'x'; then
34671 if test "$PSDelegate" != 'gs'; then
34672 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34673 fi
34674 fi
34675 fi
34676fi
34677if test "${ghostscript_font_dir}x" != 'x'; then
34678 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34680$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034681else
cristyad38abe2012-12-23 23:03:21 +000034682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34683$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034684fi
34685
34686case "${build_os}" in
34687 mingw* )
34688 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34689 ;;
34690esac
34691
34692
34693
34694#
34695# Handle case where user doesn't want frozen paths
34696#
34697if test "$with_frozenpaths" != 'yes'; then
34698 # Re-set delegate definitions to default (no paths)
34699 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034700 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34701 BZIPDelegate="$BZIPDelegateDefault"
34702 BrowseDelegate="$BrowseDelegateDefault"
34703 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34704 CatDelegate="$CatDelegateDefault"
34705 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034706 DisplayDelegate="$DisplayDelegateDefault"
34707 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034708 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34709 EchoDelegate="$EchoDelegateDefault"
34710 EditorDelegate="$EditorDelegateDefault"
34711 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34712 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034713 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034714 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34715 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34716 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34717 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034718 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34719 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034720 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034721 LaunchDelegate="$LaunchDelegateDefault"
34722 MANDelegate="$MANDelegateDefault"
34723 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34724 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034725 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034726 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34727 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034728 PCLDelegate="$PCLDelegateDefault"
34729 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34730 POVDelegate="$POVDelegateDefault"
34731 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034732 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34733 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034734 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034735 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034736 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034737 ShowImageDelegate="$ShowImageDelegateDefault"
34738 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034739 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034740 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34741 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34742 XPSDelegate="$XPSDelegateDefault"
34743 ZipDelegate="$ZipDelegateDefault"
34744fi
34745
34746# Delegate substitutions
34747
34748
34749
34750
34751
34752
34753
34754
34755
34756
34757
34758
34759
34760
34761
34762
34763
34764
34765
34766
34767
34768
34769
34770
34771
34772
34773
34774
34775
34776
34777
34778
34779
34780
34781
34782
34783
34784
34785
34786
cristy71f53d52013-04-27 13:33:59 +000034787
34788
cristy3ed852e2009-09-05 21:47:34 +000034789#
34790# RPM support.
34791#
34792RPM=''
34793for ac_prog in gnutar gtar tar
34794do
34795 # Extract the first word of "$ac_prog", so it can be a program name with args.
34796set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034798$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034799if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034800 $as_echo_n "(cached) " >&6
34801else
34802 if test -n "$TAR"; then
34803 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34804else
34805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34806for as_dir in $PATH
34807do
34808 IFS=$as_save_IFS
34809 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034810 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034812 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034814 break 2
34815 fi
34816done
cristy8b350f62009-11-15 23:12:43 +000034817 done
cristy3ed852e2009-09-05 21:47:34 +000034818IFS=$as_save_IFS
34819
34820fi
34821fi
34822TAR=$ac_cv_prog_TAR
34823if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034825$as_echo "$TAR" >&6; }
34826else
cristy8b350f62009-11-15 23:12:43 +000034827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034828$as_echo "no" >&6; }
34829fi
34830
34831
34832 test -n "$TAR" && break
34833done
34834
34835for ac_prog in perl
34836do
34837 # Extract the first word of "$ac_prog", so it can be a program name with args.
34838set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034841if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034842 $as_echo_n "(cached) " >&6
34843else
34844 if test -n "$PERL"; then
34845 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34846else
34847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34848for as_dir in $PATH
34849do
34850 IFS=$as_save_IFS
34851 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034854 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034856 break 2
34857 fi
34858done
cristy8b350f62009-11-15 23:12:43 +000034859 done
cristy3ed852e2009-09-05 21:47:34 +000034860IFS=$as_save_IFS
34861
34862fi
34863fi
34864PERL=$ac_cv_prog_PERL
34865if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034867$as_echo "$PERL" >&6; }
34868else
cristy8b350f62009-11-15 23:12:43 +000034869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034870$as_echo "no" >&6; }
34871fi
34872
34873
34874 test -n "$PERL" && break
34875done
34876
34877for ac_prog in rpmbuild rpm
34878do
34879 # Extract the first word of "$ac_prog", so it can be a program name with args.
34880set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034882$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034883if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034884 $as_echo_n "(cached) " >&6
34885else
34886 if test -n "$RPM"; then
34887 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34888else
34889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34890for as_dir in $PATH
34891do
34892 IFS=$as_save_IFS
34893 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034896 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034898 break 2
34899 fi
34900done
cristy8b350f62009-11-15 23:12:43 +000034901 done
cristy3ed852e2009-09-05 21:47:34 +000034902IFS=$as_save_IFS
34903
34904fi
34905fi
34906RPM=$ac_cv_prog_RPM
34907if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034909$as_echo "$RPM" >&6; }
34910else
cristy8b350f62009-11-15 23:12:43 +000034911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034912$as_echo "no" >&6; }
34913fi
34914
34915
34916 test -n "$RPM" && break
34917done
34918
34919
cristy73bd4a52010-10-05 11:24:23 +000034920ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34921
34922
34923AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34924
34925
34926AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34927
34928
34929AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34930
34931
34932 if test "x$RPM" != "x" ; then
34933 RPM_DELEGATE_TRUE=
34934 RPM_DELEGATE_FALSE='#'
34935else
34936 RPM_DELEGATE_TRUE='#'
34937 RPM_DELEGATE_FALSE=
34938fi
34939
cristy3ed852e2009-09-05 21:47:34 +000034940
34941#
34942# 7ZIP support (http://p7zip.sourceforge.net/)
34943#
34944P7ZIP=''
34945for ac_prog in 7za
34946do
34947 # Extract the first word of "$ac_prog", so it can be a program name with args.
34948set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034950$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034951if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034952 $as_echo_n "(cached) " >&6
34953else
34954 if test -n "$P7ZIP"; then
34955 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34956else
34957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34958for as_dir in $PATH
34959do
34960 IFS=$as_save_IFS
34961 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034964 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034966 break 2
34967 fi
34968done
cristy8b350f62009-11-15 23:12:43 +000034969 done
cristy3ed852e2009-09-05 21:47:34 +000034970IFS=$as_save_IFS
34971
34972fi
34973fi
34974P7ZIP=$ac_cv_prog_P7ZIP
34975if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034977$as_echo "$P7ZIP" >&6; }
34978else
cristy8b350f62009-11-15 23:12:43 +000034979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034980$as_echo "no" >&6; }
34981fi
34982
34983
34984 test -n "$P7ZIP" && break
34985done
34986
34987
cristy73bd4a52010-10-05 11:24:23 +000034988 if test "x$P7ZIP" != "x" ; then
34989 P7ZIP_DELEGATE_TRUE=
34990 P7ZIP_DELEGATE_FALSE='#'
34991else
34992 P7ZIP_DELEGATE_TRUE='#'
34993 P7ZIP_DELEGATE_FALSE=
34994fi
34995
cristy3ed852e2009-09-05 21:47:34 +000034996
34997#
34998# ZIP support (http://www.info-zip.org/Zip.html)
34999#
35000ZIP=''
35001for ac_prog in zip
35002do
35003 # Extract the first word of "$ac_prog", so it can be a program name with args.
35004set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035006$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035007if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035008 $as_echo_n "(cached) " >&6
35009else
35010 if test -n "$ZIP"; then
35011 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35012else
35013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35014for as_dir in $PATH
35015do
35016 IFS=$as_save_IFS
35017 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035018 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035020 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035022 break 2
35023 fi
35024done
cristy8b350f62009-11-15 23:12:43 +000035025 done
cristy3ed852e2009-09-05 21:47:34 +000035026IFS=$as_save_IFS
35027
35028fi
35029fi
35030ZIP=$ac_cv_prog_ZIP
35031if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035033$as_echo "$ZIP" >&6; }
35034else
cristy8b350f62009-11-15 23:12:43 +000035035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035036$as_echo "no" >&6; }
35037fi
35038
35039
35040 test -n "$ZIP" && break
35041done
35042
35043
cristy73bd4a52010-10-05 11:24:23 +000035044 if test "x$ZIP" != "x" ; then
35045 ZIP_DELEGATE_TRUE=
35046 ZIP_DELEGATE_FALSE='#'
35047else
35048 ZIP_DELEGATE_TRUE='#'
35049 ZIP_DELEGATE_FALSE=
35050fi
35051
cristy3ed852e2009-09-05 21:47:34 +000035052
35053#
35054# GhostPCL related configuration.
35055#
35056PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035057PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035058PCLMonoDevice=pbmraw
35059if test -z "$PCLVersion"; then
35060 PCLVersion='unknown'
35061fi
35062if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35064$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035066$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35068$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035069 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035071$as_echo_n "checking for pcl color device... " >&6; }
35072 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35073 :
35074 else
35075 PCLColorDevice=ppmraw
35076 fi
cristyad38abe2012-12-23 23:03:21 +000035077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35078$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035079
35080 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035082$as_echo_n "checking for pcl CMYK device... " >&6; }
35083 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35084 :
35085 else
35086 PCLCMYKDevice=$PCLColorDevice
35087 fi
cristyad38abe2012-12-23 23:03:21 +000035088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35089$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035090
35091 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035093$as_echo_n "checking for pcl mono device... " >&6; }
35094 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35095 :
35096 else
35097 PCLMonoDevice=$PCLColorDevice
35098 fi
cristyad38abe2012-12-23 23:03:21 +000035099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35100$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035101fi
35102
35103
35104
35105
35106
35107
35108#
35109# GhostXPS related configuration.
35110#
35111XPSColorDevice=ppmraw
35112XPSCMYKDevice=bmpsep8
35113XPSMonoDevice=pbmraw
35114if test -z "$XPSVersion"; then
35115 XPSVersion='unknown'
35116fi
35117if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35119$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035121$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35123$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035124 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035126$as_echo_n "checking for xps color device... " >&6; }
35127 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35128 :
35129 else
35130 XPSColorDevice=ppmraw
35131 fi
cristyad38abe2012-12-23 23:03:21 +000035132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35133$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035134
35135 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035137$as_echo_n "checking for xps CMYK device... " >&6; }
35138 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35139 :
35140 else
35141 XPSCMYKDevice=$XPSColorDevice
35142 fi
cristyad38abe2012-12-23 23:03:21 +000035143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35144$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035145
35146 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035148$as_echo_n "checking for xps mono device... " >&6; }
35149 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35150 :
35151 else
35152 XPSMonoDevice=$XPSColorDevice
35153 fi
cristyad38abe2012-12-23 23:03:21 +000035154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35155$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035156fi
35157
35158
35159
35160
35161
35162
35163#
35164# Ghostscript related configuration.
35165#
cristya97426c2011-02-04 01:41:27 +000035166GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035167GSColorDevice=pnmraw
35168GSCMYKDevice=pam
35169GSMonoDevice=pbmraw
35170GSPDFDevice=pdfwrite
35171GSPSDevice=pswrite
35172GSEPSDevice=epswrite
35173GSVersion='unknown'
35174if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35176$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035178$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35180$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035182$as_echo_n "checking for Ghostscript version... " >&6; }
35183 if GSVersion=`$PSDelegate --version`; then
35184 :
35185 else
35186 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35187 fi
cristyad38abe2012-12-23 23:03:21 +000035188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35189$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035190
35191 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035193$as_echo_n "checking for gs alpha device... " >&6; }
35194 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35195 :
35196 else
35197 GSAlphaDevice=pnmraw
35198 fi
cristyad38abe2012-12-23 23:03:21 +000035199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35200$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035201
35202 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035204$as_echo_n "checking for gs color device... " >&6; }
35205 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35206 :
35207 else
35208 GSColorDevice=pnmraw
35209 fi
cristyad38abe2012-12-23 23:03:21 +000035210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35211$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035212
35213 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035215$as_echo_n "checking for gs CMYK device... " >&6; }
35216 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35217 :
35218 else
35219 GSCMYKDevice=bmpsep8
35220 fi
cristyad38abe2012-12-23 23:03:21 +000035221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35222$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035223
35224 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035226$as_echo_n "checking for gs mono device... " >&6; }
35227 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35228 :
35229 else
35230 GSMonoDevice=$GSColorDevice
35231 fi
cristyad38abe2012-12-23 23:03:21 +000035232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35233$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035234
35235 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035237$as_echo_n "checking for gs PDF writing device... " >&6; }
35238 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35239 :
35240 else
35241 GSPDFDevice=nodevice
35242 fi
cristyad38abe2012-12-23 23:03:21 +000035243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35244$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035245
35246 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035248$as_echo_n "checking for gs PS writing device... " >&6; }
35249 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35250 :
35251 else
35252 GSPSDevice=nodevice
35253 fi
cristyad38abe2012-12-23 23:03:21 +000035254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35255$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035256
35257 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035259$as_echo_n "checking for gs EPS writing device... " >&6; }
35260 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35261 :
35262 else
35263 GSEPSDevice=nodevice
35264 fi
cristyad38abe2012-12-23 23:03:21 +000035265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35266$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035267fi
35268
35269
35270
35271
35272
35273
35274
35275
35276
35277
35278#
35279# PerlMagick-related configuration
35280#
35281
35282# Look for PERL if PerlMagick requested
35283# If name/path of desired PERL interpreter is specified, look for that one first
35284have_perl='no'
35285if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35287$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035289$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35291$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035292 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035294$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035295if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035296 $as_echo_n "(cached) " >&6
35297else
35298 ac_cv_path_PERL="$with_perl"
35299fi
cristy8b350f62009-11-15 23:12:43 +000035300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035301$as_echo "$ac_cv_path_PERL" >&6; };
35302 PERL=$ac_cv_path_PERL
35303 have_perl="$ac_cv_path_PERL"
35304 else
35305 for ac_prog in perl perl5
35306do
35307 # Extract the first word of "$ac_prog", so it can be a program name with args.
35308set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035310$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035311if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035312 $as_echo_n "(cached) " >&6
35313else
35314 case $PERL in
35315 [\\/]* | ?:[\\/]*)
35316 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35317 ;;
35318 *)
35319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35320for as_dir in $PATH
35321do
35322 IFS=$as_save_IFS
35323 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035324 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035326 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035328 break 2
35329 fi
35330done
cristy8b350f62009-11-15 23:12:43 +000035331 done
cristy3ed852e2009-09-05 21:47:34 +000035332IFS=$as_save_IFS
35333
35334 ;;
35335esac
35336fi
35337PERL=$ac_cv_path_PERL
35338if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035340$as_echo "$PERL" >&6; }
35341else
cristy8b350f62009-11-15 23:12:43 +000035342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035343$as_echo "no" >&6; }
35344fi
35345
35346
35347 test -n "$PERL" && break
35348done
35349 if test "$ac_cv_path_PERL"; then
35350 have_perl="$ac_cv_path_PERL"
35351 fi
35352 fi
35353fi
35354
cristy949301e2010-01-06 01:38:40 +000035355if test "$with_perl" != 'yes' ; then
35356 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35357fi
35358
35359PERL_SUPPORTS_DESTDIR='no'
35360
cristy3ed852e2009-09-05 21:47:34 +000035361with_perl_static='no'
35362with_perl_dynamic='no'
35363if test "$have_perl" != 'no'; then
35364 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35365 with_perl_static='yes'
35366 fi
35367 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35368 with_perl_dynamic='yes'
35369 fi
35370 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035371
35372
35373
35374
35375 if test -n "$PERL"; then :
35376
35377 ax_perl_version="5.8.1"
35378
35379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35380$as_echo_n "checking for perl version... " >&6; }
35381
35382 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35383
35384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35385$as_echo "$perl_version" >&6; }
35386
35387 PERL_VERSION=$perl_version
35388
35389
35390
35391
35392
35393 # Used to indicate true or false condition
35394 ax_compare_version=false
35395
35396 # Convert the two version strings to be compared into a format that
35397 # allows a simple string comparison. The end result is that a version
35398 # string of the form 1.12.5-r617 will be converted to the form
35399 # 0001001200050617. In other words, each number is zero padded to four
35400 # digits, and non digits are removed.
35401
35402 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35403 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35404 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35405 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35406 -e 's/[^0-9]//g'`
35407
35408
35409 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35410 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35411 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35412 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35413 -e 's/[^0-9]//g'`
35414
35415
35416 ax_compare_version=`echo "x$ax_compare_version_A
35417x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35418
35419
35420
35421 if test "$ax_compare_version" = "true" ; then
35422
35423 :
35424 PERL_SUPPORTS_DESTDIR='yes'
35425
35426 else
35427 :
35428 PERL_SUPPORTS_DESTDIR='no'
35429
35430 fi
35431
35432
35433else
35434
35435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35436$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35437 PERL_SUPPORTS_DESTDIR='no'
35438
cristy3ed852e2009-09-05 21:47:34 +000035439fi
cristy73bd4a52010-10-05 11:24:23 +000035440
35441fi
35442 if test "$have_perl" != 'no'; then
35443 WITH_PERL_TRUE=
35444 WITH_PERL_FALSE='#'
35445else
35446 WITH_PERL_TRUE='#'
35447 WITH_PERL_FALSE=
35448fi
35449
35450 if test $with_perl_static = 'yes'; then
35451 WITH_PERL_STATIC_TRUE=
35452 WITH_PERL_STATIC_FALSE='#'
35453else
35454 WITH_PERL_STATIC_TRUE='#'
35455 WITH_PERL_STATIC_FALSE=
35456fi
35457
35458 if test $with_perl_dynamic = 'yes'; then
35459 WITH_PERL_DYNAMIC_TRUE=
35460 WITH_PERL_DYNAMIC_FALSE='#'
35461else
35462 WITH_PERL_DYNAMIC_TRUE='#'
35463 WITH_PERL_DYNAMIC_FALSE=
35464fi
35465
cristy3ed852e2009-09-05 21:47:34 +000035466
35467
35468# Determine path to pick up MagickCore library from for use with building PerlMagick
35469MAGICKCORE_PATH="${LIB_DIR}"
35470if test $with_perl_static = 'yes'; then
35471 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35472 libtool_objdir=$objdir
35473
35474 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035475 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035476fi
35477
35478
cristy2a3eb392012-12-17 13:39:20 +000035479# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035480MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035481if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035482 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035483fi
cristy2a3eb392012-12-17 13:39:20 +000035484if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035485 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035486fi
35487if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035488 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035489fi
35490if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035491 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035492fi
35493if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035494 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035495fi
35496if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035497 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035498fi
35499if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035500 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000035501fi
35502if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035503 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035504fi
35505if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035506 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035507fi
35508if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035509 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035510fi
35511if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035512 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035513fi
35514if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035515 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035516fi
35517if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035518 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035519fi
35520if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035521 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035522fi
35523if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035524 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035525fi
35526if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035527 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035528fi
35529if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035530 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035531fi
35532if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035533 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035534fi
35535if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035536 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035537fi
35538if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035539 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035540fi
35541if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035542 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035543fi
35544have_ps='no'
35545if test "$have_dps" = 'yes' || \
35546 test "$have_gs" = 'yes' || \
35547 test "${native_win32_build}" = 'yes' ; then
35548 have_ps='yes'
35549fi
35550if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035551 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035552fi
35553if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035554 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000035555fi
35556if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035557 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035558fi
35559if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035560 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035561fi
35562if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035563 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035564fi
35565if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035566 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035567fi
35568if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035569 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035570fi
35571if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035572 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035573fi
35574if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035575 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035576fi
35577if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035578 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035579fi
cristy2a3eb392012-12-17 13:39:20 +000035580# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035581MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035582MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035583
35584
cristyfa161182012-12-19 15:45:28 +000035585
cristy3ed852e2009-09-05 21:47:34 +000035586#
35587# Handle special compiler flags
35588#
35589
35590# Add '-p' if prof source profiling support enabled
35591if test "$enable_prof" = 'yes'; then
35592 CFLAGS="-p $CFLAGS"
35593 CXXFLAGS="-p $CXXFLAGS"
35594 LDFLAGS="-p $LDFLAGS"
35595fi
35596
35597# Add '-pg' if gprof source profiling support enabled
35598if test "$enable_gprof" = 'yes'; then
35599 CFLAGS="-pg $CFLAGS"
35600 CXXFLAGS="-pg $CXXFLAGS"
35601 LDFLAGS="-pg $LDFLAGS"
35602fi
35603
35604# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35605# This is a gcc-specific feature
35606if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035608$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035609if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035610 $as_echo_n "(cached) " >&6
35611else
35612 ac_check_lib_save_LIBS=$LIBS
35613LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035615/* end confdefs.h. */
35616
35617/* Override any GCC internal prototype to avoid an error.
35618 Use char because int might match the return type of a GCC
35619 builtin and then its argument prototype would still apply. */
35620#ifdef __cplusplus
35621extern "C"
35622#endif
35623char _gcov_init ();
35624int
35625main ()
35626{
35627return _gcov_init ();
35628 ;
35629 return 0;
35630}
35631_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035632if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035633 ac_cv_lib_gcov__gcov_init=yes
35634else
cristy8b350f62009-11-15 23:12:43 +000035635 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035636fi
cristy8b350f62009-11-15 23:12:43 +000035637rm -f core conftest.err conftest.$ac_objext \
35638 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035639LIBS=$ac_check_lib_save_LIBS
35640fi
cristy8b350f62009-11-15 23:12:43 +000035641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035642$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035643if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035644 cat >>confdefs.h <<_ACEOF
35645#define HAVE_LIBGCOV 1
35646_ACEOF
35647
35648 LIBS="-lgcov $LIBS"
35649
35650fi
35651
cristy8b350f62009-11-15 23:12:43 +000035652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035653$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035654if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035655 $as_echo_n "(cached) " >&6
35656else
35657 ac_check_lib_save_LIBS=$LIBS
35658LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035660/* end confdefs.h. */
35661
35662/* Override any GCC internal prototype to avoid an error.
35663 Use char because int might match the return type of a GCC
35664 builtin and then its argument prototype would still apply. */
35665#ifdef __cplusplus
35666extern "C"
35667#endif
35668char __gcov_init ();
35669int
35670main ()
35671{
35672return __gcov_init ();
35673 ;
35674 return 0;
35675}
35676_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035677if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035678 ac_cv_lib_gcov___gcov_init=yes
35679else
cristy8b350f62009-11-15 23:12:43 +000035680 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035681fi
cristy8b350f62009-11-15 23:12:43 +000035682rm -f core conftest.err conftest.$ac_objext \
35683 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035684LIBS=$ac_check_lib_save_LIBS
35685fi
cristy8b350f62009-11-15 23:12:43 +000035686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035687$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035688if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035689 cat >>confdefs.h <<_ACEOF
35690#define HAVE_LIBGCOV 1
35691_ACEOF
35692
35693 LIBS="-lgcov $LIBS"
35694
35695fi
35696
35697 case "$target_os" in
35698 darwin*)
35699 OSX_GCOV_LDFLAG="-Wl,-single_module"
35700 ;;
35701 *)
35702 OSX_GCOV_LDFLAG=""
35703 ;;
35704 esac
35705
35706 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35707 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35708 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35709fi
35710
35711#
35712# Build library dependency list for libMagickCore
35713#
35714
cristyc6722092012-10-14 00:19:31 +000035715if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035716 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 +000035717else
cristy3a75f062012-09-08 23:29:40 +000035718 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 +000035719fi
35720
35721
35722#
35723# Remove extraneous spaces from output variables (asthetic)
35724#
35725X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35726X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35727X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35728X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35729
35730CC=`echo $CC | sed -e 's/ */ /g'`
35731CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35732CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35733CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035734DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35735LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35736TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35737MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35738#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35739
35740# Pass only user-provided LIBS as "global" libraries
35741LIBS=$USER_LIBS
35742
35743#AC_SUBST(CPPFLAGS)
35744
35745#AC_SUBST(LDFLAGS)
35746#AC_SUBST(X_PRE_LIBS)
35747#AC_SUBST(X_LIBS)
35748#AC_SUBST(X_EXTRA_LIBS)
35749
35750MAGICK_CFLAGS=$CFLAGS
35751MAGICK_CXXFLAGS="$CXXFLAGS"
35752MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35753MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35754MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035755MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035756
35757
35758
35759
35760
35761
35762
35763
35764# Set configured scripts to executable.
35765ac_config_commands="$ac_config_commands default"
35766
cristy2bd4b6e2012-07-22 15:29:11 +000035767ac_config_commands="$ac_config_commands magick.sh.in"
35768
cristy3ed852e2009-09-05 21:47:34 +000035769ac_config_commands="$ac_config_commands MagickCore-config.in"
35770
cristy3ed852e2009-09-05 21:47:34 +000035771ac_config_commands="$ac_config_commands MagickWand-config.in"
35772
cristy3ed852e2009-09-05 21:47:34 +000035773ac_config_commands="$ac_config_commands Magick++-config.in"
35774
35775ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35776
35777
cristyad38abe2012-12-23 23:03:21 +000035778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35779$as_echo "-------------------------------------------------------------" >&6; }
35780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35781$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035782cat >confcache <<\_ACEOF
35783# This file is a shell script that caches the results of configure
35784# tests run on this system so they can be shared between configure
35785# scripts and configure runs, see configure's option --config-cache.
35786# It is not useful on other systems. If it contains results you don't
35787# want to keep, you may remove or edit it.
35788#
35789# config.status only pays attention to the cache file if you give it
35790# the --recheck option to rerun configure.
35791#
35792# `ac_cv_env_foo' variables (set or unset) will be overridden when
35793# loading this file, other *unset* `ac_cv_foo' will be assigned the
35794# following values.
35795
35796_ACEOF
35797
35798# The following way of writing the cache mishandles newlines in values,
35799# but we know of no workaround that is simple, portable, and efficient.
35800# So, we kill variables containing newlines.
35801# Ultrix sh set writes to stderr and can't be redirected directly,
35802# and sets the high bit in the cache file unless we assign to the vars.
35803(
35804 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35805 eval ac_val=\$$ac_var
35806 case $ac_val in #(
35807 *${as_nl}*)
35808 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035809 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035810$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35811 esac
35812 case $ac_var in #(
35813 _ | IFS | as_nl) ;; #(
35814 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035815 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035816 esac ;;
35817 esac
35818 done
35819
35820 (set) 2>&1 |
35821 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35822 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035823 # `set' does not quote correctly, so add quotes: double-quote
35824 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035825 sed -n \
35826 "s/'/'\\\\''/g;
35827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35828 ;; #(
35829 *)
35830 # `set' quotes correctly as required by POSIX, so do not add quotes.
35831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35832 ;;
35833 esac |
35834 sort
35835) |
35836 sed '
35837 /^ac_cv_env_/b end
35838 t clear
35839 :clear
35840 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35841 t end
35842 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35843 :end' >>confcache
35844if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35845 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035846 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035847 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035848$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035849 if test ! -f "$cache_file" || test -h "$cache_file"; then
35850 cat confcache >"$cache_file"
35851 else
35852 case $cache_file in #(
35853 */* | ?:*)
35854 mv -f confcache "$cache_file"$$ &&
35855 mv -f "$cache_file"$$ "$cache_file" ;; #(
35856 *)
35857 mv -f confcache "$cache_file" ;;
35858 esac
35859 fi
35860 fi
cristy3ed852e2009-09-05 21:47:34 +000035861 else
cristy8b350f62009-11-15 23:12:43 +000035862 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035863$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35864 fi
35865fi
35866rm -f confcache
35867
35868test "x$prefix" = xNONE && prefix=$ac_default_prefix
35869# Let make expand exec_prefix.
35870test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35871
35872DEFS=-DHAVE_CONFIG_H
35873
35874ac_libobjs=
35875ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035876U=
cristy3ed852e2009-09-05 21:47:34 +000035877for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35878 # 1. Remove the extension, and $U if already installed.
35879 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35880 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35881 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35882 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035883 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35884 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035885done
35886LIBOBJS=$ac_libobjs
35887
35888LTLIBOBJS=$ac_ltlibobjs
35889
35890
cristyc0890a62012-07-19 00:18:20 +000035891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35892$as_echo_n "checking that generated files are newer than configure... " >&6; }
35893 if test -n "$am_sleep_pid"; then
35894 # Hide warnings about reused PIDs.
35895 wait $am_sleep_pid 2>/dev/null
35896 fi
35897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35898$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035899 if test -n "$EXEEXT"; then
35900 am__EXEEXT_TRUE=
35901 am__EXEEXT_FALSE='#'
35902else
35903 am__EXEEXT_TRUE='#'
35904 am__EXEEXT_FALSE=
35905fi
cristy3ed852e2009-09-05 21:47:34 +000035906
cristy73bd4a52010-10-05 11:24:23 +000035907if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035908 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035909Usually this means the macro was only invoked conditionally." "$LINENO" 5
35910fi
35911if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035912 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035913Usually this means the macro was only invoked conditionally." "$LINENO" 5
35914fi
35915if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035916 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035917Usually this means the macro was only invoked conditionally." "$LINENO" 5
35918fi
35919if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035920 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035921Usually this means the macro was only invoked conditionally." "$LINENO" 5
35922fi
cristy9b86f202012-11-28 21:55:35 +000035923if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35924 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35925Usually this means the macro was only invoked conditionally." "$LINENO" 5
35926fi
cristy73bd4a52010-10-05 11:24:23 +000035927if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035928 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035929Usually this means the macro was only invoked conditionally." "$LINENO" 5
35930fi
35931if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035932 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035933Usually this means the macro was only invoked conditionally." "$LINENO" 5
35934fi
35935if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035936 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035937Usually this means the macro was only invoked conditionally." "$LINENO" 5
35938fi
35939if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035940 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035941Usually this means the macro was only invoked conditionally." "$LINENO" 5
35942fi
cristy73bd4a52010-10-05 11:24:23 +000035943if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035944 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035945Usually this means the macro was only invoked conditionally." "$LINENO" 5
35946fi
35947if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035948 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035949Usually this means the macro was only invoked conditionally." "$LINENO" 5
35950fi
cristy73bd4a52010-10-05 11:24:23 +000035951if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035952 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035953Usually this means the macro was only invoked conditionally." "$LINENO" 5
35954fi
cristy71d8c202012-03-20 17:05:01 +000035955if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35956 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35957Usually this means the macro was only invoked conditionally." "$LINENO" 5
35958fi
cristy73bd4a52010-10-05 11:24:23 +000035959
35960if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035961 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035962Usually this means the macro was only invoked conditionally." "$LINENO" 5
35963fi
35964if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035965 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035966Usually this means the macro was only invoked conditionally." "$LINENO" 5
35967fi
35968if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035969 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035970Usually this means the macro was only invoked conditionally." "$LINENO" 5
35971fi
35972if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035973 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035974Usually this means the macro was only invoked conditionally." "$LINENO" 5
35975fi
35976if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035977 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035978Usually this means the macro was only invoked conditionally." "$LINENO" 5
35979fi
35980if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035981 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035982Usually this means the macro was only invoked conditionally." "$LINENO" 5
35983fi
cristy5eef09f2012-10-16 12:08:28 +000035984if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35985 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35986Usually this means the macro was only invoked conditionally." "$LINENO" 5
35987fi
cristy73bd4a52010-10-05 11:24:23 +000035988if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035989 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035990Usually this means the macro was only invoked conditionally." "$LINENO" 5
35991fi
35992if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035993 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035994Usually this means the macro was only invoked conditionally." "$LINENO" 5
35995fi
35996if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035997 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035998Usually this means the macro was only invoked conditionally." "$LINENO" 5
35999fi
36000if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036001 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036002Usually this means the macro was only invoked conditionally." "$LINENO" 5
36003fi
36004if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036005 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036006Usually this means the macro was only invoked conditionally." "$LINENO" 5
36007fi
36008if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036009 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036010Usually this means the macro was only invoked conditionally." "$LINENO" 5
36011fi
36012if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036013 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036014Usually this means the macro was only invoked conditionally." "$LINENO" 5
36015fi
36016if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036017 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036018Usually this means the macro was only invoked conditionally." "$LINENO" 5
36019fi
36020if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036021 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036022Usually this means the macro was only invoked conditionally." "$LINENO" 5
36023fi
36024if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036025 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036026Usually this means the macro was only invoked conditionally." "$LINENO" 5
36027fi
36028if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036029 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036030Usually this means the macro was only invoked conditionally." "$LINENO" 5
36031fi
36032if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036033 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036034Usually this means the macro was only invoked conditionally." "$LINENO" 5
36035fi
36036if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036037 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036038Usually this means the macro was only invoked conditionally." "$LINENO" 5
36039fi
36040if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036041 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036042Usually this means the macro was only invoked conditionally." "$LINENO" 5
36043fi
cristyfbb0ef02010-12-19 02:32:11 +000036044if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36045 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36046Usually this means the macro was only invoked conditionally." "$LINENO" 5
36047fi
cristy73bd4a52010-10-05 11:24:23 +000036048if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036049 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036050Usually this means the macro was only invoked conditionally." "$LINENO" 5
36051fi
cristy41cbe8a2011-10-27 01:35:18 +000036052if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36053 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36054Usually this means the macro was only invoked conditionally." "$LINENO" 5
36055fi
cristya054b762012-03-26 23:16:00 +000036056if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36057 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036058Usually this means the macro was only invoked conditionally." "$LINENO" 5
36059fi
cristy73bd4a52010-10-05 11:24:23 +000036060if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036061 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036062Usually this means the macro was only invoked conditionally." "$LINENO" 5
36063fi
36064if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036065 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036066Usually this means the macro was only invoked conditionally." "$LINENO" 5
36067fi
36068if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036069 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036070Usually this means the macro was only invoked conditionally." "$LINENO" 5
36071fi
36072if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036073 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036074Usually this means the macro was only invoked conditionally." "$LINENO" 5
36075fi
cristyb1860752011-03-14 00:27:46 +000036076if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36077 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36078Usually this means the macro was only invoked conditionally." "$LINENO" 5
36079fi
cristy73bd4a52010-10-05 11:24:23 +000036080if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036081 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036082Usually this means the macro was only invoked conditionally." "$LINENO" 5
36083fi
36084if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036085 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036086Usually this means the macro was only invoked conditionally." "$LINENO" 5
36087fi
36088if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036089 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036090Usually this means the macro was only invoked conditionally." "$LINENO" 5
36091fi
36092if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036093 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036094Usually this means the macro was only invoked conditionally." "$LINENO" 5
36095fi
36096if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036097 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036098Usually this means the macro was only invoked conditionally." "$LINENO" 5
36099fi
36100if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036101 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036102Usually this means the macro was only invoked conditionally." "$LINENO" 5
36103fi
36104if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036105 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036106Usually this means the macro was only invoked conditionally." "$LINENO" 5
36107fi
36108if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036109 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036110Usually this means the macro was only invoked conditionally." "$LINENO" 5
36111fi
cristy3ed852e2009-09-05 21:47:34 +000036112
cristyda16f162011-02-19 23:52:17 +000036113: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036114ac_write_fail=0
36115ac_clean_files_save=$ac_clean_files
36116ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036117{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036118$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036119as_write_fail=0
36120cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036121#! $SHELL
36122# Generated by $as_me.
36123# Run this file to recreate the current configuration.
36124# Compiler output produced by configure, useful for debugging
36125# configure, is in config.log if it exists.
36126
36127debug=false
36128ac_cs_recheck=false
36129ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036130
cristy8b350f62009-11-15 23:12:43 +000036131SHELL=\${CONFIG_SHELL-$SHELL}
36132export SHELL
36133_ASEOF
36134cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36135## -------------------- ##
36136## M4sh Initialization. ##
36137## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036138
36139# Be more Bourne compatible
36140DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036141if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036142 emulate sh
36143 NULLCMD=:
36144 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36145 # is contrary to our usage. Disable this feature.
36146 alias -g '${1+"$@"}'='"$@"'
36147 setopt NO_GLOB_SUBST
36148else
cristy8b350f62009-11-15 23:12:43 +000036149 case `(set -o) 2>/dev/null` in #(
36150 *posix*) :
36151 set -o posix ;; #(
36152 *) :
36153 ;;
cristy3ed852e2009-09-05 21:47:34 +000036154esac
cristy3ed852e2009-09-05 21:47:34 +000036155fi
36156
36157
cristy3ed852e2009-09-05 21:47:34 +000036158as_nl='
36159'
36160export as_nl
36161# Printing a long string crashes Solaris 7 /usr/bin/printf.
36162as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36163as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36164as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036165# Prefer a ksh shell builtin over an external printf program on Solaris,
36166# but without wasting forks for bash or zsh.
36167if test -z "$BASH_VERSION$ZSH_VERSION" \
36168 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36169 as_echo='print -r --'
36170 as_echo_n='print -rn --'
36171elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036172 as_echo='printf %s\n'
36173 as_echo_n='printf %s'
36174else
36175 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36176 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36177 as_echo_n='/usr/ucb/echo -n'
36178 else
36179 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36180 as_echo_n_body='eval
36181 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036182 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036183 *"$as_nl"*)
36184 expr "X$arg" : "X\\(.*\\)$as_nl";
36185 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36186 esac;
36187 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36188 '
36189 export as_echo_n_body
36190 as_echo_n='sh -c $as_echo_n_body as_echo'
36191 fi
36192 export as_echo_body
36193 as_echo='sh -c $as_echo_body as_echo'
36194fi
36195
36196# The user is always right.
36197if test "${PATH_SEPARATOR+set}" != set; then
36198 PATH_SEPARATOR=:
36199 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36200 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36201 PATH_SEPARATOR=';'
36202 }
36203fi
36204
cristy3ed852e2009-09-05 21:47:34 +000036205
36206# IFS
36207# We need space, tab and new line, in precisely that order. Quoting is
36208# there to prevent editors from complaining about space-tab.
36209# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36210# splitting by setting IFS to empty value.)
36211IFS=" "" $as_nl"
36212
36213# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036214as_myself=
cristy8b350f62009-11-15 23:12:43 +000036215case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036216 *[\\/]* ) as_myself=$0 ;;
36217 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36218for as_dir in $PATH
36219do
36220 IFS=$as_save_IFS
36221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036222 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36223 done
cristy3ed852e2009-09-05 21:47:34 +000036224IFS=$as_save_IFS
36225
36226 ;;
36227esac
36228# We did not find ourselves, most probably we were run as `sh COMMAND'
36229# in which case we are not to be found in the path.
36230if test "x$as_myself" = x; then
36231 as_myself=$0
36232fi
36233if test ! -f "$as_myself"; then
36234 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036235 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036236fi
36237
cristy8b350f62009-11-15 23:12:43 +000036238# Unset variables that we do not need and which cause bugs (e.g. in
36239# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36240# suppresses any "Segmentation fault" message there. '((' could
36241# trigger a bug in pdksh 5.2.14.
36242for as_var in BASH_ENV ENV MAIL MAILPATH
36243do eval test x\${$as_var+set} = xset \
36244 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036245done
36246PS1='$ '
36247PS2='> '
36248PS4='+ '
36249
36250# NLS nuisances.
36251LC_ALL=C
36252export LC_ALL
36253LANGUAGE=C
36254export LANGUAGE
36255
cristy8b350f62009-11-15 23:12:43 +000036256# CDPATH.
36257(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36258
36259
cristy98dddb52010-11-04 00:30:15 +000036260# as_fn_error STATUS ERROR [LINENO LOG_FD]
36261# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036262# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36263# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036264# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036265as_fn_error ()
36266{
cristy98dddb52010-11-04 00:30:15 +000036267 as_status=$1; test $as_status -eq 0 && as_status=1
36268 if test "$4"; then
36269 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36270 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036271 fi
cristy98dddb52010-11-04 00:30:15 +000036272 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036273 as_fn_exit $as_status
36274} # as_fn_error
36275
36276
36277# as_fn_set_status STATUS
36278# -----------------------
36279# Set $? to STATUS, without forking.
36280as_fn_set_status ()
36281{
36282 return $1
36283} # as_fn_set_status
36284
36285# as_fn_exit STATUS
36286# -----------------
36287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36288as_fn_exit ()
36289{
36290 set +e
36291 as_fn_set_status $1
36292 exit $1
36293} # as_fn_exit
36294
36295# as_fn_unset VAR
36296# ---------------
36297# Portably unset VAR.
36298as_fn_unset ()
36299{
36300 { eval $1=; unset $1;}
36301}
36302as_unset=as_fn_unset
36303# as_fn_append VAR VALUE
36304# ----------------------
36305# Append the text in VALUE to the end of the definition contained in VAR. Take
36306# advantage of any shell optimizations that allow amortized linear growth over
36307# repeated appends, instead of the typical quadratic growth present in naive
36308# implementations.
36309if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36310 eval 'as_fn_append ()
36311 {
36312 eval $1+=\$2
36313 }'
36314else
36315 as_fn_append ()
36316 {
36317 eval $1=\$$1\$2
36318 }
36319fi # as_fn_append
36320
36321# as_fn_arith ARG...
36322# ------------------
36323# Perform arithmetic evaluation on the ARGs, and store the result in the
36324# global $as_val. Take advantage of shells that can avoid forks. The arguments
36325# must be portable across $(()) and expr.
36326if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36327 eval 'as_fn_arith ()
36328 {
36329 as_val=$(( $* ))
36330 }'
36331else
36332 as_fn_arith ()
36333 {
36334 as_val=`expr "$@" || test $? -eq 1`
36335 }
36336fi # as_fn_arith
36337
36338
cristy3ed852e2009-09-05 21:47:34 +000036339if expr a : '\(a\)' >/dev/null 2>&1 &&
36340 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36341 as_expr=expr
36342else
36343 as_expr=false
36344fi
36345
36346if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36347 as_basename=basename
36348else
36349 as_basename=false
36350fi
36351
cristy8b350f62009-11-15 23:12:43 +000036352if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36353 as_dirname=dirname
36354else
36355 as_dirname=false
36356fi
cristy3ed852e2009-09-05 21:47:34 +000036357
cristy3ed852e2009-09-05 21:47:34 +000036358as_me=`$as_basename -- "$0" ||
36359$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36360 X"$0" : 'X\(//\)$' \| \
36361 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36362$as_echo X/"$0" |
36363 sed '/^.*\/\([^/][^/]*\)\/*$/{
36364 s//\1/
36365 q
36366 }
36367 /^X\/\(\/\/\)$/{
36368 s//\1/
36369 q
36370 }
36371 /^X\/\(\/\).*/{
36372 s//\1/
36373 q
36374 }
36375 s/.*/./; q'`
36376
cristy8b350f62009-11-15 23:12:43 +000036377# Avoid depending upon Character Ranges.
36378as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36379as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36380as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36381as_cr_digits='0123456789'
36382as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036383
36384ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036385case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036386-n*)
cristy8b350f62009-11-15 23:12:43 +000036387 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036388 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036389 xy) ECHO_C='\c';;
36390 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36391 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036392 esac;;
36393*)
36394 ECHO_N='-n';;
36395esac
cristy3ed852e2009-09-05 21:47:34 +000036396
36397rm -f conf$$ conf$$.exe conf$$.file
36398if test -d conf$$.dir; then
36399 rm -f conf$$.dir/conf$$.file
36400else
36401 rm -f conf$$.dir
36402 mkdir conf$$.dir 2>/dev/null
36403fi
36404if (echo >conf$$.file) 2>/dev/null; then
36405 if ln -s conf$$.file conf$$ 2>/dev/null; then
36406 as_ln_s='ln -s'
36407 # ... but there are two gotchas:
36408 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36409 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036410 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036411 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036412 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036413 elif ln conf$$.file conf$$ 2>/dev/null; then
36414 as_ln_s=ln
36415 else
cristy14fefe52012-05-21 00:59:18 +000036416 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036417 fi
36418else
cristy14fefe52012-05-21 00:59:18 +000036419 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036420fi
36421rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36422rmdir conf$$.dir 2>/dev/null
36423
cristy8b350f62009-11-15 23:12:43 +000036424
36425# as_fn_mkdir_p
36426# -------------
36427# Create "$as_dir" as a directory, including parents if necessary.
36428as_fn_mkdir_p ()
36429{
36430
36431 case $as_dir in #(
36432 -*) as_dir=./$as_dir;;
36433 esac
36434 test -d "$as_dir" || eval $as_mkdir_p || {
36435 as_dirs=
36436 while :; do
36437 case $as_dir in #(
36438 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36439 *) as_qdir=$as_dir;;
36440 esac
36441 as_dirs="'$as_qdir' $as_dirs"
36442 as_dir=`$as_dirname -- "$as_dir" ||
36443$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36444 X"$as_dir" : 'X\(//\)[^/]' \| \
36445 X"$as_dir" : 'X\(//\)$' \| \
36446 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36447$as_echo X"$as_dir" |
36448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36449 s//\1/
36450 q
36451 }
36452 /^X\(\/\/\)[^/].*/{
36453 s//\1/
36454 q
36455 }
36456 /^X\(\/\/\)$/{
36457 s//\1/
36458 q
36459 }
36460 /^X\(\/\).*/{
36461 s//\1/
36462 q
36463 }
36464 s/.*/./; q'`
36465 test -d "$as_dir" && break
36466 done
36467 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036468 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036469
36470
36471} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036472if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036473 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036474else
36475 test -d ./-p && rmdir ./-p
36476 as_mkdir_p=false
36477fi
36478
cristy14fefe52012-05-21 00:59:18 +000036479
36480# as_fn_executable_p FILE
36481# -----------------------
36482# Test if FILE is an executable regular file.
36483as_fn_executable_p ()
36484{
36485 test -f "$1" && test -x "$1"
36486} # as_fn_executable_p
36487as_test_x='test -x'
36488as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036489
36490# Sed expression to map a string onto a valid CPP name.
36491as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36492
36493# Sed expression to map a string onto a valid variable name.
36494as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36495
36496
36497exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036498## ----------------------------------- ##
36499## Main body of $CONFIG_STATUS script. ##
36500## ----------------------------------- ##
36501_ASEOF
36502test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036503
cristy8b350f62009-11-15 23:12:43 +000036504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36505# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036506# report actual input values of CONFIG_FILES etc. instead of their
36507# values after options handling.
36508ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036509This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036510generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036511
36512 CONFIG_FILES = $CONFIG_FILES
36513 CONFIG_HEADERS = $CONFIG_HEADERS
36514 CONFIG_LINKS = $CONFIG_LINKS
36515 CONFIG_COMMANDS = $CONFIG_COMMANDS
36516 $ $0 $@
36517
36518on `(hostname || uname -n) 2>/dev/null | sed 1q`
36519"
36520
36521_ACEOF
36522
36523case $ac_config_files in *"
36524"*) set x $ac_config_files; shift; ac_config_files=$*;;
36525esac
36526
36527case $ac_config_headers in *"
36528"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36529esac
36530
36531
36532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36533# Files that config.status was made for.
36534config_files="$ac_config_files"
36535config_headers="$ac_config_headers"
36536config_commands="$ac_config_commands"
36537
36538_ACEOF
36539
36540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36541ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036542\`$as_me' instantiates files and other configuration actions
36543from templates according to the current configuration. Unless the files
36544and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036545
cristy8b350f62009-11-15 23:12:43 +000036546Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036547
36548 -h, --help print this help, then exit
36549 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036550 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036551 -q, --quiet, --silent
36552 do not print progress messages
36553 -d, --debug don't remove temporary files
36554 --recheck update $as_me by reconfiguring in the same conditions
36555 --file=FILE[:TEMPLATE]
36556 instantiate the configuration file FILE
36557 --header=FILE[:TEMPLATE]
36558 instantiate the configuration header FILE
36559
36560Configuration files:
36561$config_files
36562
36563Configuration headers:
36564$config_headers
36565
36566Configuration commands:
36567$config_commands
36568
cristy8b350f62009-11-15 23:12:43 +000036569Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036570
36571_ACEOF
36572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036573ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036574ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036575ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036576configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036577 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036578
cristy14fefe52012-05-21 00:59:18 +000036579Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036580This config.status script is free software; the Free Software Foundation
36581gives unlimited permission to copy, distribute and modify it."
36582
36583ac_pwd='$ac_pwd'
36584srcdir='$srcdir'
36585INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036586MKDIR_P='$MKDIR_P'
36587AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036588test -n "\$AWK" || AWK=awk
36589_ACEOF
36590
36591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36592# The default lists apply if the user does not specify any file.
36593ac_need_defaults=:
36594while test $# != 0
36595do
36596 case $1 in
cristyda16f162011-02-19 23:52:17 +000036597 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036598 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36599 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36600 ac_shift=:
36601 ;;
cristyda16f162011-02-19 23:52:17 +000036602 --*=)
36603 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36604 ac_optarg=
36605 ac_shift=:
36606 ;;
cristy3ed852e2009-09-05 21:47:34 +000036607 *)
36608 ac_option=$1
36609 ac_optarg=$2
36610 ac_shift=shift
36611 ;;
36612 esac
36613
36614 case $ac_option in
36615 # Handling of the options.
36616 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36617 ac_cs_recheck=: ;;
36618 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36619 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036620 --config | --confi | --conf | --con | --co | --c )
36621 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036622 --debug | --debu | --deb | --de | --d | -d )
36623 debug=: ;;
36624 --file | --fil | --fi | --f )
36625 $ac_shift
36626 case $ac_optarg in
36627 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036628 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036629 esac
cristy8b350f62009-11-15 23:12:43 +000036630 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036631 ac_need_defaults=false;;
36632 --header | --heade | --head | --hea )
36633 $ac_shift
36634 case $ac_optarg in
36635 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36636 esac
cristy8b350f62009-11-15 23:12:43 +000036637 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036638 ac_need_defaults=false;;
36639 --he | --h)
36640 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036641 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036642Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036643 --help | --hel | -h )
36644 $as_echo "$ac_cs_usage"; exit ;;
36645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36646 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36647 ac_cs_silent=: ;;
36648
36649 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036650 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036651Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036652
cristy8b350f62009-11-15 23:12:43 +000036653 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036654 ac_need_defaults=false ;;
36655
36656 esac
36657 shift
36658done
36659
36660ac_configure_extra_args=
36661
36662if $ac_cs_silent; then
36663 exec 6>/dev/null
36664 ac_configure_extra_args="$ac_configure_extra_args --silent"
36665fi
36666
36667_ACEOF
36668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36669if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036670 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036671 shift
36672 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36673 CONFIG_SHELL='$SHELL'
36674 export CONFIG_SHELL
36675 exec "\$@"
36676fi
36677
36678_ACEOF
36679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36680exec 5>>config.log
36681{
36682 echo
36683 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36684## Running $as_me. ##
36685_ASBOX
36686 $as_echo "$ac_log"
36687} >&5
36688
36689_ACEOF
36690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036691#
36692# INIT-COMMANDS
36693#
36694PACKAGE="$PACKAGE"
36695AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36696
36697
36698# The HP-UX ksh and POSIX shell print the target directory to stdout
36699# if CDPATH is set.
36700(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36701
36702sed_quote_subst='$sed_quote_subst'
36703double_quote_subst='$double_quote_subst'
36704delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036705SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36706Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36707GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36708EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36709FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36710SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36711ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36712LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36713macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36714macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36715AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36716DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36717OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36718enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36719enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36720pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36721enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036722PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036723host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36724host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36725host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36726build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36727build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36728build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36729NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36730LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36731max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36732ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36733exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36734lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36735lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36736lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036737lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36738lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036739reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36740reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36741deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36742file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036743file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36744want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36745sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036746AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36747AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036748archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036749STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36750RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36751old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36752old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36753old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36754lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36755CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36756CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36757compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36758GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36759lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36760lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36761lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36762lt_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 +000036763nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36764lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036765objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36766MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36767lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036768lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036769lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036770lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36771lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36772need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036773MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036774DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36775NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36776LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36777OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36778OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36779libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36780shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36781extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36782archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36783enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36784export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36785whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36786compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36787old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36788old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36789archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36790archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36791module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36792module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36793with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36794allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36795no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36796hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036797hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36798hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36799hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36800hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36801hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36802hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36803inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36804link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036805always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36806export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36807exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36808include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36809prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036810postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036811file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36812variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36813need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36814need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36815version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36816runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36817shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36818shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36819libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36820library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36821soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36822install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36823postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36824postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36825finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36826finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36827hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36828sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36829sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36830hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36831enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36832enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36833enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36834old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36835striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36836compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36837predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36838postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36839predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36840postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36841compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36842LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36843reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36844reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36845old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36846compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36847GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36848lt_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 +000036849lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036850lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036851lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36852lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36853archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36854enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36855export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36856whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36857compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36858old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36859old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36860archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36861archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36862module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36863module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36864with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36865allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36866no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36867hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036868hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36869hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36870hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36871hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36872hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36873hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36874inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36875link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036876always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36877export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36878exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36879include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36880prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036881postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036882file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36883hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36884compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36885predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36886postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36887predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36888postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36889compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036890
36891LTCC='$LTCC'
36892LTCFLAGS='$LTCFLAGS'
36893compiler='$compiler_DEFAULT'
36894
cristy0c60a692010-11-04 01:09:47 +000036895# A function that is used when there is no print builtin or printf.
36896func_fallback_echo ()
36897{
36898 eval 'cat <<_LTECHO_EOF
36899\$1
36900_LTECHO_EOF'
36901}
36902
cristy73bd4a52010-10-05 11:24:23 +000036903# Quote evaled strings.
36904for var in SED \
36905GREP \
36906EGREP \
36907FGREP \
cristy0c60a692010-11-04 01:09:47 +000036908SHELL \
36909ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036910LD \
cristy0c60a692010-11-04 01:09:47 +000036911AS \
36912DLLTOOL \
36913OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036914PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036915NM \
36916LN_S \
36917lt_SP2NL \
36918lt_NL2SP \
36919reload_flag \
36920deplibs_check_method \
36921file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036922file_magic_glob \
36923want_nocaseglob \
36924sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036925AR \
36926AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036927archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036928STRIP \
36929RANLIB \
36930CC \
36931CFLAGS \
36932compiler \
36933lt_cv_sys_global_symbol_pipe \
36934lt_cv_sys_global_symbol_to_cdecl \
36935lt_cv_sys_global_symbol_to_c_name_address \
36936lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036937nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036938lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036939lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036940lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036941lt_prog_compiler_static \
36942lt_cv_prog_compiler_c_o \
36943need_locks \
cristyda16f162011-02-19 23:52:17 +000036944MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036945DSYMUTIL \
36946NMEDIT \
36947LIPO \
36948OTOOL \
36949OTOOL64 \
36950shrext_cmds \
36951export_dynamic_flag_spec \
36952whole_archive_flag_spec \
36953compiler_needs_object \
36954with_gnu_ld \
36955allow_undefined_flag \
36956no_undefined_flag \
36957hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036958hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036959exclude_expsyms \
36960include_expsyms \
36961file_list_spec \
36962variables_saved_for_relink \
36963libname_spec \
36964library_names_spec \
36965soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036966install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036967finish_eval \
36968old_striplib \
36969striplib \
36970compiler_lib_search_dirs \
36971predep_objects \
36972postdep_objects \
36973predeps \
36974postdeps \
36975compiler_lib_search_path \
36976LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036977reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036978compiler_CXX \
36979lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036980lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036981lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036982lt_prog_compiler_static_CXX \
36983lt_cv_prog_compiler_c_o_CXX \
36984export_dynamic_flag_spec_CXX \
36985whole_archive_flag_spec_CXX \
36986compiler_needs_object_CXX \
36987with_gnu_ld_CXX \
36988allow_undefined_flag_CXX \
36989no_undefined_flag_CXX \
36990hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036991hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036992exclude_expsyms_CXX \
36993include_expsyms_CXX \
36994file_list_spec_CXX \
36995compiler_lib_search_dirs_CXX \
36996predep_objects_CXX \
36997postdep_objects_CXX \
36998predeps_CXX \
36999postdeps_CXX \
37000compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037001 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037002 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037003 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037004 ;;
37005 *)
37006 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37007 ;;
37008 esac
37009done
37010
37011# Double-quote double-evaled strings.
37012for var in reload_cmds \
37013old_postinstall_cmds \
37014old_postuninstall_cmds \
37015old_archive_cmds \
37016extract_expsyms_cmds \
37017old_archive_from_new_cmds \
37018old_archive_from_expsyms_cmds \
37019archive_cmds \
37020archive_expsym_cmds \
37021module_cmds \
37022module_expsym_cmds \
37023export_symbols_cmds \
37024prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037025postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037026postinstall_cmds \
37027postuninstall_cmds \
37028finish_cmds \
37029sys_lib_search_path_spec \
37030sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037031reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037032old_archive_cmds_CXX \
37033old_archive_from_new_cmds_CXX \
37034old_archive_from_expsyms_cmds_CXX \
37035archive_cmds_CXX \
37036archive_expsym_cmds_CXX \
37037module_cmds_CXX \
37038module_expsym_cmds_CXX \
37039export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037040prelink_cmds_CXX \
37041postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037042 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037043 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037044 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037045 ;;
37046 *)
37047 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37048 ;;
37049 esac
37050done
37051
cristy73bd4a52010-10-05 11:24:23 +000037052ac_aux_dir='$ac_aux_dir'
37053xsi_shell='$xsi_shell'
37054lt_shell_append='$lt_shell_append'
37055
37056# See if we are running on zsh, and set the options which allow our
37057# commands through without removal of \ escapes INIT.
37058if test -n "\${ZSH_VERSION+set}" ; then
37059 setopt NO_GLOB_SUBST
37060fi
37061
37062
37063 PACKAGE='$PACKAGE'
37064 VERSION='$VERSION'
37065 TIMESTAMP='$TIMESTAMP'
37066 RM='$RM'
37067 ofile='$ofile'
37068
37069
37070
37071
37072
37073
cristy3ed852e2009-09-05 21:47:34 +000037074_ACEOF
37075
37076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37077
37078# Handling of arguments.
37079for ac_config_target in $ac_config_targets
37080do
37081 case $ac_config_target in
37082 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037083 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037084 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037085 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37086 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37087 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37088 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37089 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037090 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037091 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037092 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37093 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37094 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37095 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37096 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037097 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037098 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037099 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37100 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37101 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037102 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37103 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037104 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037105 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037106 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037107 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037108 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37109 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37110 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37111 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037112 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37113 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37114 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37115 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37116 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37117 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37118 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37119 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37120 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37121 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37122 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37123 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037124 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37125 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037126 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37127 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037128 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037129 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037130 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037131 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037132 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37133 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37134
cristy98dddb52010-11-04 00:30:15 +000037135 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037136 esac
37137done
37138
37139
37140# If the user did not use the arguments to specify the items to instantiate,
37141# then the envvar interface is used. Set only those that are not.
37142# We use the long form for the default assignment because of an extremely
37143# bizarre bug on SunOS 4.1.3.
37144if $ac_need_defaults; then
37145 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37146 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37147 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37148fi
37149
37150# Have a temporary directory for convenience. Make it in the build tree
37151# simply because there is no reason against having it here, and in addition,
37152# creating and moving files from /tmp can sometimes cause problems.
37153# Hook for its removal unless debugging.
37154# Note that there is a small window in which the directory will not be cleaned:
37155# after its creation but before its name has been assigned to `$tmp'.
37156$debug ||
37157{
cristyda16f162011-02-19 23:52:17 +000037158 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037159 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037160 : "${ac_tmp:=$tmp}"
37161 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037162' 0
cristy8b350f62009-11-15 23:12:43 +000037163 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037164}
37165# Create a (secure) tmp directory for tmp files.
37166
37167{
37168 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037169 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037170} ||
37171{
37172 tmp=./conf$$-$RANDOM
37173 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037174} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037175ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037176
37177# Set up the scripts for CONFIG_FILES section.
37178# No need to generate them if there are no CONFIG_FILES.
37179# This happens for instance with `./config.status config.h'.
37180if test -n "$CONFIG_FILES"; then
37181
37182
cristy8b350f62009-11-15 23:12:43 +000037183ac_cr=`echo X | tr X '\015'`
37184# On cygwin, bash can eat \r inside `` if the user requested igncr.
37185# But we know of no other shell where ac_cr would be empty at this
37186# point, so we can use a bashism as a fallback.
37187if test "x$ac_cr" = x; then
37188 eval ac_cr=\$\'\\r\'
37189fi
cristy3ed852e2009-09-05 21:47:34 +000037190ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37191if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037192 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037193else
37194 ac_cs_awk_cr=$ac_cr
37195fi
37196
cristyda16f162011-02-19 23:52:17 +000037197echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037198_ACEOF
37199
37200
37201{
37202 echo "cat >conf$$subs.awk <<_ACEOF" &&
37203 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37204 echo "_ACEOF"
37205} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037206 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37207ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037208ac_delim='%!_!# '
37209for ac_last_try in false false false false false :; do
37210 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037211 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037212
37213 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37214 if test $ac_delim_n = $ac_delim_num; then
37215 break
37216 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037217 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037218 else
37219 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37220 fi
37221done
37222rm -f conf$$subs.sh
37223
37224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037225cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037226_ACEOF
37227sed -n '
37228h
37229s/^/S["/; s/!.*/"]=/
37230p
37231g
37232s/^[^!]*!//
37233:repl
37234t repl
37235s/'"$ac_delim"'$//
37236t delim
37237:nl
37238h
cristycd4c5312009-11-22 01:19:08 +000037239s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037240t more1
37241s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37242p
37243n
37244b repl
37245:more1
37246s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37247p
37248g
37249s/.\{148\}//
37250t nl
37251:delim
37252h
cristycd4c5312009-11-22 01:19:08 +000037253s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037254t more2
37255s/["\\]/\\&/g; s/^/"/; s/$/"/
37256p
37257b
37258:more2
37259s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37260p
37261g
37262s/.\{148\}//
37263t delim
37264' <conf$$subs.awk | sed '
37265/^[^""]/{
37266 N
37267 s/\n//
37268}
37269' >>$CONFIG_STATUS || ac_write_fail=1
37270rm -f conf$$subs.awk
37271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37272_ACAWK
cristyda16f162011-02-19 23:52:17 +000037273cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037274 for (key in S) S_is_set[key] = 1
37275 FS = ""
37276
37277}
37278{
37279 line = $ 0
37280 nfields = split(line, field, "@")
37281 substed = 0
37282 len = length(field[1])
37283 for (i = 2; i < nfields; i++) {
37284 key = field[i]
37285 keylen = length(key)
37286 if (S_is_set[key]) {
37287 value = S[key]
37288 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37289 len += length(value) + length(field[++i])
37290 substed = 1
37291 } else
37292 len += 1 + keylen
37293 }
37294
37295 print line
37296}
37297
37298_ACAWK
37299_ACEOF
37300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37301if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37302 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37303else
37304 cat
cristyda16f162011-02-19 23:52:17 +000037305fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037306 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037307_ACEOF
37308
cristy98dddb52010-11-04 00:30:15 +000037309# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37310# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037311# trailing colons and then remove the whole line if VPATH becomes empty
37312# (actually we leave an empty line to preserve line numbers).
37313if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037314 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37315h
37316s///
37317s/^/:/
37318s/[ ]*$/:/
37319s/:\$(srcdir):/:/g
37320s/:\${srcdir}:/:/g
37321s/:@srcdir@:/:/g
37322s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037323s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037324x
37325s/\(=[ ]*\).*/\1/
37326G
37327s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037328s/^[^=]*=[ ]*$//
37329}'
37330fi
37331
37332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37333fi # test -n "$CONFIG_FILES"
37334
37335# Set up the scripts for CONFIG_HEADERS section.
37336# No need to generate them if there are no CONFIG_HEADERS.
37337# This happens for instance with `./config.status Makefile'.
37338if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037339cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037340BEGIN {
37341_ACEOF
37342
37343# Transform confdefs.h into an awk script `defines.awk', embedded as
37344# here-document in config.status, that substitutes the proper values into
37345# config.h.in to produce config.h.
37346
37347# Create a delimiter string that does not exist in confdefs.h, to ease
37348# handling of long lines.
37349ac_delim='%!_!# '
37350for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037351 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37352 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037353 break
37354 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037355 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037356 else
37357 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37358 fi
37359done
37360
37361# For the awk script, D is an array of macro values keyed by name,
37362# likewise P contains macro parameters if any. Preserve backslash
37363# newline sequences.
37364
37365ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37366sed -n '
37367s/.\{148\}/&'"$ac_delim"'/g
37368t rset
37369:rset
37370s/^[ ]*#[ ]*define[ ][ ]*/ /
37371t def
37372d
37373:def
37374s/\\$//
37375t bsnl
37376s/["\\]/\\&/g
37377s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37378D["\1"]=" \3"/p
37379s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37380d
37381:bsnl
37382s/["\\]/\\&/g
37383s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37384D["\1"]=" \3\\\\\\n"\\/p
37385t cont
37386s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37387t cont
37388d
37389:cont
37390n
37391s/.\{148\}/&'"$ac_delim"'/g
37392t clear
37393:clear
37394s/\\$//
37395t bsnlc
37396s/["\\]/\\&/g; s/^/"/; s/$/"/p
37397d
37398:bsnlc
37399s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37400b cont
37401' <confdefs.h | sed '
37402s/'"$ac_delim"'/"\\\
37403"/g' >>$CONFIG_STATUS || ac_write_fail=1
37404
37405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37406 for (key in D) D_is_set[key] = 1
37407 FS = ""
37408}
37409/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37410 line = \$ 0
37411 split(line, arg, " ")
37412 if (arg[1] == "#") {
37413 defundef = arg[2]
37414 mac1 = arg[3]
37415 } else {
37416 defundef = substr(arg[1], 2)
37417 mac1 = arg[2]
37418 }
37419 split(mac1, mac2, "(") #)
37420 macro = mac2[1]
37421 prefix = substr(line, 1, index(line, defundef) - 1)
37422 if (D_is_set[macro]) {
37423 # Preserve the white space surrounding the "#".
37424 print prefix "define", macro P[macro] D[macro]
37425 next
37426 } else {
37427 # Replace #undef with comments. This is necessary, for example,
37428 # in the case of _POSIX_SOURCE, which is predefined and required
37429 # on some systems where configure will not decide to define it.
37430 if (defundef == "undef") {
37431 print "/*", prefix defundef, macro, "*/"
37432 next
37433 }
37434 }
37435}
37436{ print }
37437_ACAWK
37438_ACEOF
37439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037440 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037441fi # test -n "$CONFIG_HEADERS"
37442
37443
37444eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37445shift
37446for ac_tag
37447do
37448 case $ac_tag in
37449 :[FHLC]) ac_mode=$ac_tag; continue;;
37450 esac
37451 case $ac_mode$ac_tag in
37452 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037453 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037454 :[FH]-) ac_tag=-:-;;
37455 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37456 esac
37457 ac_save_IFS=$IFS
37458 IFS=:
37459 set x $ac_tag
37460 IFS=$ac_save_IFS
37461 shift
37462 ac_file=$1
37463 shift
37464
37465 case $ac_mode in
37466 :L) ac_source=$1;;
37467 :[FH])
37468 ac_file_inputs=
37469 for ac_f
37470 do
37471 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037472 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037473 *) # Look for the file first in the build tree, then in the source tree
37474 # (if the path is not absolute). The absolute path cannot be DOS-style,
37475 # because $ac_f cannot contain `:'.
37476 test -f "$ac_f" ||
37477 case $ac_f in
37478 [\\/$]*) false;;
37479 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37480 esac ||
cristy98dddb52010-11-04 00:30:15 +000037481 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037482 esac
37483 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037484 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037485 done
37486
37487 # Let's still pretend it is `configure' which instantiates (i.e., don't
37488 # use $as_me), people would be surprised to read:
37489 # /* config.h. Generated by config.status. */
37490 configure_input='Generated from '`
37491 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37492 `' by configure.'
37493 if test x"$ac_file" != x-; then
37494 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037496$as_echo "$as_me: creating $ac_file" >&6;}
37497 fi
37498 # Neutralize special characters interpreted by sed in replacement strings.
37499 case $configure_input in #(
37500 *\&* | *\|* | *\\* )
37501 ac_sed_conf_input=`$as_echo "$configure_input" |
37502 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37503 *) ac_sed_conf_input=$configure_input;;
37504 esac
37505
37506 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037507 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037508 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037509 esac
37510 ;;
37511 esac
37512
37513 ac_dir=`$as_dirname -- "$ac_file" ||
37514$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37515 X"$ac_file" : 'X\(//\)[^/]' \| \
37516 X"$ac_file" : 'X\(//\)$' \| \
37517 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37518$as_echo X"$ac_file" |
37519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37520 s//\1/
37521 q
37522 }
37523 /^X\(\/\/\)[^/].*/{
37524 s//\1/
37525 q
37526 }
37527 /^X\(\/\/\)$/{
37528 s//\1/
37529 q
37530 }
37531 /^X\(\/\).*/{
37532 s//\1/
37533 q
37534 }
37535 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037536 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037537 ac_builddir=.
37538
37539case "$ac_dir" in
37540.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37541*)
37542 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37543 # A ".." for each directory in $ac_dir_suffix.
37544 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37545 case $ac_top_builddir_sub in
37546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37548 esac ;;
37549esac
37550ac_abs_top_builddir=$ac_pwd
37551ac_abs_builddir=$ac_pwd$ac_dir_suffix
37552# for backward compatibility:
37553ac_top_builddir=$ac_top_build_prefix
37554
37555case $srcdir in
37556 .) # We are building in place.
37557 ac_srcdir=.
37558 ac_top_srcdir=$ac_top_builddir_sub
37559 ac_abs_top_srcdir=$ac_pwd ;;
37560 [\\/]* | ?:[\\/]* ) # Absolute name.
37561 ac_srcdir=$srcdir$ac_dir_suffix;
37562 ac_top_srcdir=$srcdir
37563 ac_abs_top_srcdir=$srcdir ;;
37564 *) # Relative name.
37565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37566 ac_top_srcdir=$ac_top_build_prefix$srcdir
37567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37568esac
37569ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37570
37571
37572 case $ac_mode in
37573 :F)
37574 #
37575 # CONFIG_FILE
37576 #
37577
37578 case $INSTALL in
37579 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37580 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37581 esac
cristy73bd4a52010-10-05 11:24:23 +000037582 ac_MKDIR_P=$MKDIR_P
37583 case $MKDIR_P in
37584 [\\/$]* | ?:[\\/]* ) ;;
37585 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37586 esac
cristy3ed852e2009-09-05 21:47:34 +000037587_ACEOF
37588
37589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37590# If the template does not know about datarootdir, expand it.
37591# FIXME: This hack should be removed a few years after 2.60.
37592ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037593ac_sed_dataroot='
37594/datarootdir/ {
37595 p
37596 q
37597}
37598/@datadir@/p
37599/@docdir@/p
37600/@infodir@/p
37601/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037602/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037603case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37604*datarootdir*) ac_datarootdir_seen=yes;;
37605*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037607$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37608_ACEOF
37609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37610 ac_datarootdir_hack='
37611 s&@datadir@&$datadir&g
37612 s&@docdir@&$docdir&g
37613 s&@infodir@&$infodir&g
37614 s&@localedir@&$localedir&g
37615 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037616 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037617esac
37618_ACEOF
37619
37620# Neutralize VPATH when `$srcdir' = `.'.
37621# Shell code in configure.ac might set extrasub.
37622# FIXME: do we really want to maintain this feature?
37623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37624ac_sed_extra="$ac_vpsub
37625$extrasub
37626_ACEOF
37627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37628:t
37629/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37630s|@configure_input@|$ac_sed_conf_input|;t t
37631s&@top_builddir@&$ac_top_builddir_sub&;t t
37632s&@top_build_prefix@&$ac_top_build_prefix&;t t
37633s&@srcdir@&$ac_srcdir&;t t
37634s&@abs_srcdir@&$ac_abs_srcdir&;t t
37635s&@top_srcdir@&$ac_top_srcdir&;t t
37636s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37637s&@builddir@&$ac_builddir&;t t
37638s&@abs_builddir@&$ac_abs_builddir&;t t
37639s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37640s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037641s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037642$ac_datarootdir_hack
37643"
cristyda16f162011-02-19 23:52:17 +000037644eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37645 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037646
37647test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037648 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37649 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37650 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037652which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037653$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037654which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037655
cristyda16f162011-02-19 23:52:17 +000037656 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037657 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037658 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37659 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037660 esac \
cristy98dddb52010-11-04 00:30:15 +000037661 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037662 ;;
37663 :H)
37664 #
37665 # CONFIG_HEADER
37666 #
37667 if test x"$ac_file" != x-; then
37668 {
37669 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037670 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37671 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037672 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037673 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037674 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037675$as_echo "$as_me: $ac_file is unchanged" >&6;}
37676 else
37677 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037678 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037680 fi
37681 else
37682 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037683 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037684 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037685 fi
cristy73bd4a52010-10-05 11:24:23 +000037686# Compute "$ac_file"'s index in $config_headers.
37687_am_arg="$ac_file"
37688_am_stamp_count=1
37689for _am_header in $config_headers :; do
37690 case $_am_header in
37691 $_am_arg | $_am_arg:* )
37692 break ;;
37693 * )
37694 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37695 esac
37696done
37697echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37698$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37699 X"$_am_arg" : 'X\(//\)[^/]' \| \
37700 X"$_am_arg" : 'X\(//\)$' \| \
37701 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37702$as_echo X"$_am_arg" |
37703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37704 s//\1/
37705 q
37706 }
37707 /^X\(\/\/\)[^/].*/{
37708 s//\1/
37709 q
37710 }
37711 /^X\(\/\/\)$/{
37712 s//\1/
37713 q
37714 }
37715 /^X\(\/\).*/{
37716 s//\1/
37717 q
37718 }
37719 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037720 ;;
37721
cristy8b350f62009-11-15 23:12:43 +000037722 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037723$as_echo "$as_me: executing $ac_file commands" >&6;}
37724 ;;
37725 esac
37726
37727
37728 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037729 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037730ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37731ac_prefix_conf_PKG=`echo MagickCore`
37732ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37733ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37734ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37735if test ".$ac_prefix_conf_INP" = "."; then
37736 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37737 case "$ac_file" in
37738 *.h) ac_prefix_conf_INP=$ac_file ;;
37739 *)
37740 esac
37741 test ".$ac_prefix_conf_INP" != "." && break
37742 done
37743fi
37744if test ".$ac_prefix_conf_INP" = "."; then
37745 case "$ac_prefix_conf_OUT" in
37746 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37747 ;;
37748 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37749 ;;
37750 *) ac_prefix_conf_INP=config.h
37751 ;;
37752 esac
37753fi
37754if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037755 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037756else
37757 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37758 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37759 fi fi
37760 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37761$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37762 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037763 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37764 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37765 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37766 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37767 $as_echo "#endif/" >> conftest.prefix
37768 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37769 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37770 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037771 # now executing _script on _DEF input to create _OUT output file
37772 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37773 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37774 echo ' ' >>$tmp/pconfig.h
37775 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37776
37777 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37778 echo ' ' >>$tmp/pconfig.h
37779 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37780 echo "#endif" >>$tmp/pconfig.h
37781 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37782 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37783$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37784 else
37785 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37786$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37787 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37788 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37789 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37790$as_echo X"$ac_prefix_conf_OUT" |
37791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37792 s//\1/
37793 q
37794 }
37795 /^X\(\/\/\)[^/].*/{
37796 s//\1/
37797 q
37798 }
37799 /^X\(\/\/\)$/{
37800 s//\1/
37801 q
37802 }
37803 /^X\(\/\).*/{
37804 s//\1/
37805 q
37806 }
37807 s/.*/./; q'`
37808 as_dir="$ac_dir"; as_fn_mkdir_p
37809 rm -f "$ac_prefix_conf_OUT"
37810 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37811 fi
37812 cp conftest.prefix _configs.sed
37813 else
cristy98dddb52010-11-04 00:30:15 +000037814 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 +000037815 fi
37816 rm -f conftest.*
37817fi
37818 ;;
37819 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037820 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037821 # are listed without --file. Let's play safe and only enable the eval
37822 # if we detect the quoting.
37823 case $CONFIG_FILES in
37824 *\'*) eval set x "$CONFIG_FILES" ;;
37825 *) set x $CONFIG_FILES ;;
37826 esac
37827 shift
37828 for mf
37829 do
37830 # Strip MF so we end up with the name of the file.
37831 mf=`echo "$mf" | sed -e 's/:.*$//'`
37832 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037833 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037834 # some people rename them; so instead we look at the file content.
37835 # Grep'ing the first line is not enough: some people post-process
37836 # each Makefile.in and add a new line on top of each file to say so.
37837 # Grep'ing the whole file is not good either: AIX grep has a line
37838 # limit of 2048, but all sed's we know have understand at least 4000.
37839 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37840 dirpart=`$as_dirname -- "$mf" ||
37841$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37842 X"$mf" : 'X\(//\)[^/]' \| \
37843 X"$mf" : 'X\(//\)$' \| \
37844 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37845$as_echo X"$mf" |
37846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37847 s//\1/
37848 q
37849 }
37850 /^X\(\/\/\)[^/].*/{
37851 s//\1/
37852 q
37853 }
37854 /^X\(\/\/\)$/{
37855 s//\1/
37856 q
37857 }
37858 /^X\(\/\).*/{
37859 s//\1/
37860 q
37861 }
37862 s/.*/./; q'`
37863 else
37864 continue
37865 fi
37866 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037867 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037868 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37869 test -z "$DEPDIR" && continue
37870 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37871 test -z "am__include" && continue
37872 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037873 # Find all dependency output files, they are included files with
37874 # $(DEPDIR) in their names. We invoke sed twice because it is the
37875 # simplest approach to changing $(DEPDIR) to its actual value in the
37876 # expansion.
37877 for file in `sed -n "
37878 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037879 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037880 # Make sure the directory exists.
37881 test -f "$dirpart/$file" && continue
37882 fdir=`$as_dirname -- "$file" ||
37883$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37884 X"$file" : 'X\(//\)[^/]' \| \
37885 X"$file" : 'X\(//\)$' \| \
37886 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37887$as_echo X"$file" |
37888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37889 s//\1/
37890 q
37891 }
37892 /^X\(\/\/\)[^/].*/{
37893 s//\1/
37894 q
37895 }
37896 /^X\(\/\/\)$/{
37897 s//\1/
37898 q
37899 }
37900 /^X\(\/\).*/{
37901 s//\1/
37902 q
37903 }
37904 s/.*/./; q'`
37905 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37906 # echo "creating $dirpart/$file"
37907 echo '# dummy' > "$dirpart/$file"
37908 done
37909 done
37910}
37911 ;;
37912 "libtool":C)
37913
37914 # See if we are running on zsh, and set the options which allow our
37915 # commands through without removal of \ escapes.
37916 if test -n "${ZSH_VERSION+set}" ; then
37917 setopt NO_GLOB_SUBST
37918 fi
37919
37920 cfgfile="${ofile}T"
37921 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37922 $RM "$cfgfile"
37923
37924 cat <<_LT_EOF >> "$cfgfile"
37925#! $SHELL
37926
37927# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37928# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37929# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37930# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37931#
37932# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037933# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37934# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037935# Written by Gordon Matzigkeit, 1996
37936#
37937# This file is part of GNU Libtool.
37938#
37939# GNU Libtool is free software; you can redistribute it and/or
37940# modify it under the terms of the GNU General Public License as
37941# published by the Free Software Foundation; either version 2 of
37942# the License, or (at your option) any later version.
37943#
37944# As a special exception to the GNU General Public License,
37945# if you distribute this file as part of a program or library that
37946# is built using GNU Libtool, you may include this file under the
37947# same distribution terms that you use for the rest of that program.
37948#
37949# GNU Libtool is distributed in the hope that it will be useful,
37950# but WITHOUT ANY WARRANTY; without even the implied warranty of
37951# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37952# GNU General Public License for more details.
37953#
37954# You should have received a copy of the GNU General Public License
37955# along with GNU Libtool; see the file COPYING. If not, a copy
37956# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37957# obtained by writing to the Free Software Foundation, Inc.,
37958# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37959
37960
37961# The names of the tagged configurations supported by this script.
37962available_tags="CXX "
37963
37964# ### BEGIN LIBTOOL CONFIG
37965
37966# A sed program that does not truncate output.
37967SED=$lt_SED
37968
37969# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37970Xsed="\$SED -e 1s/^X//"
37971
37972# A grep program that handles long lines.
37973GREP=$lt_GREP
37974
37975# An ERE matcher.
37976EGREP=$lt_EGREP
37977
37978# A literal string matcher.
37979FGREP=$lt_FGREP
37980
cristy0c60a692010-11-04 01:09:47 +000037981# Shell to use when invoking shell scripts.
37982SHELL=$lt_SHELL
37983
37984# An echo program that protects backslashes.
37985ECHO=$lt_ECHO
37986
cristy73bd4a52010-10-05 11:24:23 +000037987# Which release of libtool.m4 was used?
37988macro_version=$macro_version
37989macro_revision=$macro_revision
37990
37991# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037992AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037993
37994# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037995DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037996
37997# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037998OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037999
38000# Whether or not to build shared libraries.
38001build_libtool_libs=$enable_shared
38002
38003# Whether or not to build static libraries.
38004build_old_libs=$enable_static
38005
38006# What type of objects to build.
38007pic_mode=$pic_mode
38008
38009# Whether or not to optimize for fast installation.
38010fast_install=$enable_fast_install
38011
cristy99bd5232011-12-07 14:38:20 +000038012# The PATH separator for the build system.
38013PATH_SEPARATOR=$lt_PATH_SEPARATOR
38014
cristy73bd4a52010-10-05 11:24:23 +000038015# The host system.
38016host_alias=$host_alias
38017host=$host
38018host_os=$host_os
38019
38020# The build system.
38021build_alias=$build_alias
38022build=$build
38023build_os=$build_os
38024
38025# A BSD- or MS-compatible name lister.
38026NM=$lt_NM
38027
38028# Whether we need soft or hard links.
38029LN_S=$lt_LN_S
38030
38031# What is the maximum length of a command?
38032max_cmd_len=$max_cmd_len
38033
38034# Object file suffix (normally "o").
38035objext=$ac_objext
38036
38037# Executable file suffix (normally "").
38038exeext=$exeext
38039
38040# whether the shell understands "unset".
38041lt_unset=$lt_unset
38042
38043# turn spaces into newlines.
38044SP2NL=$lt_lt_SP2NL
38045
38046# turn newlines into spaces.
38047NL2SP=$lt_lt_NL2SP
38048
cristyda16f162011-02-19 23:52:17 +000038049# convert \$build file names to \$host format.
38050to_host_file_cmd=$lt_cv_to_host_file_cmd
38051
38052# convert \$build files to toolchain format.
38053to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38054
cristy73bd4a52010-10-05 11:24:23 +000038055# Method to check whether dependent libraries are shared objects.
38056deplibs_check_method=$lt_deplibs_check_method
38057
cristyda16f162011-02-19 23:52:17 +000038058# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038059file_magic_cmd=$lt_file_magic_cmd
38060
cristyda16f162011-02-19 23:52:17 +000038061# How to find potential files when deplibs_check_method = "file_magic".
38062file_magic_glob=$lt_file_magic_glob
38063
38064# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38065want_nocaseglob=$lt_want_nocaseglob
38066
38067# Command to associate shared and link libraries.
38068sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38069
cristy73bd4a52010-10-05 11:24:23 +000038070# The archiver.
38071AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038072
38073# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038074AR_FLAGS=$lt_AR_FLAGS
38075
cristyda16f162011-02-19 23:52:17 +000038076# How to feed a file listing to the archiver.
38077archiver_list_spec=$lt_archiver_list_spec
38078
cristy73bd4a52010-10-05 11:24:23 +000038079# A symbol stripping program.
38080STRIP=$lt_STRIP
38081
38082# Commands used to install an old-style archive.
38083RANLIB=$lt_RANLIB
38084old_postinstall_cmds=$lt_old_postinstall_cmds
38085old_postuninstall_cmds=$lt_old_postuninstall_cmds
38086
cristy0c60a692010-11-04 01:09:47 +000038087# Whether to use a lock for old archive extraction.
38088lock_old_archive_extraction=$lock_old_archive_extraction
38089
cristy73bd4a52010-10-05 11:24:23 +000038090# A C compiler.
38091LTCC=$lt_CC
38092
38093# LTCC compiler flags.
38094LTCFLAGS=$lt_CFLAGS
38095
38096# Take the output of nm and produce a listing of raw symbols and C names.
38097global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38098
38099# Transform the output of nm in a proper C declaration.
38100global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38101
38102# Transform the output of nm in a C name address pair.
38103global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38104
38105# Transform the output of nm in a C name address pair when lib prefix is needed.
38106global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38107
cristyda16f162011-02-19 23:52:17 +000038108# Specify filename containing input files for \$NM.
38109nm_file_list_spec=$lt_nm_file_list_spec
38110
38111# The root where to search for dependent libraries,and in which our libraries should be installed.
38112lt_sysroot=$lt_sysroot
38113
cristy73bd4a52010-10-05 11:24:23 +000038114# The name of the directory that contains temporary libtool files.
38115objdir=$objdir
38116
cristy73bd4a52010-10-05 11:24:23 +000038117# Used to examine libraries when file_magic_cmd begins with "file".
38118MAGIC_CMD=$MAGIC_CMD
38119
38120# Must we lock files when doing compilation?
38121need_locks=$lt_need_locks
38122
cristyda16f162011-02-19 23:52:17 +000038123# Manifest tool.
38124MANIFEST_TOOL=$lt_MANIFEST_TOOL
38125
cristy73bd4a52010-10-05 11:24:23 +000038126# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38127DSYMUTIL=$lt_DSYMUTIL
38128
38129# Tool to change global to local symbols on Mac OS X.
38130NMEDIT=$lt_NMEDIT
38131
38132# Tool to manipulate fat objects and archives on Mac OS X.
38133LIPO=$lt_LIPO
38134
38135# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38136OTOOL=$lt_OTOOL
38137
38138# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38139OTOOL64=$lt_OTOOL64
38140
38141# Old archive suffix (normally "a").
38142libext=$libext
38143
38144# Shared library suffix (normally ".so").
38145shrext_cmds=$lt_shrext_cmds
38146
38147# The commands to extract the exported symbol list from a shared archive.
38148extract_expsyms_cmds=$lt_extract_expsyms_cmds
38149
38150# Variables whose values should be saved in libtool wrapper scripts and
38151# restored at link time.
38152variables_saved_for_relink=$lt_variables_saved_for_relink
38153
38154# Do we need the "lib" prefix for modules?
38155need_lib_prefix=$need_lib_prefix
38156
38157# Do we need a version for libraries?
38158need_version=$need_version
38159
38160# Library versioning type.
38161version_type=$version_type
38162
38163# Shared library runtime path variable.
38164runpath_var=$runpath_var
38165
38166# Shared library path variable.
38167shlibpath_var=$shlibpath_var
38168
38169# Is shlibpath searched before the hard-coded library search path?
38170shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38171
38172# Format of library name prefix.
38173libname_spec=$lt_libname_spec
38174
38175# List of archive names. First name is the real one, the rest are links.
38176# The last name is the one that the linker finds with -lNAME
38177library_names_spec=$lt_library_names_spec
38178
38179# The coded name of the library, if different from the real name.
38180soname_spec=$lt_soname_spec
38181
cristy0c60a692010-11-04 01:09:47 +000038182# Permission mode override for installation of shared libraries.
38183install_override_mode=$lt_install_override_mode
38184
cristy73bd4a52010-10-05 11:24:23 +000038185# Command to use after installation of a shared archive.
38186postinstall_cmds=$lt_postinstall_cmds
38187
38188# Command to use after uninstallation of a shared archive.
38189postuninstall_cmds=$lt_postuninstall_cmds
38190
38191# Commands used to finish a libtool library installation in a directory.
38192finish_cmds=$lt_finish_cmds
38193
38194# As "finish_cmds", except a single script fragment to be evaled but
38195# not shown.
38196finish_eval=$lt_finish_eval
38197
38198# Whether we should hardcode library paths into libraries.
38199hardcode_into_libs=$hardcode_into_libs
38200
38201# Compile-time system search path for libraries.
38202sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38203
38204# Run-time system search path for libraries.
38205sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38206
38207# Whether dlopen is supported.
38208dlopen_support=$enable_dlopen
38209
38210# Whether dlopen of programs is supported.
38211dlopen_self=$enable_dlopen_self
38212
38213# Whether dlopen of statically linked programs is supported.
38214dlopen_self_static=$enable_dlopen_self_static
38215
38216# Commands to strip libraries.
38217old_striplib=$lt_old_striplib
38218striplib=$lt_striplib
38219
38220
38221# The linker used to build libraries.
38222LD=$lt_LD
38223
cristy0c60a692010-11-04 01:09:47 +000038224# How to create reloadable object files.
38225reload_flag=$lt_reload_flag
38226reload_cmds=$lt_reload_cmds
38227
cristy73bd4a52010-10-05 11:24:23 +000038228# Commands used to build an old-style archive.
38229old_archive_cmds=$lt_old_archive_cmds
38230
38231# A language specific compiler.
38232CC=$lt_compiler
38233
38234# Is the compiler the GNU compiler?
38235with_gcc=$GCC
38236
38237# Compiler flag to turn off builtin functions.
38238no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38239
cristy73bd4a52010-10-05 11:24:23 +000038240# Additional compiler flags for building library objects.
38241pic_flag=$lt_lt_prog_compiler_pic
38242
cristyda16f162011-02-19 23:52:17 +000038243# How to pass a linker flag through the compiler.
38244wl=$lt_lt_prog_compiler_wl
38245
cristy73bd4a52010-10-05 11:24:23 +000038246# Compiler flag to prevent dynamic linking.
38247link_static_flag=$lt_lt_prog_compiler_static
38248
38249# Does compiler simultaneously support -c and -o options?
38250compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38251
38252# Whether or not to add -lc for building shared libraries.
38253build_libtool_need_lc=$archive_cmds_need_lc
38254
38255# Whether or not to disallow shared libs when runtime libs are static.
38256allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38257
38258# Compiler flag to allow reflexive dlopens.
38259export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38260
38261# Compiler flag to generate shared objects directly from archives.
38262whole_archive_flag_spec=$lt_whole_archive_flag_spec
38263
38264# Whether the compiler copes with passing no objects directly.
38265compiler_needs_object=$lt_compiler_needs_object
38266
38267# Create an old-style archive from a shared archive.
38268old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38269
38270# Create a temporary old-style archive to link instead of a shared archive.
38271old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38272
38273# Commands used to build a shared archive.
38274archive_cmds=$lt_archive_cmds
38275archive_expsym_cmds=$lt_archive_expsym_cmds
38276
38277# Commands used to build a loadable module if different from building
38278# a shared archive.
38279module_cmds=$lt_module_cmds
38280module_expsym_cmds=$lt_module_expsym_cmds
38281
38282# Whether we are building with GNU ld or not.
38283with_gnu_ld=$lt_with_gnu_ld
38284
38285# Flag that allows shared libraries with undefined symbols to be built.
38286allow_undefined_flag=$lt_allow_undefined_flag
38287
38288# Flag that enforces no undefined symbols.
38289no_undefined_flag=$lt_no_undefined_flag
38290
38291# Flag to hardcode \$libdir into a binary during linking.
38292# This must work even if \$libdir does not exist
38293hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38294
cristy73bd4a52010-10-05 11:24:23 +000038295# Whether we need a single "-rpath" flag with a separated argument.
38296hardcode_libdir_separator=$lt_hardcode_libdir_separator
38297
38298# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38299# DIR into the resulting binary.
38300hardcode_direct=$hardcode_direct
38301
38302# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38303# DIR into the resulting binary and the resulting library dependency is
38304# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38305# library is relocated.
38306hardcode_direct_absolute=$hardcode_direct_absolute
38307
38308# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38309# into the resulting binary.
38310hardcode_minus_L=$hardcode_minus_L
38311
38312# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38313# into the resulting binary.
38314hardcode_shlibpath_var=$hardcode_shlibpath_var
38315
38316# Set to "yes" if building a shared library automatically hardcodes DIR
38317# into the library and all subsequent libraries and executables linked
38318# against it.
38319hardcode_automatic=$hardcode_automatic
38320
38321# Set to yes if linker adds runtime paths of dependent libraries
38322# to runtime path list.
38323inherit_rpath=$inherit_rpath
38324
38325# Whether libtool must link a program against all its dependency libraries.
38326link_all_deplibs=$link_all_deplibs
38327
cristy73bd4a52010-10-05 11:24:23 +000038328# Set to "yes" if exported symbols are required.
38329always_export_symbols=$always_export_symbols
38330
38331# The commands to list exported symbols.
38332export_symbols_cmds=$lt_export_symbols_cmds
38333
38334# Symbols that should not be listed in the preloaded symbols.
38335exclude_expsyms=$lt_exclude_expsyms
38336
38337# Symbols that must always be exported.
38338include_expsyms=$lt_include_expsyms
38339
38340# Commands necessary for linking programs (against libraries) with templates.
38341prelink_cmds=$lt_prelink_cmds
38342
cristyda16f162011-02-19 23:52:17 +000038343# Commands necessary for finishing linking programs.
38344postlink_cmds=$lt_postlink_cmds
38345
cristy73bd4a52010-10-05 11:24:23 +000038346# Specify filename containing input files.
38347file_list_spec=$lt_file_list_spec
38348
38349# How to hardcode a shared library path into an executable.
38350hardcode_action=$hardcode_action
38351
38352# The directories searched by this compiler when creating a shared library.
38353compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38354
38355# Dependencies to place before and after the objects being linked to
38356# create a shared library.
38357predep_objects=$lt_predep_objects
38358postdep_objects=$lt_postdep_objects
38359predeps=$lt_predeps
38360postdeps=$lt_postdeps
38361
38362# The library search path used internally by the compiler when linking
38363# a shared library.
38364compiler_lib_search_path=$lt_compiler_lib_search_path
38365
38366# ### END LIBTOOL CONFIG
38367
38368_LT_EOF
38369
38370 case $host_os in
38371 aix3*)
38372 cat <<\_LT_EOF >> "$cfgfile"
38373# AIX sometimes has problems with the GCC collect2 program. For some
38374# reason, if we set the COLLECT_NAMES environment variable, the problems
38375# vanish in a puff of smoke.
38376if test "X${COLLECT_NAMES+set}" != Xset; then
38377 COLLECT_NAMES=
38378 export COLLECT_NAMES
38379fi
38380_LT_EOF
38381 ;;
38382 esac
38383
38384
38385ltmain="$ac_aux_dir/ltmain.sh"
38386
38387
38388 # We use sed instead of cat because bash on DJGPP gets confused if
38389 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38390 # text mode, it properly converts lines to CR/LF. This bash problem
38391 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038392 sed '$q' "$ltmain" >> "$cfgfile" \
38393 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038394
cristyda16f162011-02-19 23:52:17 +000038395 if test x"$xsi_shell" = xyes; then
38396 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38397func_dirname ()\
38398{\
38399\ case ${1} in\
38400\ */*) func_dirname_result="${1%/*}${2}" ;;\
38401\ * ) func_dirname_result="${3}" ;;\
38402\ esac\
38403} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38404 && mv -f "$cfgfile.tmp" "$cfgfile" \
38405 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38406test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038407
38408
cristyda16f162011-02-19 23:52:17 +000038409 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38410func_basename ()\
38411{\
38412\ func_basename_result="${1##*/}"\
38413} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38414 && mv -f "$cfgfile.tmp" "$cfgfile" \
38415 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38416test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038417
38418
cristyda16f162011-02-19 23:52:17 +000038419 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38420func_dirname_and_basename ()\
38421{\
38422\ case ${1} in\
38423\ */*) func_dirname_result="${1%/*}${2}" ;;\
38424\ * ) func_dirname_result="${3}" ;;\
38425\ esac\
38426\ func_basename_result="${1##*/}"\
38427} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38428 && mv -f "$cfgfile.tmp" "$cfgfile" \
38429 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38430test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038431
cristyda16f162011-02-19 23:52:17 +000038432
38433 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38434func_stripname ()\
38435{\
38436\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38437\ # positional parameters, so assign one to ordinary parameter first.\
38438\ func_stripname_result=${3}\
38439\ func_stripname_result=${func_stripname_result#"${1}"}\
38440\ func_stripname_result=${func_stripname_result%"${2}"}\
38441} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38442 && mv -f "$cfgfile.tmp" "$cfgfile" \
38443 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38444test 0 -eq $? || _lt_function_replace_fail=:
38445
38446
38447 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38448func_split_long_opt ()\
38449{\
38450\ func_split_long_opt_name=${1%%=*}\
38451\ func_split_long_opt_arg=${1#*=}\
38452} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38453 && mv -f "$cfgfile.tmp" "$cfgfile" \
38454 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38455test 0 -eq $? || _lt_function_replace_fail=:
38456
38457
38458 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38459func_split_short_opt ()\
38460{\
38461\ func_split_short_opt_arg=${1#??}\
38462\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38463} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38464 && mv -f "$cfgfile.tmp" "$cfgfile" \
38465 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38466test 0 -eq $? || _lt_function_replace_fail=:
38467
38468
38469 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38470func_lo2o ()\
38471{\
38472\ case ${1} in\
38473\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38474\ *) func_lo2o_result=${1} ;;\
38475\ esac\
38476} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38477 && mv -f "$cfgfile.tmp" "$cfgfile" \
38478 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38479test 0 -eq $? || _lt_function_replace_fail=:
38480
38481
38482 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38483func_xform ()\
38484{\
38485 func_xform_result=${1%.*}.lo\
38486} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38487 && mv -f "$cfgfile.tmp" "$cfgfile" \
38488 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38489test 0 -eq $? || _lt_function_replace_fail=:
38490
38491
38492 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38493func_arith ()\
38494{\
38495 func_arith_result=$(( $* ))\
38496} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38497 && mv -f "$cfgfile.tmp" "$cfgfile" \
38498 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38499test 0 -eq $? || _lt_function_replace_fail=:
38500
38501
38502 sed -e '/^func_len ()$/,/^} # func_len /c\
38503func_len ()\
38504{\
38505 func_len_result=${#1}\
38506} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38507 && mv -f "$cfgfile.tmp" "$cfgfile" \
38508 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38509test 0 -eq $? || _lt_function_replace_fail=:
38510
38511fi
38512
38513if test x"$lt_shell_append" = xyes; then
38514 sed -e '/^func_append ()$/,/^} # func_append /c\
38515func_append ()\
38516{\
38517 eval "${1}+=\\${2}"\
38518} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38519 && mv -f "$cfgfile.tmp" "$cfgfile" \
38520 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38521test 0 -eq $? || _lt_function_replace_fail=:
38522
38523
38524 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38525func_append_quoted ()\
38526{\
38527\ func_quote_for_eval "${2}"\
38528\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38529} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38530 && mv -f "$cfgfile.tmp" "$cfgfile" \
38531 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38532test 0 -eq $? || _lt_function_replace_fail=:
38533
38534
38535 # Save a `func_append' function call where possible by direct use of '+='
38536 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38537 && mv -f "$cfgfile.tmp" "$cfgfile" \
38538 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38539 test 0 -eq $? || _lt_function_replace_fail=:
38540else
38541 # Save a `func_append' function call even when '+=' is not available
38542 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38543 && mv -f "$cfgfile.tmp" "$cfgfile" \
38544 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38545 test 0 -eq $? || _lt_function_replace_fail=:
38546fi
38547
38548if test x"$_lt_function_replace_fail" = x":"; then
38549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38550$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38551fi
38552
38553
38554 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038555 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38556 chmod +x "$ofile"
38557
38558
38559 cat <<_LT_EOF >> "$ofile"
38560
38561# ### BEGIN LIBTOOL TAG CONFIG: CXX
38562
38563# The linker used to build libraries.
38564LD=$lt_LD_CXX
38565
cristy0c60a692010-11-04 01:09:47 +000038566# How to create reloadable object files.
38567reload_flag=$lt_reload_flag_CXX
38568reload_cmds=$lt_reload_cmds_CXX
38569
cristy73bd4a52010-10-05 11:24:23 +000038570# Commands used to build an old-style archive.
38571old_archive_cmds=$lt_old_archive_cmds_CXX
38572
38573# A language specific compiler.
38574CC=$lt_compiler_CXX
38575
38576# Is the compiler the GNU compiler?
38577with_gcc=$GCC_CXX
38578
38579# Compiler flag to turn off builtin functions.
38580no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38581
cristy73bd4a52010-10-05 11:24:23 +000038582# Additional compiler flags for building library objects.
38583pic_flag=$lt_lt_prog_compiler_pic_CXX
38584
cristyda16f162011-02-19 23:52:17 +000038585# How to pass a linker flag through the compiler.
38586wl=$lt_lt_prog_compiler_wl_CXX
38587
cristy73bd4a52010-10-05 11:24:23 +000038588# Compiler flag to prevent dynamic linking.
38589link_static_flag=$lt_lt_prog_compiler_static_CXX
38590
38591# Does compiler simultaneously support -c and -o options?
38592compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38593
38594# Whether or not to add -lc for building shared libraries.
38595build_libtool_need_lc=$archive_cmds_need_lc_CXX
38596
38597# Whether or not to disallow shared libs when runtime libs are static.
38598allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38599
38600# Compiler flag to allow reflexive dlopens.
38601export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38602
38603# Compiler flag to generate shared objects directly from archives.
38604whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38605
38606# Whether the compiler copes with passing no objects directly.
38607compiler_needs_object=$lt_compiler_needs_object_CXX
38608
38609# Create an old-style archive from a shared archive.
38610old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38611
38612# Create a temporary old-style archive to link instead of a shared archive.
38613old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38614
38615# Commands used to build a shared archive.
38616archive_cmds=$lt_archive_cmds_CXX
38617archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38618
38619# Commands used to build a loadable module if different from building
38620# a shared archive.
38621module_cmds=$lt_module_cmds_CXX
38622module_expsym_cmds=$lt_module_expsym_cmds_CXX
38623
38624# Whether we are building with GNU ld or not.
38625with_gnu_ld=$lt_with_gnu_ld_CXX
38626
38627# Flag that allows shared libraries with undefined symbols to be built.
38628allow_undefined_flag=$lt_allow_undefined_flag_CXX
38629
38630# Flag that enforces no undefined symbols.
38631no_undefined_flag=$lt_no_undefined_flag_CXX
38632
38633# Flag to hardcode \$libdir into a binary during linking.
38634# This must work even if \$libdir does not exist
38635hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38636
cristy73bd4a52010-10-05 11:24:23 +000038637# Whether we need a single "-rpath" flag with a separated argument.
38638hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38639
38640# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38641# DIR into the resulting binary.
38642hardcode_direct=$hardcode_direct_CXX
38643
38644# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38645# DIR into the resulting binary and the resulting library dependency is
38646# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38647# library is relocated.
38648hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38649
38650# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38651# into the resulting binary.
38652hardcode_minus_L=$hardcode_minus_L_CXX
38653
38654# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38655# into the resulting binary.
38656hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38657
38658# Set to "yes" if building a shared library automatically hardcodes DIR
38659# into the library and all subsequent libraries and executables linked
38660# against it.
38661hardcode_automatic=$hardcode_automatic_CXX
38662
38663# Set to yes if linker adds runtime paths of dependent libraries
38664# to runtime path list.
38665inherit_rpath=$inherit_rpath_CXX
38666
38667# Whether libtool must link a program against all its dependency libraries.
38668link_all_deplibs=$link_all_deplibs_CXX
38669
cristy73bd4a52010-10-05 11:24:23 +000038670# Set to "yes" if exported symbols are required.
38671always_export_symbols=$always_export_symbols_CXX
38672
38673# The commands to list exported symbols.
38674export_symbols_cmds=$lt_export_symbols_cmds_CXX
38675
38676# Symbols that should not be listed in the preloaded symbols.
38677exclude_expsyms=$lt_exclude_expsyms_CXX
38678
38679# Symbols that must always be exported.
38680include_expsyms=$lt_include_expsyms_CXX
38681
38682# Commands necessary for linking programs (against libraries) with templates.
38683prelink_cmds=$lt_prelink_cmds_CXX
38684
cristyda16f162011-02-19 23:52:17 +000038685# Commands necessary for finishing linking programs.
38686postlink_cmds=$lt_postlink_cmds_CXX
38687
cristy73bd4a52010-10-05 11:24:23 +000038688# Specify filename containing input files.
38689file_list_spec=$lt_file_list_spec_CXX
38690
38691# How to hardcode a shared library path into an executable.
38692hardcode_action=$hardcode_action_CXX
38693
38694# The directories searched by this compiler when creating a shared library.
38695compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38696
38697# Dependencies to place before and after the objects being linked to
38698# create a shared library.
38699predep_objects=$lt_predep_objects_CXX
38700postdep_objects=$lt_postdep_objects_CXX
38701predeps=$lt_predeps_CXX
38702postdeps=$lt_postdeps_CXX
38703
38704# The library search path used internally by the compiler when linking
38705# a shared library.
38706compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38707
38708# ### END LIBTOOL TAG CONFIG: CXX
38709_LT_EOF
38710
38711 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038712 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038713 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038714 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038715 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38716 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38717
38718 esac
38719done # for ac_tag
38720
38721
cristy8b350f62009-11-15 23:12:43 +000038722as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038723_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038724ac_clean_files=$ac_clean_files_save
38725
38726test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038727 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038728
38729
38730# configure is writing to config.log, and then calls config.status.
38731# config.status does its own redirection, appending to config.log.
38732# Unfortunately, on DOS this fails, as config.log is still kept open
38733# by configure, so config.status won't be able to write to it; its
38734# output is simply discarded. So we exec the FD to /dev/null,
38735# effectively closing config.log, so it can be properly (re)opened and
38736# appended to by config.status. When coming back to configure, we
38737# need to make the FD available again.
38738if test "$no_create" != yes; then
38739 ac_cs_success=:
38740 ac_config_status_args=
38741 test "$silent" = yes &&
38742 ac_config_status_args="$ac_config_status_args --quiet"
38743 exec 5>/dev/null
38744 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38745 exec 5>>config.log
38746 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38747 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038748 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038749fi
38750if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038752$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38753fi
38754
38755
38756rm -f magick-version
38757
cristy430a7312010-01-21 20:44:04 +000038758result_dejavu_font_dir='none'
38759if test "${dejavu_font_dir}x" != 'x'; then
38760 result_dejavu_font_dir=$dejavu_font_dir
38761fi
38762
cristy3ed852e2009-09-05 21:47:34 +000038763result_ghostscript_font_dir='none'
38764if test "${ghostscript_font_dir}x" != 'x'; then
38765 result_ghostscript_font_dir=$ghostscript_font_dir
38766fi
38767
38768result_windows_font_dir='none'
38769if test "${windows_font_dir}x" != 'x'; then
38770 result_windows_font_dir=${windows_font_dir}
38771fi
38772
cristyad38abe2012-12-23 23:03:21 +000038773{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038774ImageMagick is configured as follows. Please verify that this configuration
38775matches your expectations.
38776
38777Host system type: $host
38778Build system type: $build
38779
38780 Option Value
38781-------------------------------------------------------------------------------
38782Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38783Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038784Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038785GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38786Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38787High Dynamic Range Imagery
38788 --enable-hdri=$enable_hdri $enable_hdri
38789
38790Delegate Configuration:
38791BZLIB --with-bzlib=$with_bzlib $have_bzlib
38792Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038793Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038794DJVU --with-djvu=$with_djvu $have_djvu
38795DPS --with-dps=$with_dps $have_dps
38796FFTW --with-fftw=$with_fftw $have_fftw
38797FlashPIX --with-fpx=$with_fpx $have_fpx
38798FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38799FreeType --with-freetype=$with_freetype $have_freetype
38800GhostPCL None $PCLDelegate ($PCLVersion)
38801GhostXPS None $XPSDelegate ($XPSVersion)
38802Ghostscript None $PSDelegate ($GSVersion)
38803Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38804Ghostscript lib --with-gslib=$with_gslib $have_gslib
38805Graphviz --with-gvc=$with_gvc $have_gvc
38806JBIG --with-jbig=$with_jbig $have_jbig
38807JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38808JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038809LCMS v1 --with-lcms=$with_lcms $have_lcms
38810LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038811LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038812LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038813LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038814Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38815OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038816PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038817PERL --with-perl=$with_perl $have_perl
38818PNG --with-png=$with_png $have_png
38819RSVG --with-rsvg=$with_rsvg $have_rsvg
38820TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038821WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038822Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038823WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038824X11 --with-x=$with_x $have_x
38825XML --with-xml=$with_xml $have_xml
38826ZLIB --with-zlib=$with_zlib $have_zlib
38827
38828X11 Configuration:
38829 X_CFLAGS = $X_CFLAGS
38830 X_PRE_LIBS = $X_PRE_LIBS
38831 X_LIBS = $X_LIBS
38832 X_EXTRA_LIBS = $X_EXTRA_LIBS
38833
38834Options used to compile and link:
38835 PREFIX = $PREFIX_DIR
38836 EXEC-PREFIX = $EXEC_PREFIX_DIR
38837 VERSION = $PACKAGE_VERSION
38838 CC = $CC
38839 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038840 CPPFLAGS = $MAGICK_CPPFLAGS
38841 PCFLAGS = $MAGICK_PCFLAGS
38842 DEFS = $DEFS
38843 LDFLAGS = $LDFLAGS
38844 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38845 LIBS = $MAGICK_LIBS
38846 CXX = $CXX
38847 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038848 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038849 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038850" >&5
cristyad38abe2012-12-23 23:03:21 +000038851$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038852ImageMagick is configured as follows. Please verify that this configuration
38853matches your expectations.
38854
38855Host system type: $host
38856Build system type: $build
38857
38858 Option Value
38859-------------------------------------------------------------------------------
38860Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38861Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038862Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038863GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38864Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38865High Dynamic Range Imagery
38866 --enable-hdri=$enable_hdri $enable_hdri
38867
38868Delegate Configuration:
38869BZLIB --with-bzlib=$with_bzlib $have_bzlib
38870Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038871Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038872DJVU --with-djvu=$with_djvu $have_djvu
38873DPS --with-dps=$with_dps $have_dps
38874FFTW --with-fftw=$with_fftw $have_fftw
38875FlashPIX --with-fpx=$with_fpx $have_fpx
38876FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38877FreeType --with-freetype=$with_freetype $have_freetype
38878GhostPCL None $PCLDelegate ($PCLVersion)
38879GhostXPS None $XPSDelegate ($XPSVersion)
38880Ghostscript None $PSDelegate ($GSVersion)
38881Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38882Ghostscript lib --with-gslib=$with_gslib $have_gslib
38883Graphviz --with-gvc=$with_gvc $have_gvc
38884JBIG --with-jbig=$with_jbig $have_jbig
38885JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38886JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038887LCMS v1 --with-lcms=$with_lcms $have_lcms
38888LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038889LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038890LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038891LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038892Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38893OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038894PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038895PERL --with-perl=$with_perl $have_perl
38896PNG --with-png=$with_png $have_png
38897RSVG --with-rsvg=$with_rsvg $have_rsvg
38898TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038899WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038900Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038901WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038902X11 --with-x=$with_x $have_x
38903XML --with-xml=$with_xml $have_xml
38904ZLIB --with-zlib=$with_zlib $have_zlib
38905
38906X11 Configuration:
38907 X_CFLAGS = $X_CFLAGS
38908 X_PRE_LIBS = $X_PRE_LIBS
38909 X_LIBS = $X_LIBS
38910 X_EXTRA_LIBS = $X_EXTRA_LIBS
38911
38912Options used to compile and link:
38913 PREFIX = $PREFIX_DIR
38914 EXEC-PREFIX = $EXEC_PREFIX_DIR
38915 VERSION = $PACKAGE_VERSION
38916 CC = $CC
38917 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038918 CPPFLAGS = $MAGICK_CPPFLAGS
38919 PCFLAGS = $MAGICK_PCFLAGS
38920 DEFS = $DEFS
38921 LDFLAGS = $LDFLAGS
38922 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38923 LIBS = $MAGICK_LIBS
38924 CXX = $CXX
38925 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038926 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038927 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038928" >&6; }