blob: e4ae9c873b44fc211685313bb129743f29ce6231 [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
cristy73bd4a52010-10-05 11:24:23 +0000569lt_ltdl_dir='ltdl'
570
571lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
572
cristy0c60a692010-11-04 01:09:47 +0000573
cristycd4c5312009-11-22 01:19:08 +0000574test -n "$DJDIR" || exec 7<&0 </dev/null
575exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000576
577# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000578# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000579# so uname gets run too.
580ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
582#
583# Initializations.
584#
585ac_default_prefix=/usr/local
586ac_clean_files=
587ac_config_libobj_dir=.
588LIBOBJS=
589cross_compiling=no
590subdirs=
591MFLAGS=
592MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000593
594# Identity of this package.
595PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000596PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000597PACKAGE_VERSION='7.0.0-0'
598PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000599PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000600PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000601
cristy4c08aed2011-07-01 19:47:50 +0000602ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000603ac_config_libobj_dir=ltdl
604# Factoring default headers for most tests.
605ac_includes_default="\
606#include <stdio.h>
607#ifdef HAVE_SYS_TYPES_H
608# include <sys/types.h>
609#endif
610#ifdef HAVE_SYS_STAT_H
611# include <sys/stat.h>
612#endif
613#ifdef STDC_HEADERS
614# include <stdlib.h>
615# include <stddef.h>
616#else
617# ifdef HAVE_STDLIB_H
618# include <stdlib.h>
619# endif
620#endif
621#ifdef HAVE_STRING_H
622# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623# include <memory.h>
624# endif
625# include <string.h>
626#endif
627#ifdef HAVE_STRINGS_H
628# include <strings.h>
629#endif
630#ifdef HAVE_INTTYPES_H
631# include <inttypes.h>
632#endif
633#ifdef HAVE_STDINT_H
634# include <stdint.h>
635#endif
636#ifdef HAVE_UNISTD_H
637# include <unistd.h>
638#endif"
639
cristycd4c5312009-11-22 01:19:08 +0000640ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000641ac_subst_vars='ltdl_LTLIBOBJS
642ltdl_LIBOBJS
643am__EXEEXT_FALSE
644am__EXEEXT_TRUE
645LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000646MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000647MAGICK_LIBS
648MAGICK_LDFLAGS
649MAGICK_PCFLAGS
650MAGICK_CPPFLAGS
651MAGICK_CXXFLAGS
652MAGICK_CFLAGS
653MAGICK_DEP_LIBS
654MAGICK_LTDLDEPS
655MAGICK_LIBLTDL
656OSX_GCOV_LDFLAG
657DELEGATES
658MAGICKCORE_PATH
659PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000660WITH_PERL_DYNAMIC_FALSE
661WITH_PERL_DYNAMIC_TRUE
662WITH_PERL_STATIC_FALSE
663WITH_PERL_STATIC_TRUE
664WITH_PERL_FALSE
665WITH_PERL_TRUE
666PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000667GSVersion
668GSPSDevice
669GSPDFDevice
670GSMonoDevice
671GSEPSDevice
672GSColorDevice
673GSCMYKDevice
674GSAlphaDevice
675XPSVersion
676XPSCMYKDevice
677XPSColorDevice
678XPSMonoDevice
679PCLVersion
680PCLCMYKDevice
681PCLColorDevice
682PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000683ZIP_DELEGATE_FALSE
684ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000685ZIP
cristy73bd4a52010-10-05 11:24:23 +0000686P7ZIP_DELEGATE_FALSE
687P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000688P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000689RPM_DELEGATE_FALSE
690RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000691RPM
692PERL
693TAR
694ShowImageDelegate
695type_include_files
696ghostscript_font_dir
697windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000698dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000699PrintDelegate
700ZipDelegate
701XPSDelegate
702WWWDecodeDelegate
703WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000704UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000705TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000706SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000707SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000708RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000709RMDelegate
710RLEEncodeDelegate
711PSDelegate
712POVDelegate
713PGPDecodeDelegate
714PCLDelegate
715MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000716MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000717MPEGEncodeDelegate
718MPEGDecodeDelegate
719MANDelegate
720LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000721LPRDelegate
722LPDelegate
723ILBMEncodeDelegate
724ILBMDecodeDelegate
725HTMLDecodeDelegate
726HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000727GnuplotDecodeDelegate
728MogrifyDelegate
729DisplayDelegate
730ConvertDelegate
731FIGDecodeDelegate
732EditorDelegate
733EchoDelegate
734DVIDecodeDelegate
735GVCDecodeDelegate
736DNGDecodeDelegate
737CatDelegate
738CGMDecodeDelegate
739BrowseDelegate
740BZIPDelegate
741BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000742AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000743SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000744SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000745CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000746DOCUMENTATION_PATH
747FILTER_PATH
748CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000749LIBRARY_PATH
750EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000751INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000752PERLMAINCC
753XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754XML_DELEGATE_FALSE
755XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000756xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000757WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000758WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000759WMF_DELEGATE_FALSE
760WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000761WEBP_LIBS
762WEBP_DELEGATE_FALSE
763WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000764TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000765TIFF_DELEGATE_FALSE
766TIFF_DELEGATE_TRUE
767CAIRO_DELEGATE_FALSE
768CAIRO_DELEGATE_TRUE
769RSVG_DELEGATE_FALSE
770RSVG_DELEGATE_TRUE
771CAIRO_SVG_LIBS
772CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000773RSVG_LIBS
774RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000775PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000776PNG_DELEGATE_FALSE
777PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000778PANGOCAIRO_DELEGATE_FALSE
779PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000780PANGO_DELEGATE_FALSE
781PANGO_DELEGATE_TRUE
782PANGO_LIBS
783PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000784OPENEXR_DELEGATE_FALSE
785OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786OPENEXR_LIBS
787OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000788LZMA_DELEGATE_FALSE
789LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000790LZMA_LIBS
791LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000792LQR_DELEGATE_FALSE
793LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000794LQR_LIBS
795LQR_CFLAGS
796LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000797LCMS_DELEGATE_FALSE
798LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000800JP2_DELEGATE_FALSE
801JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000803JPEG_DELEGATE_FALSE
804JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000805JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000806JBIG_DELEGATE_FALSE
807JBIG_DELEGATE_TRUE
808GVC_DELEGATE_FALSE
809GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810GVC_LIBS
811GVC_CFLAGS
812GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813GS_DELEGATE_FALSE
814GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816FREETYPE_DELEGATE_FALSE
817FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000818freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000819FONTCONFIG_DELEGATE_FALSE
820FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000821FONTCONFIG_LIBS
822FONTCONFIG_CFLAGS
823FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824FPX_DELEGATE_FALSE
825FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000827FFTW_DELEGATE_FALSE
828FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000829DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000830DJVU_DELEGATE_FALSE
831DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000832DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000833DPS_DELEGATE_FALSE
834DPS_DELEGATE_TRUE
835AUTOTRACE_DELEGATE_FALSE
836AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000837AUTOTRACE_LIBS
838AUTOTRACE_CFLAGS
839LIB_DL
840ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841ZLIB_DELEGATE_FALSE
842ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843XEXT_LIBS
844X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000845X11_DELEGATE_FALSE
846X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000847X_EXTRA_LIBS
848X_LIBS
849X_PRE_LIBS
850X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000851XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000852BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000853BZLIB_DELEGATE_FALSE
854BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000855CCMALLOCDelegate
856UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857HasUMEM_FALSE
858HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859THREAD_LIBS
860GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000861WITH_MAGICK_PLUS_PLUS_FALSE
862WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000863OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000864MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000865POW_LIB
866LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000867UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000868UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000869UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000870UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000871UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000872UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000873INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000874INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000875UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000876UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000877INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000878INT32_T
879UINT16_T
880INT16_T
881UINT8_T
882INT8_T
883LIBRARY_EXTRA_CPPFLAGS
884MODULE_EXTRA_CPPFLAGS
885LIBSTDCLDFLAGS
886PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000887MAGICK_LT_RELEASE_OPTS
cristy3ed852e2009-09-05 21:47:34 +0000888QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000889LEGACY_SUPPORT_FALSE
890LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000891MAINT
892MAINTAINER_MODE_FALSE
893MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000894MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000895WITH_LTDL_FALSE
896WITH_LTDL_TRUE
897WITH_MODULES_FALSE
898WITH_MODULES_TRUE
899WITH_SHARED_LIBS_FALSE
900WITH_SHARED_LIBS_TRUE
901LTDLOPEN
902LT_CONFIG_H
903CONVENIENCE_LTDL_FALSE
904CONVENIENCE_LTDL_TRUE
905INSTALL_LTDL_FALSE
906INSTALL_LTDL_TRUE
907ARGZ_H
908sys_symbol_underscore
909LIBADD_DL
910LT_DLPREOPEN
911LIBADD_DLD_LINK
912LIBADD_SHL_LOAD
913LIBADD_DLOPEN
914LT_DLLOADERS
915INCLTDL
916LTDLINCL
917LTDLDEPS
918LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000919LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000920CXXCPP
921OTOOL64
922OTOOL
923LIPO
924NMEDIT
925DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000926MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000927RANLIB
cristyda16f162011-02-19 23:52:17 +0000928ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000929AR
930NM
931ac_ct_DUMPBIN
932DUMPBIN
933LIBTOOL
934OBJDUMP
935DLLTOOL
936AS
cristy3ed852e2009-09-05 21:47:34 +0000937LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000938CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000939CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000940OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000941PTHREAD_CFLAGS
942PTHREAD_LIBS
943PTHREAD_CC
944ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000945SHAREARCH_DIR
946INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000947WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000948USING_CL_FALSE
949USING_CL_TRUE
950CYGWIN_BUILD_FALSE
951CYGWIN_BUILD_TRUE
952WIN32_NATIVE_BUILD_FALSE
953WIN32_NATIVE_BUILD_TRUE
954WINGDI32_DELEGATE_FALSE
955WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000956GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000957PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000958PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000959LN_S
cristy3ed852e2009-09-05 21:47:34 +0000960LD
cristy73bd4a52010-10-05 11:24:23 +0000961FGREP
962SED
963am__fastdepCXX_FALSE
964am__fastdepCXX_TRUE
965CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000966ac_ct_CXX
967CXXFLAGS
968CXX
cristya0b81c32010-01-22 02:54:33 +0000969EGREP
970GREP
971CPP
cristy73bd4a52010-10-05 11:24:23 +0000972am__fastdepCC_FALSE
973am__fastdepCC_TRUE
974CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000975am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000976AMDEPBACKSLASH
977AMDEP_FALSE
978AMDEP_TRUE
979am__quote
980am__include
981DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000982OBJEXT
983EXEEXT
984ac_ct_CC
985CPPFLAGS
986LDFLAGS
987CFLAGS
988CC
989DIRSEP
990MAGICK_FILTER_MODULE_PATH
991MAGICK_CONFIGURE_BUILD_PATH
992MAGICK_CONFIGURE_SRC_PATH
993MAGICK_CODER_MODULE_PATH
994MAN_DIR
995INFO_DIR
996PERSISTINCLUDE_DIR
997INCLUDE_DIR
998LIB_DIR
999LOCALSTATE_DIR
1000SHAREDSTATE_DIR
1001SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001002DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001003DATA_DIR
1004LIBEXEC_DIR
1005SBIN_DIR
1006BIN_DIR
1007EXEC_PREFIX_DIR
1008PREFIX_DIR
1009CONFIG_STATUS_DEPENDENCIES
1010MAGICK_LIB_VERSION_NUMBER
1011MAGICK_LIB_VERSION_TEXT
1012MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001013AM_BACKSLASH
1014AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001015AM_DEFAULT_V
1016AM_V
cristy73bd4a52010-10-05 11:24:23 +00001017am__untar
1018am__tar
1019AMTAR
1020am__leading_dot
1021SET_MAKE
1022AWK
1023mkdir_p
1024MKDIR_P
1025INSTALL_STRIP_PROGRAM
1026STRIP
1027install_sh
1028MAKEINFO
1029AUTOHEADER
1030AUTOMAKE
1031AUTOCONF
1032ACLOCAL
1033VERSION
1034PACKAGE
1035CYGPATH_W
1036am__isrc
1037INSTALL_DATA
1038INSTALL_SCRIPT
1039INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001040PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001041PACKAGE_RELEASE_DATE
1042PACKAGE_LIB_VERSION_NUMBER
1043PACKAGE_LIB_VERSION
1044PACKAGE_CHANGE_DATE
1045PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001046PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001047MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001048MAGICK_LIBRARY_VERSION_INFO
1049MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001050MAGICK_LIBRARY_AGE
1051MAGICK_LIBRARY_REVISION
1052MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001053MAGICK_TARGET_OS
1054MAGICK_TARGET_VENDOR
1055MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001056target_os
1057target_vendor
1058target_cpu
1059target
1060host_os
1061host_vendor
1062host_cpu
1063host
1064build_os
1065build_vendor
1066build_cpu
1067build
1068CONFIGURE_ARGS
1069DISTCHECK_CONFIG_FLAGS
1070target_alias
1071host_alias
1072build_alias
1073LIBS
1074ECHO_T
1075ECHO_N
1076ECHO_C
1077DEFS
1078mandir
1079localedir
1080libdir
1081psdir
1082pdfdir
1083dvidir
1084htmldir
1085infodir
1086docdir
1087oldincludedir
1088includedir
1089localstatedir
1090sharedstatedir
1091sysconfdir
1092datadir
1093datarootdir
1094libexecdir
1095sbindir
1096bindir
1097program_transform_name
1098prefix
1099exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001100PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001101PACKAGE_BUGREPORT
1102PACKAGE_STRING
1103PACKAGE_VERSION
1104PACKAGE_TARNAME
1105PACKAGE_NAME
1106PATH_SEPARATOR
1107SHELL'
1108ac_subst_files=''
1109ac_user_opts='
1110enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001111enable_silent_rules
1112enable_dependency_tracking
1113with_gnu_ld
1114with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001115with_gcc_arch
cristy3ed852e2009-09-05 21:47:34 +00001116enable_bounds_checking
1117enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001118with_includearch_dir
1119with_sharearch_dir
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
1130with_included_ltdl
1131with_ltdl_include
1132with_ltdl_lib
1133enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001134with_modules
1135enable_delegate_build
1136enable_deprecated
1137enable_installed
1138enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001139enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001140enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001141enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001142enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001143enable_ccmalloc
1144enable_efence
1145enable_prof
1146enable_gprof
1147enable_gcov
1148with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001149enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001150with_quantum_depth
1151with_cache
1152with_frozenpaths
1153with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001154with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001155with_perl
1156with_perl_options
1157with_umem
1158with_libstdc
1159with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001160with_x
cristy3ed852e2009-09-05 21:47:34 +00001161with_zlib
1162with_autotrace
1163with_dps
1164with_djvu
cristy430a7312010-01-21 20:44:04 +00001165with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001166with_fftw
1167with_fpx
1168with_fontconfig
1169with_freetype
1170with_gslib
1171with_fontpath
1172with_gs_font_dir
1173with_gvc
1174with_jbig
1175with_jpeg
1176with_jp2
1177with_lcms
cristy71203402010-06-18 13:12:03 +00001178with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001179with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001180with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001181with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001182with_pango
cristy3ed852e2009-09-05 21:47:34 +00001183with_png
1184with_rsvg
1185with_tiff
cristyb1860752011-03-14 00:27:46 +00001186with_webp
cristy3ed852e2009-09-05 21:47:34 +00001187with_windows_font_dir
1188with_wmf
1189with_xml
1190'
1191 ac_precious_vars='build_alias
1192host_alias
1193target_alias
1194CC
1195CFLAGS
1196LDFLAGS
1197LIBS
1198CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001199CPP
cristy3ed852e2009-09-05 21:47:34 +00001200CXX
1201CXXFLAGS
1202CCC
cristy73bd4a52010-10-05 11:24:23 +00001203PKG_CONFIG
1204CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001205XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001206AUTOTRACE_CFLAGS
1207AUTOTRACE_LIBS
1208FONTCONFIG_CFLAGS
1209FONTCONFIG_LIBS
1210GVC_CFLAGS
1211GVC_LIBS
1212LQR_CFLAGS
1213LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001214LZMA_CFLAGS
1215LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001216OPENEXR_CFLAGS
1217OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001218PANGO_CFLAGS
1219PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001220RSVG_CFLAGS
1221RSVG_LIBS
1222CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001223CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001224
1225
1226# Initialize some variables set by options.
1227ac_init_help=
1228ac_init_version=false
1229ac_unrecognized_opts=
1230ac_unrecognized_sep=
1231# The variables have the same names as the options, with
1232# dashes changed to underlines.
1233cache_file=/dev/null
1234exec_prefix=NONE
1235no_create=
1236no_recursion=
1237prefix=NONE
1238program_prefix=NONE
1239program_suffix=NONE
1240program_transform_name=s,x,x,
1241silent=
1242site=
1243srcdir=
1244verbose=
1245x_includes=NONE
1246x_libraries=NONE
1247
1248# Installation directory options.
1249# These are left unexpanded so users can "make install exec_prefix=/foo"
1250# and all the variables that are supposed to be based on exec_prefix
1251# by default will actually change.
1252# Use braces instead of parens because sh, perl, etc. also accept them.
1253# (The list follows the same order as the GNU Coding Standards.)
1254bindir='${exec_prefix}/bin'
1255sbindir='${exec_prefix}/sbin'
1256libexecdir='${exec_prefix}/libexec'
1257datarootdir='${prefix}/share'
1258datadir='${datarootdir}'
1259sysconfdir='${prefix}/etc'
1260sharedstatedir='${prefix}/com'
1261localstatedir='${prefix}/var'
1262includedir='${prefix}/include'
1263oldincludedir='/usr/include'
1264docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1265infodir='${datarootdir}/info'
1266htmldir='${docdir}'
1267dvidir='${docdir}'
1268pdfdir='${docdir}'
1269psdir='${docdir}'
1270libdir='${exec_prefix}/lib'
1271localedir='${datarootdir}/locale'
1272mandir='${datarootdir}/man'
1273
1274ac_prev=
1275ac_dashdash=
1276for ac_option
1277do
1278 # If the previous option needs an argument, assign it.
1279 if test -n "$ac_prev"; then
1280 eval $ac_prev=\$ac_option
1281 ac_prev=
1282 continue
1283 fi
1284
1285 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001286 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1287 *=) ac_optarg= ;;
1288 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001289 esac
1290
1291 # Accept the important Cygnus configure options, so we can diagnose typos.
1292
1293 case $ac_dashdash$ac_option in
1294 --)
1295 ac_dashdash=yes ;;
1296
1297 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1298 ac_prev=bindir ;;
1299 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1300 bindir=$ac_optarg ;;
1301
1302 -build | --build | --buil | --bui | --bu)
1303 ac_prev=build_alias ;;
1304 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1305 build_alias=$ac_optarg ;;
1306
1307 -cache-file | --cache-file | --cache-fil | --cache-fi \
1308 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1309 ac_prev=cache_file ;;
1310 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1311 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1312 cache_file=$ac_optarg ;;
1313
1314 --config-cache | -C)
1315 cache_file=config.cache ;;
1316
1317 -datadir | --datadir | --datadi | --datad)
1318 ac_prev=datadir ;;
1319 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1320 datadir=$ac_optarg ;;
1321
1322 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1323 | --dataroo | --dataro | --datar)
1324 ac_prev=datarootdir ;;
1325 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1326 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1327 datarootdir=$ac_optarg ;;
1328
1329 -disable-* | --disable-*)
1330 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001333 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1337 *"
1338"enable_$ac_useropt"
1339"*) ;;
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
1342 esac
1343 eval enable_$ac_useropt=no ;;
1344
1345 -docdir | --docdir | --docdi | --doc | --do)
1346 ac_prev=docdir ;;
1347 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1348 docdir=$ac_optarg ;;
1349
1350 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1351 ac_prev=dvidir ;;
1352 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1353 dvidir=$ac_optarg ;;
1354
1355 -enable-* | --enable-*)
1356 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001359 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1363 *"
1364"enable_$ac_useropt"
1365"*) ;;
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1368 esac
1369 eval enable_$ac_useropt=\$ac_optarg ;;
1370
1371 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1372 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1373 | --exec | --exe | --ex)
1374 ac_prev=exec_prefix ;;
1375 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1376 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1377 | --exec=* | --exe=* | --ex=*)
1378 exec_prefix=$ac_optarg ;;
1379
1380 -gas | --gas | --ga | --g)
1381 # Obsolete; use --with-gas.
1382 with_gas=yes ;;
1383
1384 -help | --help | --hel | --he | -h)
1385 ac_init_help=long ;;
1386 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1387 ac_init_help=recursive ;;
1388 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1389 ac_init_help=short ;;
1390
1391 -host | --host | --hos | --ho)
1392 ac_prev=host_alias ;;
1393 -host=* | --host=* | --hos=* | --ho=*)
1394 host_alias=$ac_optarg ;;
1395
1396 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1397 ac_prev=htmldir ;;
1398 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1399 | --ht=*)
1400 htmldir=$ac_optarg ;;
1401
1402 -includedir | --includedir | --includedi | --included | --include \
1403 | --includ | --inclu | --incl | --inc)
1404 ac_prev=includedir ;;
1405 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1406 | --includ=* | --inclu=* | --incl=* | --inc=*)
1407 includedir=$ac_optarg ;;
1408
1409 -infodir | --infodir | --infodi | --infod | --info | --inf)
1410 ac_prev=infodir ;;
1411 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1412 infodir=$ac_optarg ;;
1413
1414 -libdir | --libdir | --libdi | --libd)
1415 ac_prev=libdir ;;
1416 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1417 libdir=$ac_optarg ;;
1418
1419 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1420 | --libexe | --libex | --libe)
1421 ac_prev=libexecdir ;;
1422 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1423 | --libexe=* | --libex=* | --libe=*)
1424 libexecdir=$ac_optarg ;;
1425
1426 -localedir | --localedir | --localedi | --localed | --locale)
1427 ac_prev=localedir ;;
1428 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1429 localedir=$ac_optarg ;;
1430
1431 -localstatedir | --localstatedir | --localstatedi | --localstated \
1432 | --localstate | --localstat | --localsta | --localst | --locals)
1433 ac_prev=localstatedir ;;
1434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1435 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1436 localstatedir=$ac_optarg ;;
1437
1438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1439 ac_prev=mandir ;;
1440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1441 mandir=$ac_optarg ;;
1442
1443 -nfp | --nfp | --nf)
1444 # Obsolete; use --without-fp.
1445 with_fp=no ;;
1446
1447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1448 | --no-cr | --no-c | -n)
1449 no_create=yes ;;
1450
1451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1453 no_recursion=yes ;;
1454
1455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1457 | --oldin | --oldi | --old | --ol | --o)
1458 ac_prev=oldincludedir ;;
1459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1462 oldincludedir=$ac_optarg ;;
1463
1464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1465 ac_prev=prefix ;;
1466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1467 prefix=$ac_optarg ;;
1468
1469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1470 | --program-pre | --program-pr | --program-p)
1471 ac_prev=program_prefix ;;
1472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1474 program_prefix=$ac_optarg ;;
1475
1476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1477 | --program-suf | --program-su | --program-s)
1478 ac_prev=program_suffix ;;
1479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1481 program_suffix=$ac_optarg ;;
1482
1483 -program-transform-name | --program-transform-name \
1484 | --program-transform-nam | --program-transform-na \
1485 | --program-transform-n | --program-transform- \
1486 | --program-transform | --program-transfor \
1487 | --program-transfo | --program-transf \
1488 | --program-trans | --program-tran \
1489 | --progr-tra | --program-tr | --program-t)
1490 ac_prev=program_transform_name ;;
1491 -program-transform-name=* | --program-transform-name=* \
1492 | --program-transform-nam=* | --program-transform-na=* \
1493 | --program-transform-n=* | --program-transform-=* \
1494 | --program-transform=* | --program-transfor=* \
1495 | --program-transfo=* | --program-transf=* \
1496 | --program-trans=* | --program-tran=* \
1497 | --progr-tra=* | --program-tr=* | --program-t=*)
1498 program_transform_name=$ac_optarg ;;
1499
1500 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1501 ac_prev=pdfdir ;;
1502 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1503 pdfdir=$ac_optarg ;;
1504
1505 -psdir | --psdir | --psdi | --psd | --ps)
1506 ac_prev=psdir ;;
1507 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1508 psdir=$ac_optarg ;;
1509
1510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1511 | -silent | --silent | --silen | --sile | --sil)
1512 silent=yes ;;
1513
1514 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1515 ac_prev=sbindir ;;
1516 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1517 | --sbi=* | --sb=*)
1518 sbindir=$ac_optarg ;;
1519
1520 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1521 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1522 | --sharedst | --shareds | --shared | --share | --shar \
1523 | --sha | --sh)
1524 ac_prev=sharedstatedir ;;
1525 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1526 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1527 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1528 | --sha=* | --sh=*)
1529 sharedstatedir=$ac_optarg ;;
1530
1531 -site | --site | --sit)
1532 ac_prev=site ;;
1533 -site=* | --site=* | --sit=*)
1534 site=$ac_optarg ;;
1535
1536 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1537 ac_prev=srcdir ;;
1538 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1539 srcdir=$ac_optarg ;;
1540
1541 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1542 | --syscon | --sysco | --sysc | --sys | --sy)
1543 ac_prev=sysconfdir ;;
1544 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1545 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1546 sysconfdir=$ac_optarg ;;
1547
1548 -target | --target | --targe | --targ | --tar | --ta | --t)
1549 ac_prev=target_alias ;;
1550 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1551 target_alias=$ac_optarg ;;
1552
1553 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1554 verbose=yes ;;
1555
1556 -version | --version | --versio | --versi | --vers | -V)
1557 ac_init_version=: ;;
1558
1559 -with-* | --with-*)
1560 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1561 # Reject names that are not valid shell variable names.
1562 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001563 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001564 ac_useropt_orig=$ac_useropt
1565 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1566 case $ac_user_opts in
1567 *"
1568"with_$ac_useropt"
1569"*) ;;
1570 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1571 ac_unrecognized_sep=', ';;
1572 esac
1573 eval with_$ac_useropt=\$ac_optarg ;;
1574
1575 -without-* | --without-*)
1576 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1577 # Reject names that are not valid shell variable names.
1578 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001579 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001580 ac_useropt_orig=$ac_useropt
1581 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1582 case $ac_user_opts in
1583 *"
1584"with_$ac_useropt"
1585"*) ;;
1586 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1587 ac_unrecognized_sep=', ';;
1588 esac
1589 eval with_$ac_useropt=no ;;
1590
1591 --x)
1592 # Obsolete; use --with-x.
1593 with_x=yes ;;
1594
1595 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1596 | --x-incl | --x-inc | --x-in | --x-i)
1597 ac_prev=x_includes ;;
1598 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1599 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1600 x_includes=$ac_optarg ;;
1601
1602 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1603 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1604 ac_prev=x_libraries ;;
1605 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1606 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1607 x_libraries=$ac_optarg ;;
1608
cristy98dddb52010-11-04 00:30:15 +00001609 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1610Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001611 ;;
1612
1613 *=*)
1614 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1615 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001616 case $ac_envvar in #(
1617 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001618 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001619 esac
cristy3ed852e2009-09-05 21:47:34 +00001620 eval $ac_envvar=\$ac_optarg
1621 export $ac_envvar ;;
1622
1623 *)
1624 # FIXME: should be removed in autoconf 3.0.
1625 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1626 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1627 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001628 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001629 ;;
1630
1631 esac
1632done
1633
1634if test -n "$ac_prev"; then
1635 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001636 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001637fi
1638
1639if test -n "$ac_unrecognized_opts"; then
1640 case $enable_option_checking in
1641 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001642 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001643 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1644 esac
1645fi
1646
1647# Check all directory arguments for consistency.
1648for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1649 datadir sysconfdir sharedstatedir localstatedir includedir \
1650 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1651 libdir localedir mandir
1652do
1653 eval ac_val=\$$ac_var
1654 # Remove trailing slashes.
1655 case $ac_val in
1656 */ )
1657 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1658 eval $ac_var=\$ac_val;;
1659 esac
1660 # Be sure to have absolute directory names.
1661 case $ac_val in
1662 [\\/$]* | ?:[\\/]* ) continue;;
1663 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1664 esac
cristy98dddb52010-11-04 00:30:15 +00001665 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001666done
1667
1668# There might be people who depend on the old broken behavior: `$host'
1669# used to hold the argument of --host etc.
1670# FIXME: To remove some day.
1671build=$build_alias
1672host=$host_alias
1673target=$target_alias
1674
1675# FIXME: To remove some day.
1676if test "x$host_alias" != x; then
1677 if test "x$build_alias" = x; then
1678 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001679 elif test "x$build_alias" != "x$host_alias"; then
1680 cross_compiling=yes
1681 fi
1682fi
1683
1684ac_tool_prefix=
1685test -n "$host_alias" && ac_tool_prefix=$host_alias-
1686
1687test "$silent" = yes && exec 6>/dev/null
1688
1689
1690ac_pwd=`pwd` && test -n "$ac_pwd" &&
1691ac_ls_di=`ls -di .` &&
1692ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001693 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001694test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001695 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001696
1697
1698# Find the source files, if location was not specified.
1699if test -z "$srcdir"; then
1700 ac_srcdir_defaulted=yes
1701 # Try the directory containing this script, then the parent directory.
1702 ac_confdir=`$as_dirname -- "$as_myself" ||
1703$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1704 X"$as_myself" : 'X\(//\)[^/]' \| \
1705 X"$as_myself" : 'X\(//\)$' \| \
1706 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1707$as_echo X"$as_myself" |
1708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1709 s//\1/
1710 q
1711 }
1712 /^X\(\/\/\)[^/].*/{
1713 s//\1/
1714 q
1715 }
1716 /^X\(\/\/\)$/{
1717 s//\1/
1718 q
1719 }
1720 /^X\(\/\).*/{
1721 s//\1/
1722 q
1723 }
1724 s/.*/./; q'`
1725 srcdir=$ac_confdir
1726 if test ! -r "$srcdir/$ac_unique_file"; then
1727 srcdir=..
1728 fi
1729else
1730 ac_srcdir_defaulted=no
1731fi
1732if test ! -r "$srcdir/$ac_unique_file"; then
1733 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001734 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001735fi
1736ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1737ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001738 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001739 pwd)`
1740# When building in place, set srcdir=.
1741if test "$ac_abs_confdir" = "$ac_pwd"; then
1742 srcdir=.
1743fi
1744# Remove unnecessary trailing slashes from srcdir.
1745# Double slashes in file names in object file debugging info
1746# mess up M-x gdb in Emacs.
1747case $srcdir in
1748*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1749esac
1750for ac_var in $ac_precious_vars; do
1751 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1752 eval ac_env_${ac_var}_value=\$${ac_var}
1753 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1754 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1755done
1756
1757#
1758# Report the --help message.
1759#
1760if test "$ac_init_help" = "long"; then
1761 # Omit some internal or obsolete options to make the list less imposing.
1762 # This message is too long to be a string in the A/UX 3.1 sh.
1763 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001764\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001765
1766Usage: $0 [OPTION]... [VAR=VALUE]...
1767
1768To assign environment variables (e.g., CC, CFLAGS...), specify them as
1769VAR=VALUE. See below for descriptions of some of the useful variables.
1770
1771Defaults for the options are specified in brackets.
1772
1773Configuration:
1774 -h, --help display this help and exit
1775 --help=short display options specific to this package
1776 --help=recursive display the short help of all the included packages
1777 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001778 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001779 --cache-file=FILE cache test results in FILE [disabled]
1780 -C, --config-cache alias for \`--cache-file=config.cache'
1781 -n, --no-create do not create output files
1782 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1783
1784Installation directories:
1785 --prefix=PREFIX install architecture-independent files in PREFIX
1786 [$ac_default_prefix]
1787 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1788 [PREFIX]
1789
1790By default, \`make install' will install all the files in
1791\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1792an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1793for instance \`--prefix=\$HOME'.
1794
1795For better control, use the options below.
1796
1797Fine tuning of the installation directories:
1798 --bindir=DIR user executables [EPREFIX/bin]
1799 --sbindir=DIR system admin executables [EPREFIX/sbin]
1800 --libexecdir=DIR program executables [EPREFIX/libexec]
1801 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1802 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1803 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1804 --libdir=DIR object code libraries [EPREFIX/lib]
1805 --includedir=DIR C header files [PREFIX/include]
1806 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1807 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1808 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1809 --infodir=DIR info documentation [DATAROOTDIR/info]
1810 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1811 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001812 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001813 --htmldir=DIR html documentation [DOCDIR]
1814 --dvidir=DIR dvi documentation [DOCDIR]
1815 --pdfdir=DIR pdf documentation [DOCDIR]
1816 --psdir=DIR ps documentation [DOCDIR]
1817_ACEOF
1818
1819 cat <<\_ACEOF
1820
cristy73bd4a52010-10-05 11:24:23 +00001821Program names:
1822 --program-prefix=PREFIX prepend PREFIX to installed program names
1823 --program-suffix=SUFFIX append SUFFIX to installed program names
1824 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1825
cristy3ed852e2009-09-05 21:47:34 +00001826X features:
1827 --x-includes=DIR X include files are in DIR
1828 --x-libraries=DIR X library files are in DIR
1829
1830System types:
1831 --build=BUILD configure for building on BUILD [guessed]
1832 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1833 --target=TARGET configure for building compilers for TARGET [HOST]
1834_ACEOF
1835fi
1836
1837if test -n "$ac_init_help"; then
1838 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001839 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001840 esac
1841 cat <<\_ACEOF
1842
1843Optional Features:
1844 --disable-option-checking ignore unrecognized --enable/--with options
1845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001847 --enable-silent-rules less verbose build output (undo: "make V=1")
1848 --disable-silent-rules verbose build output (undo: "make V=0")
1849 --enable-dependency-tracking
1850 do not reject slow dependency extractors
1851 --disable-dependency-tracking
1852 speeds up one-time build
cristya3824692012-03-30 17:22:07 +00001853 --enable-bounds-checking
1854 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001855 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001856 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001857 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001858 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001859 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001860 --enable-shared[=PKGS] build shared libraries [default=yes]
1861 --enable-static[=PKGS] build static libraries [default=yes]
1862 --enable-fast-install[=PKGS]
1863 optimize for fast installation [default=yes]
1864 --disable-libtool-lock avoid locking (might break parallel builds)
1865 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001866 --enable-delegate-build look for delegate libraries in build directory
1867 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001868 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001869 --disable-installed Formally install ImageMagick under PREFIX
1870 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001871 --enable-zero-configuration
1872 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001873 zero-configuration ImageMagick
cristy191c0b72012-08-12 16:29:52 +00001874 --disable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001875 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001876 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001877 --enable-maintainer-mode
1878 enable make rules and dependencies not useful (and
1879 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001880 --enable-ccmalloc enable 'ccmalloc' memory debug support
1881 --enable-efence enable 'efence' memory debug support
1882 --enable-prof enable 'prof' profiling support
1883 --enable-gprof enable 'gprof' profiling support
1884 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001885 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001886 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001887
1888Optional Packages:
1889 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1890 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001891 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001892 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001893 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1894 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001895 --includearch-dir=DIR ARCH specific include directory
1896 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001897 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001898 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001899 both]
cristyda16f162011-02-19 23:52:17 +00001900 --with-sysroot=DIR Search for dependent libraries within DIR
1901 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001902 --with-included-ltdl use the GNU ltdl sources included here
1903 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1904 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
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
cristy3ed852e2009-09-05 21:47:34 +00001935 --without-gslib enable Ghostscript library support
1936 --with-fontpath=DIR prepend to default font search path
1937 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001938 --with-gvc disable 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
cristy1164d5f2012-08-15 00:58:25 +00001949 --without-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
1979 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1980 GVC_LIBS linker flags for GVC, overriding pkg-config
1981 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1982 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001983 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1984 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001985 OPENEXR_CFLAGS
1986 C compiler flags for OPENEXR, overriding pkg-config
1987 OPENEXR_LIBS
1988 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001989 PANGO_CFLAGS
1990 C compiler flags for PANGO, overriding pkg-config
1991 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001992 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1993 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1994 CAIRO_SVG_CFLAGS
1995 C compiler flags for CAIRO_SVG, overriding pkg-config
1996 CAIRO_SVG_LIBS
1997 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001998
1999Use these variables to override the choices made by `configure' or to help
2000it to find libraries and programs with nonstandard names/locations.
2001
2002Report bugs to <http://www.imagemagick.org>.
2003_ACEOF
2004ac_status=$?
2005fi
2006
2007if test "$ac_init_help" = "recursive"; then
2008 # If there are subdirs, report their specific --help.
2009 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2010 test -d "$ac_dir" ||
2011 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2012 continue
2013 ac_builddir=.
2014
2015case "$ac_dir" in
2016.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2017*)
2018 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2019 # A ".." for each directory in $ac_dir_suffix.
2020 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2021 case $ac_top_builddir_sub in
2022 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2023 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2024 esac ;;
2025esac
2026ac_abs_top_builddir=$ac_pwd
2027ac_abs_builddir=$ac_pwd$ac_dir_suffix
2028# for backward compatibility:
2029ac_top_builddir=$ac_top_build_prefix
2030
2031case $srcdir in
2032 .) # We are building in place.
2033 ac_srcdir=.
2034 ac_top_srcdir=$ac_top_builddir_sub
2035 ac_abs_top_srcdir=$ac_pwd ;;
2036 [\\/]* | ?:[\\/]* ) # Absolute name.
2037 ac_srcdir=$srcdir$ac_dir_suffix;
2038 ac_top_srcdir=$srcdir
2039 ac_abs_top_srcdir=$srcdir ;;
2040 *) # Relative name.
2041 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2042 ac_top_srcdir=$ac_top_build_prefix$srcdir
2043 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2044esac
2045ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2046
2047 cd "$ac_dir" || { ac_status=$?; continue; }
2048 # Check for guested configure.
2049 if test -f "$ac_srcdir/configure.gnu"; then
2050 echo &&
2051 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2052 elif test -f "$ac_srcdir/configure"; then
2053 echo &&
2054 $SHELL "$ac_srcdir/configure" --help=recursive
2055 else
2056 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2057 fi || ac_status=$?
2058 cd "$ac_pwd" || { ac_status=$?; break; }
2059 done
2060fi
2061
2062test -n "$ac_init_help" && exit $ac_status
2063if $ac_init_version; then
2064 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002065ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002066generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002067
cristy14fefe52012-05-21 00:59:18 +00002068Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002069This configure script is free software; the Free Software Foundation
2070gives unlimited permission to copy, distribute and modify it.
2071_ACEOF
2072 exit
2073fi
cristy8b350f62009-11-15 23:12:43 +00002074
2075## ------------------------ ##
2076## Autoconf initialization. ##
2077## ------------------------ ##
2078
2079# ac_fn_c_try_compile LINENO
2080# --------------------------
2081# Try to compile conftest.$ac_ext, and return whether this succeeded.
2082ac_fn_c_try_compile ()
2083{
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 rm -f conftest.$ac_objext
2086 if { { ac_try="$ac_compile"
2087case "(($ac_try" in
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2090esac
2091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092$as_echo "$ac_try_echo"; } >&5
2093 (eval "$ac_compile") 2>conftest.err
2094 ac_status=$?
2095 if test -s conftest.err; then
2096 grep -v '^ *+' conftest.err >conftest.er1
2097 cat conftest.er1 >&5
2098 mv -f conftest.er1 conftest.err
2099 fi
2100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101 test $ac_status = 0; } && {
2102 test -z "$ac_c_werror_flag" ||
2103 test ! -s conftest.err
2104 } && test -s conftest.$ac_objext; then :
2105 ac_retval=0
2106else
2107 $as_echo "$as_me: failed program was:" >&5
2108sed 's/^/| /' conftest.$ac_ext >&5
2109
2110 ac_retval=1
2111fi
cristyda16f162011-02-19 23:52:17 +00002112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002113 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002114
2115} # ac_fn_c_try_compile
2116
cristy95646052009-11-28 23:05:30 +00002117# ac_fn_c_try_cpp LINENO
2118# ----------------------
2119# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2120ac_fn_c_try_cpp ()
2121{
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 if { { ac_try="$ac_cpp conftest.$ac_ext"
2124case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2127esac
2128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129$as_echo "$ac_try_echo"; } >&5
2130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2131 ac_status=$?
2132 if test -s conftest.err; then
2133 grep -v '^ *+' conftest.err >conftest.er1
2134 cat conftest.er1 >&5
2135 mv -f conftest.er1 conftest.err
2136 fi
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002138 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2140 test ! -s conftest.err
2141 }; then :
2142 ac_retval=0
2143else
2144 $as_echo "$as_me: failed program was:" >&5
2145sed 's/^/| /' conftest.$ac_ext >&5
2146
2147 ac_retval=1
2148fi
cristyda16f162011-02-19 23:52:17 +00002149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002150 as_fn_set_status $ac_retval
2151
2152} # ac_fn_c_try_cpp
2153
cristy8b350f62009-11-15 23:12:43 +00002154# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2155# -------------------------------------------------------
2156# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2157# the include files in INCLUDES and setting the cache variable VAR
2158# accordingly.
2159ac_fn_c_check_header_mongrel ()
2160{
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002162 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002165if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002166 $as_echo_n "(cached) " >&6
2167fi
2168eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170$as_echo "$ac_res" >&6; }
2171else
2172 # Is the header compilable?
2173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2174$as_echo_n "checking $2 usability... " >&6; }
2175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176/* end confdefs.h. */
2177$4
2178#include <$2>
2179_ACEOF
2180if ac_fn_c_try_compile "$LINENO"; then :
2181 ac_header_compiler=yes
2182else
2183 ac_header_compiler=no
2184fi
2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2187$as_echo "$ac_header_compiler" >&6; }
2188
2189# Is the header present?
2190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2191$as_echo_n "checking $2 presence... " >&6; }
2192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193/* end confdefs.h. */
2194#include <$2>
2195_ACEOF
2196if ac_fn_c_try_cpp "$LINENO"; then :
2197 ac_header_preproc=yes
2198else
2199 ac_header_preproc=no
2200fi
cristyda16f162011-02-19 23:52:17 +00002201rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2203$as_echo "$ac_header_preproc" >&6; }
2204
2205# So? What about this header?
2206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2207 yes:no: )
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2209$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2211$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2212 ;;
2213 no:yes:* )
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2215$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2217$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2219$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2221$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2223$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002224( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002225## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002226## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002227 ) | sed "s/^/$as_me: WARNING: /" >&2
2228 ;;
2229esac
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002232if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002233 $as_echo_n "(cached) " >&6
2234else
2235 eval "$3=\$ac_header_compiler"
2236fi
2237eval ac_res=\$$3
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2239$as_echo "$ac_res" >&6; }
2240fi
cristyda16f162011-02-19 23:52:17 +00002241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002242
2243} # ac_fn_c_check_header_mongrel
2244
2245# ac_fn_c_try_run LINENO
2246# ----------------------
2247# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2248# that executables *can* be run.
2249ac_fn_c_try_run ()
2250{
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 if { { ac_try="$ac_link"
2253case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2256esac
2257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258$as_echo "$ac_try_echo"; } >&5
2259 (eval "$ac_link") 2>&5
2260 ac_status=$?
2261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2262 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2263 { { case "(($ac_try" in
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2266esac
2267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2268$as_echo "$ac_try_echo"; } >&5
2269 (eval "$ac_try") 2>&5
2270 ac_status=$?
2271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2272 test $ac_status = 0; }; }; then :
2273 ac_retval=0
2274else
2275 $as_echo "$as_me: program exited with status $ac_status" >&5
2276 $as_echo "$as_me: failed program was:" >&5
2277sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 ac_retval=$ac_status
2280fi
2281 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002283 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002284
2285} # ac_fn_c_try_run
2286
2287# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2288# -------------------------------------------------------
2289# Tests whether HEADER exists and can be compiled using the include files in
2290# INCLUDES, setting the cache variable VAR accordingly.
2291ac_fn_c_check_header_compile ()
2292{
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2295$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002296if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002297 $as_echo_n "(cached) " >&6
2298else
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300/* end confdefs.h. */
2301$4
2302#include <$2>
2303_ACEOF
2304if ac_fn_c_try_compile "$LINENO"; then :
2305 eval "$3=yes"
2306else
2307 eval "$3=no"
2308fi
2309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310fi
2311eval ac_res=\$$3
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2313$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002315
2316} # ac_fn_c_check_header_compile
2317
cristya0b81c32010-01-22 02:54:33 +00002318# ac_fn_cxx_try_compile LINENO
2319# ----------------------------
2320# Try to compile conftest.$ac_ext, and return whether this succeeded.
2321ac_fn_cxx_try_compile ()
2322{
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 rm -f conftest.$ac_objext
2325 if { { ac_try="$ac_compile"
2326case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329esac
2330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2331$as_echo "$ac_try_echo"; } >&5
2332 (eval "$ac_compile") 2>conftest.err
2333 ac_status=$?
2334 if test -s conftest.err; then
2335 grep -v '^ *+' conftest.err >conftest.er1
2336 cat conftest.er1 >&5
2337 mv -f conftest.er1 conftest.err
2338 fi
2339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340 test $ac_status = 0; } && {
2341 test -z "$ac_cxx_werror_flag" ||
2342 test ! -s conftest.err
2343 } && test -s conftest.$ac_objext; then :
2344 ac_retval=0
2345else
2346 $as_echo "$as_me: failed program was:" >&5
2347sed 's/^/| /' conftest.$ac_ext >&5
2348
2349 ac_retval=1
2350fi
cristyda16f162011-02-19 23:52:17 +00002351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002352 as_fn_set_status $ac_retval
2353
2354} # ac_fn_cxx_try_compile
2355
cristy8b350f62009-11-15 23:12:43 +00002356# ac_fn_c_try_link LINENO
2357# -----------------------
2358# Try to link conftest.$ac_ext, and return whether this succeeded.
2359ac_fn_c_try_link ()
2360{
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 rm -f conftest.$ac_objext conftest$ac_exeext
2363 if { { ac_try="$ac_link"
2364case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367esac
2368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369$as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_link") 2>conftest.err
2371 ac_status=$?
2372 if test -s conftest.err; then
2373 grep -v '^ *+' conftest.err >conftest.er1
2374 cat conftest.er1 >&5
2375 mv -f conftest.er1 conftest.err
2376 fi
2377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2378 test $ac_status = 0; } && {
2379 test -z "$ac_c_werror_flag" ||
2380 test ! -s conftest.err
2381 } && test -s conftest$ac_exeext && {
2382 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002383 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002384 }; then :
2385 ac_retval=0
2386else
2387 $as_echo "$as_me: failed program was:" >&5
2388sed 's/^/| /' conftest.$ac_ext >&5
2389
2390 ac_retval=1
2391fi
2392 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2393 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2394 # interfere with the next link command; also delete a directory that is
2395 # left behind by Apple's compiler. We do this before executing the actions.
2396 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002398 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002399
2400} # ac_fn_c_try_link
2401
cristy73bd4a52010-10-05 11:24:23 +00002402# ac_fn_c_check_func LINENO FUNC VAR
2403# ----------------------------------
2404# Tests whether FUNC exists, setting the cache variable VAR accordingly
2405ac_fn_c_check_func ()
2406{
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2409$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002410if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002411 $as_echo_n "(cached) " >&6
2412else
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414/* end confdefs.h. */
2415/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2417#define $2 innocuous_$2
2418
2419/* System header to define __stub macros and hopefully few prototypes,
2420 which can conflict with char $2 (); below.
2421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2422 <limits.h> exists even on freestanding compilers. */
2423
2424#ifdef __STDC__
2425# include <limits.h>
2426#else
2427# include <assert.h>
2428#endif
2429
2430#undef $2
2431
2432/* Override any GCC internal prototype to avoid an error.
2433 Use char because int might match the return type of a GCC
2434 builtin and then its argument prototype would still apply. */
2435#ifdef __cplusplus
2436extern "C"
2437#endif
2438char $2 ();
2439/* The GNU C library defines this for functions which it implements
2440 to always fail with ENOSYS. Some functions are actually named
2441 something starting with __ and the normal name is an alias. */
2442#if defined __stub_$2 || defined __stub___$2
2443choke me
2444#endif
2445
2446int
2447main ()
2448{
2449return $2 ();
2450 ;
2451 return 0;
2452}
2453_ACEOF
2454if ac_fn_c_try_link "$LINENO"; then :
2455 eval "$3=yes"
2456else
2457 eval "$3=no"
2458fi
2459rm -f core conftest.err conftest.$ac_objext \
2460 conftest$ac_exeext conftest.$ac_ext
2461fi
2462eval ac_res=\$$3
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002466
2467} # ac_fn_c_check_func
2468
2469# ac_fn_cxx_try_cpp LINENO
2470# ------------------------
2471# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2472ac_fn_cxx_try_cpp ()
2473{
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 if { { ac_try="$ac_cpp conftest.$ac_ext"
2476case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479esac
2480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2481$as_echo "$ac_try_echo"; } >&5
2482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2483 ac_status=$?
2484 if test -s conftest.err; then
2485 grep -v '^ *+' conftest.err >conftest.er1
2486 cat conftest.er1 >&5
2487 mv -f conftest.er1 conftest.err
2488 fi
2489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002490 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002491 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2492 test ! -s conftest.err
2493 }; then :
2494 ac_retval=0
2495else
2496 $as_echo "$as_me: failed program was:" >&5
2497sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 ac_retval=1
2500fi
cristyda16f162011-02-19 23:52:17 +00002501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002502 as_fn_set_status $ac_retval
2503
2504} # ac_fn_cxx_try_cpp
2505
2506# ac_fn_cxx_try_link LINENO
2507# -------------------------
2508# Try to link conftest.$ac_ext, and return whether this succeeded.
2509ac_fn_cxx_try_link ()
2510{
2511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512 rm -f conftest.$ac_objext conftest$ac_exeext
2513 if { { ac_try="$ac_link"
2514case "(($ac_try" in
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2517esac
2518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2519$as_echo "$ac_try_echo"; } >&5
2520 (eval "$ac_link") 2>conftest.err
2521 ac_status=$?
2522 if test -s conftest.err; then
2523 grep -v '^ *+' conftest.err >conftest.er1
2524 cat conftest.er1 >&5
2525 mv -f conftest.er1 conftest.err
2526 fi
2527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2528 test $ac_status = 0; } && {
2529 test -z "$ac_cxx_werror_flag" ||
2530 test ! -s conftest.err
2531 } && test -s conftest$ac_exeext && {
2532 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002533 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002534 }; then :
2535 ac_retval=0
2536else
2537 $as_echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_retval=1
2541fi
2542 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2543 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2544 # interfere with the next link command; also delete a directory that is
2545 # left behind by Apple's compiler. We do this before executing the actions.
2546 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002548 as_fn_set_status $ac_retval
2549
2550} # ac_fn_cxx_try_link
2551
cristy98dddb52010-11-04 00:30:15 +00002552# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2553# ---------------------------------------------
2554# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2555# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002556ac_fn_c_check_decl ()
2557{
2558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002559 as_decl_name=`echo $2|sed 's/ *(.*//'`
2560 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2562$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002563if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002564 $as_echo_n "(cached) " >&6
2565else
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567/* end confdefs.h. */
2568$4
2569int
2570main ()
2571{
cristy98dddb52010-11-04 00:30:15 +00002572#ifndef $as_decl_name
2573#ifdef __cplusplus
2574 (void) $as_decl_use;
2575#else
2576 (void) $as_decl_name;
2577#endif
cristy73bd4a52010-10-05 11:24:23 +00002578#endif
2579
2580 ;
2581 return 0;
2582}
2583_ACEOF
2584if ac_fn_c_try_compile "$LINENO"; then :
2585 eval "$3=yes"
2586else
2587 eval "$3=no"
2588fi
2589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590fi
2591eval ac_res=\$$3
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2593$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002595
2596} # ac_fn_c_check_decl
2597
cristy8b350f62009-11-15 23:12:43 +00002598# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2599# -------------------------------------------
2600# Tests whether TYPE exists after having included INCLUDES, setting cache
2601# variable VAR accordingly.
2602ac_fn_c_check_type ()
2603{
2604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2606$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002607if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002608 $as_echo_n "(cached) " >&6
2609else
2610 eval "$3=no"
2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612/* end confdefs.h. */
2613$4
2614int
2615main ()
2616{
2617if (sizeof ($2))
2618 return 0;
2619 ;
2620 return 0;
2621}
2622_ACEOF
2623if ac_fn_c_try_compile "$LINENO"; then :
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625/* end confdefs.h. */
2626$4
2627int
2628main ()
2629{
2630if (sizeof (($2)))
2631 return 0;
2632 ;
2633 return 0;
2634}
2635_ACEOF
2636if ac_fn_c_try_compile "$LINENO"; then :
2637
2638else
2639 eval "$3=yes"
2640fi
2641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642fi
2643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644fi
2645eval ac_res=\$$3
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2647$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002649
2650} # ac_fn_c_check_type
2651
cristy92703d82010-04-26 00:18:18 +00002652# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2653# ----------------------------------------------------
2654# Tries to find if the field MEMBER exists in type AGGR, after including
2655# INCLUDES, setting cache variable VAR accordingly.
2656ac_fn_c_check_member ()
2657{
2658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2660$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002661if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002662 $as_echo_n "(cached) " >&6
2663else
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665/* end confdefs.h. */
2666$5
2667int
2668main ()
2669{
2670static $2 ac_aggr;
2671if (ac_aggr.$3)
2672return 0;
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677if ac_fn_c_try_compile "$LINENO"; then :
2678 eval "$4=yes"
2679else
2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681/* end confdefs.h. */
2682$5
2683int
2684main ()
2685{
2686static $2 ac_aggr;
2687if (sizeof ac_aggr.$3)
2688return 0;
2689 ;
2690 return 0;
2691}
2692_ACEOF
2693if ac_fn_c_try_compile "$LINENO"; then :
2694 eval "$4=yes"
2695else
2696 eval "$4=no"
2697fi
2698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699fi
2700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701fi
2702eval ac_res=\$$4
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2704$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002706
2707} # ac_fn_c_check_member
2708
cristy501c8042011-05-26 17:46:28 +00002709# ac_fn_c_find_intX_t LINENO BITS VAR
2710# -----------------------------------
2711# Finds a signed integer type with width BITS, setting cache variable VAR
2712# accordingly.
2713ac_fn_c_find_intX_t ()
2714{
2715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2717$as_echo_n "checking for int$2_t... " >&6; }
2718if eval \${$3+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720else
2721 eval "$3=no"
2722 # Order is important - never check a type that is potentially smaller
2723 # than half of the expected target width.
2724 for ac_type in int$2_t 'int' 'long int' \
2725 'long long int' 'short int' 'signed char'; do
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727/* end confdefs.h. */
2728$ac_includes_default
2729 enum { N = $2 / 2 - 1 };
2730int
2731main ()
2732{
2733static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002734test_array [0] = 0;
2735return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002736
2737 ;
2738 return 0;
2739}
2740_ACEOF
2741if ac_fn_c_try_compile "$LINENO"; then :
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743/* end confdefs.h. */
2744$ac_includes_default
2745 enum { N = $2 / 2 - 1 };
2746int
2747main ()
2748{
2749static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2750 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002751test_array [0] = 0;
2752return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002753
2754 ;
2755 return 0;
2756}
2757_ACEOF
2758if ac_fn_c_try_compile "$LINENO"; then :
2759
2760else
2761 case $ac_type in #(
2762 int$2_t) :
2763 eval "$3=yes" ;; #(
2764 *) :
2765 eval "$3=\$ac_type" ;;
2766esac
2767fi
2768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769fi
2770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 if eval test \"x\$"$3"\" = x"no"; then :
2772
2773else
2774 break
2775fi
2776 done
2777fi
2778eval ac_res=\$$3
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2780$as_echo "$ac_res" >&6; }
2781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2782
2783} # ac_fn_c_find_intX_t
2784
2785# ac_fn_c_find_uintX_t LINENO BITS VAR
2786# ------------------------------------
2787# Finds an unsigned integer type with width BITS, setting cache variable VAR
2788# accordingly.
2789ac_fn_c_find_uintX_t ()
2790{
2791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2793$as_echo_n "checking for uint$2_t... " >&6; }
2794if eval \${$3+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796else
2797 eval "$3=no"
2798 # Order is important - never check a type that is potentially smaller
2799 # than half of the expected target width.
2800 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2801 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803/* end confdefs.h. */
2804$ac_includes_default
2805int
2806main ()
2807{
2808static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002809test_array [0] = 0;
2810return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002811
2812 ;
2813 return 0;
2814}
2815_ACEOF
2816if ac_fn_c_try_compile "$LINENO"; then :
2817 case $ac_type in #(
2818 uint$2_t) :
2819 eval "$3=yes" ;; #(
2820 *) :
2821 eval "$3=\$ac_type" ;;
2822esac
2823fi
2824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825 if eval test \"x\$"$3"\" = x"no"; then :
2826
2827else
2828 break
2829fi
2830 done
2831fi
2832eval ac_res=\$$3
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834$as_echo "$ac_res" >&6; }
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2836
2837} # ac_fn_c_find_uintX_t
2838
cristy8b350f62009-11-15 23:12:43 +00002839# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2840# --------------------------------------------
2841# Tries to find the compile-time value of EXPR in a program that includes
2842# INCLUDES, setting VAR accordingly. Returns whether the value could be
2843# computed
2844ac_fn_c_compute_int ()
2845{
2846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2847 if test "$cross_compiling" = yes; then
2848 # Depending upon the size, compute the lo and hi bounds.
2849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850/* end confdefs.h. */
2851$4
2852int
2853main ()
2854{
2855static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002856test_array [0] = 0;
2857return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002858
2859 ;
2860 return 0;
2861}
2862_ACEOF
2863if ac_fn_c_try_compile "$LINENO"; then :
2864 ac_lo=0 ac_mid=0
2865 while :; do
2866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867/* end confdefs.h. */
2868$4
2869int
2870main ()
2871{
2872static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002873test_array [0] = 0;
2874return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002875
2876 ;
2877 return 0;
2878}
2879_ACEOF
2880if ac_fn_c_try_compile "$LINENO"; then :
2881 ac_hi=$ac_mid; break
2882else
2883 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2884 if test $ac_lo -le $ac_mid; then
2885 ac_lo= ac_hi=
2886 break
2887 fi
2888 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2889fi
2890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891 done
2892else
2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894/* end confdefs.h. */
2895$4
2896int
2897main ()
2898{
2899static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002900test_array [0] = 0;
2901return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002902
2903 ;
2904 return 0;
2905}
2906_ACEOF
2907if ac_fn_c_try_compile "$LINENO"; then :
2908 ac_hi=-1 ac_mid=-1
2909 while :; do
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911/* end confdefs.h. */
2912$4
2913int
2914main ()
2915{
2916static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002917test_array [0] = 0;
2918return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002919
2920 ;
2921 return 0;
2922}
2923_ACEOF
2924if ac_fn_c_try_compile "$LINENO"; then :
2925 ac_lo=$ac_mid; break
2926else
2927 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2928 if test $ac_mid -le $ac_hi; then
2929 ac_lo= ac_hi=
2930 break
2931 fi
2932 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2933fi
2934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2935 done
2936else
2937 ac_lo= ac_hi=
2938fi
2939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2940fi
2941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942# Binary search between lo and hi bounds.
2943while test "x$ac_lo" != "x$ac_hi"; do
2944 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946/* end confdefs.h. */
2947$4
2948int
2949main ()
2950{
2951static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002952test_array [0] = 0;
2953return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002954
2955 ;
2956 return 0;
2957}
2958_ACEOF
2959if ac_fn_c_try_compile "$LINENO"; then :
2960 ac_hi=$ac_mid
2961else
2962 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2963fi
2964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965done
2966case $ac_lo in #((
2967?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2968'') ac_retval=1 ;;
2969esac
2970 else
2971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2972/* end confdefs.h. */
2973$4
2974static long int longval () { return $2; }
2975static unsigned long int ulongval () { return $2; }
2976#include <stdio.h>
2977#include <stdlib.h>
2978int
2979main ()
2980{
2981
2982 FILE *f = fopen ("conftest.val", "w");
2983 if (! f)
2984 return 1;
2985 if (($2) < 0)
2986 {
2987 long int i = longval ();
2988 if (i != ($2))
2989 return 1;
2990 fprintf (f, "%ld", i);
2991 }
2992 else
2993 {
2994 unsigned long int i = ulongval ();
2995 if (i != ($2))
2996 return 1;
2997 fprintf (f, "%lu", i);
2998 }
2999 /* Do not output a trailing newline, as this causes \r\n confusion
3000 on some platforms. */
3001 return ferror (f) || fclose (f) != 0;
3002
3003 ;
3004 return 0;
3005}
3006_ACEOF
3007if ac_fn_c_try_run "$LINENO"; then :
3008 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3009else
3010 ac_retval=1
3011fi
3012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3013 conftest.$ac_objext conftest.beam conftest.$ac_ext
3014rm -f conftest.val
3015
3016 fi
cristyda16f162011-02-19 23:52:17 +00003017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003018 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003019
3020} # ac_fn_c_compute_int
3021
3022# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3023# ---------------------------------------------------------
3024# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3025# the include files in INCLUDES and setting the cache variable VAR
3026# accordingly.
3027ac_fn_cxx_check_header_mongrel ()
3028{
3029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003030 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3032$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003033if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003034 $as_echo_n "(cached) " >&6
3035fi
3036eval ac_res=\$$3
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3038$as_echo "$ac_res" >&6; }
3039else
3040 # Is the header compilable?
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3042$as_echo_n "checking $2 usability... " >&6; }
3043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044/* end confdefs.h. */
3045$4
3046#include <$2>
3047_ACEOF
3048if ac_fn_cxx_try_compile "$LINENO"; then :
3049 ac_header_compiler=yes
3050else
3051 ac_header_compiler=no
3052fi
3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3055$as_echo "$ac_header_compiler" >&6; }
3056
3057# Is the header present?
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3059$as_echo_n "checking $2 presence... " >&6; }
3060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061/* end confdefs.h. */
3062#include <$2>
3063_ACEOF
3064if ac_fn_cxx_try_cpp "$LINENO"; then :
3065 ac_header_preproc=yes
3066else
3067 ac_header_preproc=no
3068fi
cristyda16f162011-02-19 23:52:17 +00003069rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3071$as_echo "$ac_header_preproc" >&6; }
3072
3073# So? What about this header?
3074case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3075 yes:no: )
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3077$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3079$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3080 ;;
3081 no:yes:* )
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3083$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3085$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3087$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3089$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3091$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003092( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003093## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003094## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003095 ) | sed "s/^/$as_me: WARNING: /" >&2
3096 ;;
3097esac
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3099$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003100if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003101 $as_echo_n "(cached) " >&6
3102else
3103 eval "$3=\$ac_header_compiler"
3104fi
3105eval ac_res=\$$3
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3107$as_echo "$ac_res" >&6; }
3108fi
cristyda16f162011-02-19 23:52:17 +00003109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003110
3111} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003112cat >config.log <<_ACEOF
3113This file contains any messages produced by compilers while
3114running configure, to aid debugging if configure makes a mistake.
3115
cristy29eb34e2011-10-16 00:46:08 +00003116It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003117generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003118
3119 $ $0 $@
3120
3121_ACEOF
3122exec 5>>config.log
3123{
3124cat <<_ASUNAME
3125## --------- ##
3126## Platform. ##
3127## --------- ##
3128
3129hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3130uname -m = `(uname -m) 2>/dev/null || echo unknown`
3131uname -r = `(uname -r) 2>/dev/null || echo unknown`
3132uname -s = `(uname -s) 2>/dev/null || echo unknown`
3133uname -v = `(uname -v) 2>/dev/null || echo unknown`
3134
3135/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3136/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3137
3138/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3139/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3140/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3141/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3142/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3143/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3144/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3145
3146_ASUNAME
3147
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003153 $as_echo "PATH: $as_dir"
3154 done
cristy3ed852e2009-09-05 21:47:34 +00003155IFS=$as_save_IFS
3156
3157} >&5
3158
3159cat >&5 <<_ACEOF
3160
3161
3162## ----------- ##
3163## Core tests. ##
3164## ----------- ##
3165
3166_ACEOF
3167
3168
3169# Keep a trace of the command line.
3170# Strip out --no-create and --no-recursion so they do not pile up.
3171# Strip out --silent because we don't want to record it for future runs.
3172# Also quote any args containing shell meta-characters.
3173# Make two passes to allow for proper duplicate-argument suppression.
3174ac_configure_args=
3175ac_configure_args0=
3176ac_configure_args1=
3177ac_must_keep_next=false
3178for ac_pass in 1 2
3179do
3180 for ac_arg
3181 do
3182 case $ac_arg in
3183 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3185 | -silent | --silent | --silen | --sile | --sil)
3186 continue ;;
3187 *\'*)
3188 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3189 esac
3190 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003191 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003192 2)
cristy8b350f62009-11-15 23:12:43 +00003193 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003194 if test $ac_must_keep_next = true; then
3195 ac_must_keep_next=false # Got value, back to normal.
3196 else
3197 case $ac_arg in
3198 *=* | --config-cache | -C | -disable-* | --disable-* \
3199 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3200 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3201 | -with-* | --with-* | -without-* | --without-* | --x)
3202 case "$ac_configure_args0 " in
3203 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3204 esac
3205 ;;
3206 -* ) ac_must_keep_next=true ;;
3207 esac
3208 fi
cristy8b350f62009-11-15 23:12:43 +00003209 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003210 ;;
3211 esac
3212 done
3213done
cristy8b350f62009-11-15 23:12:43 +00003214{ ac_configure_args0=; unset ac_configure_args0;}
3215{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003216
3217# When interrupted or exit'd, cleanup temporary files, and complete
3218# config.log. We remove comments because anyway the quotes in there
3219# would cause problems or look ugly.
3220# WARNING: Use '\'' to represent an apostrophe within the trap.
3221# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3222trap 'exit_status=$?
3223 # Save into config.log some information that might help in debugging.
3224 {
3225 echo
3226
cristy98dddb52010-11-04 00:30:15 +00003227 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003228## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003229## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003230 echo
3231 # The following way of writing the cache mishandles newlines in values,
3232(
3233 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3234 eval ac_val=\$$ac_var
3235 case $ac_val in #(
3236 *${as_nl}*)
3237 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003238 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003239$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3240 esac
3241 case $ac_var in #(
3242 _ | IFS | as_nl) ;; #(
3243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003244 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003245 esac ;;
3246 esac
3247 done
3248 (set) 2>&1 |
3249 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3250 *${as_nl}ac_space=\ *)
3251 sed -n \
3252 "s/'\''/'\''\\\\'\'''\''/g;
3253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3254 ;; #(
3255 *)
3256 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3257 ;;
3258 esac |
3259 sort
3260)
3261 echo
3262
cristy98dddb52010-11-04 00:30:15 +00003263 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003264## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003265## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003266 echo
3267 for ac_var in $ac_subst_vars
3268 do
3269 eval ac_val=\$$ac_var
3270 case $ac_val in
3271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3272 esac
3273 $as_echo "$ac_var='\''$ac_val'\''"
3274 done | sort
3275 echo
3276
3277 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003278 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003279## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003280## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003281 echo
3282 for ac_var in $ac_subst_files
3283 do
3284 eval ac_val=\$$ac_var
3285 case $ac_val in
3286 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3287 esac
3288 $as_echo "$ac_var='\''$ac_val'\''"
3289 done | sort
3290 echo
3291 fi
3292
3293 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003294 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003295## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003296## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003297 echo
3298 cat confdefs.h
3299 echo
3300 fi
3301 test "$ac_signal" != 0 &&
3302 $as_echo "$as_me: caught signal $ac_signal"
3303 $as_echo "$as_me: exit $exit_status"
3304 } >&5
3305 rm -f core *.core core.conftest.* &&
3306 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3307 exit $exit_status
3308' 0
3309for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003310 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003311done
3312ac_signal=0
3313
3314# confdefs.h avoids OS command line length limits that DEFS can exceed.
3315rm -f -r conftest* confdefs.h
3316
cristy8b350f62009-11-15 23:12:43 +00003317$as_echo "/* confdefs.h */" > confdefs.h
3318
cristy3ed852e2009-09-05 21:47:34 +00003319# Predefined preprocessor variables.
3320
3321cat >>confdefs.h <<_ACEOF
3322#define PACKAGE_NAME "$PACKAGE_NAME"
3323_ACEOF
3324
cristy3ed852e2009-09-05 21:47:34 +00003325cat >>confdefs.h <<_ACEOF
3326#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3327_ACEOF
3328
cristy3ed852e2009-09-05 21:47:34 +00003329cat >>confdefs.h <<_ACEOF
3330#define PACKAGE_VERSION "$PACKAGE_VERSION"
3331_ACEOF
3332
cristy3ed852e2009-09-05 21:47:34 +00003333cat >>confdefs.h <<_ACEOF
3334#define PACKAGE_STRING "$PACKAGE_STRING"
3335_ACEOF
3336
cristy3ed852e2009-09-05 21:47:34 +00003337cat >>confdefs.h <<_ACEOF
3338#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3339_ACEOF
3340
cristy8b350f62009-11-15 23:12:43 +00003341cat >>confdefs.h <<_ACEOF
3342#define PACKAGE_URL "$PACKAGE_URL"
3343_ACEOF
3344
cristy3ed852e2009-09-05 21:47:34 +00003345
3346# Let the site file select an alternate cache file if it wants to.
3347# Prefer an explicitly selected file to automatically selected ones.
3348ac_site_file1=NONE
3349ac_site_file2=NONE
3350if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003351 # We do not want a PATH search for config.site.
3352 case $CONFIG_SITE in #((
3353 -*) ac_site_file1=./$CONFIG_SITE;;
3354 */*) ac_site_file1=$CONFIG_SITE;;
3355 *) ac_site_file1=./$CONFIG_SITE;;
3356 esac
cristy3ed852e2009-09-05 21:47:34 +00003357elif test "x$prefix" != xNONE; then
3358 ac_site_file1=$prefix/share/config.site
3359 ac_site_file2=$prefix/etc/config.site
3360else
3361 ac_site_file1=$ac_default_prefix/share/config.site
3362 ac_site_file2=$ac_default_prefix/etc/config.site
3363fi
3364for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3365do
3366 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003367 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003369$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3370 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003371 . "$ac_site_file" \
3372 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374as_fn_error $? "failed to load site script $ac_site_file
3375See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003376 fi
3377done
3378
3379if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003380 # Some versions of bash will fail to source /dev/null (special files
3381 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3382 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003383 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003384$as_echo "$as_me: loading cache $cache_file" >&6;}
3385 case $cache_file in
3386 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3387 *) . "./$cache_file";;
3388 esac
3389 fi
3390else
cristy8b350f62009-11-15 23:12:43 +00003391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003392$as_echo "$as_me: creating cache $cache_file" >&6;}
3393 >$cache_file
3394fi
3395
cristycd4c5312009-11-22 01:19:08 +00003396as_fn_append ac_header_list " stdlib.h"
3397as_fn_append ac_header_list " unistd.h"
3398as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003399# Check that the precious variables saved in the cache have kept the same
3400# value.
3401ac_cache_corrupted=false
3402for ac_var in $ac_precious_vars; do
3403 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3404 eval ac_new_set=\$ac_env_${ac_var}_set
3405 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3406 eval ac_new_val=\$ac_env_${ac_var}_value
3407 case $ac_old_set,$ac_new_set in
3408 set,)
cristy8b350f62009-11-15 23:12:43 +00003409 { $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 +00003410$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3411 ac_cache_corrupted=: ;;
3412 ,set)
cristy8b350f62009-11-15 23:12:43 +00003413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003414$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3415 ac_cache_corrupted=: ;;
3416 ,);;
3417 *)
3418 if test "x$ac_old_val" != "x$ac_new_val"; then
3419 # differences in whitespace do not lead to failure.
3420 ac_old_val_w=`echo x $ac_old_val`
3421 ac_new_val_w=`echo x $ac_new_val`
3422 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003424$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3425 ac_cache_corrupted=:
3426 else
cristy8b350f62009-11-15 23:12:43 +00003427 { $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 +00003428$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3429 eval $ac_var=\$ac_old_val
3430 fi
cristy8b350f62009-11-15 23:12:43 +00003431 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003432$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003433 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003434$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3435 fi;;
3436 esac
3437 # Pass precious variables to config.status.
3438 if test "$ac_new_set" = set; then
3439 case $ac_new_val in
3440 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3441 *) ac_arg=$ac_var=$ac_new_val ;;
3442 esac
3443 case " $ac_configure_args " in
3444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003445 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003446 esac
3447 fi
3448done
3449if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003453$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003454 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003455fi
cristy8b350f62009-11-15 23:12:43 +00003456## -------------------- ##
3457## Main body of script. ##
3458## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003459
3460ac_ext=c
3461ac_cpp='$CPP $CPPFLAGS'
3462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465
3466
3467
3468ac_aux_dir=
3469for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003470 if test -f "$ac_dir/install-sh"; then
3471 ac_aux_dir=$ac_dir
3472 ac_install_sh="$ac_aux_dir/install-sh -c"
3473 break
3474 elif test -f "$ac_dir/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/shtool"; then
3479 ac_aux_dir=$ac_dir
3480 ac_install_sh="$ac_aux_dir/shtool install -c"
3481 break
3482 fi
cristy3ed852e2009-09-05 21:47:34 +00003483done
3484if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003485 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003486fi
3487
3488# These three variables are undocumented and unsupported,
3489# and are intended to be withdrawn in a future Autoconf release.
3490# They can cause serious problems if a builder's source tree is in a directory
3491# whose full name contains unusual characters.
3492ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3493ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3494ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3495
3496
3497
3498
cristybc556452012-08-17 19:44:03 +00003499
cristy3ed852e2009-09-05 21:47:34 +00003500ac_config_headers="$ac_config_headers config/config.h"
3501
cristy24fc1fe2010-10-23 21:13:01 +00003502
cristy4c08aed2011-07-01 19:47:50 +00003503ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003504
cristy2df32802012-09-17 01:15:28 +00003505ac_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/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh 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 +00003506
3507
3508#
3509# Save initial user-tunable values
3510#
3511USER_LIBS=$LIBS
3512for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3513 eval isset=\${$var+set}
3514 if test "$isset" = 'set'; then
3515 eval val=$`echo $var`
3516 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3517 fi
3518done
3519
3520
3521CONFIGURE_ARGS="$0 ${ac_configure_args}"
3522
3523
3524# Source file containing package/library versioning information.
3525. ${srcdir}/version.sh
3526
cristy15a88782010-01-31 23:24:49 +00003527echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003528# Make sure we can run config.sub.
3529$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003530 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003531
cristy8b350f62009-11-15 23:12:43 +00003532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003533$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003534if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003535 $as_echo_n "(cached) " >&6
3536else
3537 ac_build_alias=$build_alias
3538test "x$ac_build_alias" = x &&
3539 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3540test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003541 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003542ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003543 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003544
3545fi
cristy8b350f62009-11-15 23:12:43 +00003546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003547$as_echo "$ac_cv_build" >&6; }
3548case $ac_cv_build in
3549*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003550*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003551esac
3552build=$ac_cv_build
3553ac_save_IFS=$IFS; IFS='-'
3554set x $ac_cv_build
3555shift
3556build_cpu=$1
3557build_vendor=$2
3558shift; shift
3559# Remember, the first character of IFS is used to create $*,
3560# except with old shells:
3561build_os=$*
3562IFS=$ac_save_IFS
3563case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3564
3565
cristy8b350f62009-11-15 23:12:43 +00003566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003567$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003568if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003569 $as_echo_n "(cached) " >&6
3570else
3571 if test "x$host_alias" = x; then
3572 ac_cv_host=$ac_cv_build
3573else
3574 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003575 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003576fi
3577
3578fi
cristy8b350f62009-11-15 23:12:43 +00003579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003580$as_echo "$ac_cv_host" >&6; }
3581case $ac_cv_host in
3582*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003583*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003584esac
3585host=$ac_cv_host
3586ac_save_IFS=$IFS; IFS='-'
3587set x $ac_cv_host
3588shift
3589host_cpu=$1
3590host_vendor=$2
3591shift; shift
3592# Remember, the first character of IFS is used to create $*,
3593# except with old shells:
3594host_os=$*
3595IFS=$ac_save_IFS
3596case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3597
3598
cristy8b350f62009-11-15 23:12:43 +00003599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003600$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003601if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003602 $as_echo_n "(cached) " >&6
3603else
3604 if test "x$target_alias" = x; then
3605 ac_cv_target=$ac_cv_host
3606else
3607 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003608 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003609fi
3610
3611fi
cristy8b350f62009-11-15 23:12:43 +00003612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003613$as_echo "$ac_cv_target" >&6; }
3614case $ac_cv_target in
3615*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003616*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003617esac
3618target=$ac_cv_target
3619ac_save_IFS=$IFS; IFS='-'
3620set x $ac_cv_target
3621shift
3622target_cpu=$1
3623target_vendor=$2
3624shift; shift
3625# Remember, the first character of IFS is used to create $*,
3626# except with old shells:
3627target_os=$*
3628IFS=$ac_save_IFS
3629case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3630
3631
3632# The aliases save the names the user supplied, while $host etc.
3633# will get canonicalized.
3634test -n "$target_alias" &&
3635 test "$program_prefix$program_suffix$program_transform_name" = \
3636 NONENONEs,x,x, &&
3637 program_prefix=${target_alias}-
3638
cristy837d6dc2010-02-27 01:16:57 +00003639
3640
3641
cristy8be34142012-06-17 14:07:18 +00003642
cristy19615b82011-04-13 20:02:01 +00003643MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003644
3645
cristy27d53d62012-07-29 23:30:07 +00003646cat >>confdefs.h <<_ACEOF
3647#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3648_ACEOF
3649
3650
cristy19615b82011-04-13 20:02:01 +00003651MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003652
3653
cristy27d53d62012-07-29 23:30:07 +00003654cat >>confdefs.h <<_ACEOF
3655#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3656_ACEOF
3657
3658
cristy19615b82011-04-13 20:02:01 +00003659MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003660
3661
cristy27d53d62012-07-29 23:30:07 +00003662cat >>confdefs.h <<_ACEOF
3663#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3664_ACEOF
3665
3666
cristy3ed852e2009-09-05 21:47:34 +00003667# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003668MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3669
3670MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3671
cristy622d7272012-10-15 19:40:16 +00003672MAGICK_SVN_REVISION=9625:9634M
cristyd694ca32011-03-27 21:42:54 +00003673
cristy3ed852e2009-09-05 21:47:34 +00003674
3675
3676# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3678$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003679# Reject unsafe characters in $srcdir or the absolute working directory
3680# name. Accept space and tab only in the latter.
3681am_lf='
3682'
3683case `pwd` in
3684 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003685 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003686esac
3687case $srcdir in
3688 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003689 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003690esac
cristy3ed852e2009-09-05 21:47:34 +00003691
cristyc0890a62012-07-19 00:18:20 +00003692# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003693# arguments. Must try -L first in case configure is actually a
3694# symlink; some systems play weird games with the mod time of symlinks
3695# (eg FreeBSD returns the mod time of the symlink's containing
3696# directory).
3697if (
cristyc0890a62012-07-19 00:18:20 +00003698 am_has_slept=no
3699 for am_try in 1 2; do
3700 echo "timestamp, slept: $am_has_slept" > conftest.file
3701 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3702 if test "$*" = "X"; then
3703 # -L didn't work.
3704 set X `ls -t "$srcdir/configure" conftest.file`
3705 fi
3706 if test "$*" != "X $srcdir/configure conftest.file" \
3707 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003708
cristyc0890a62012-07-19 00:18:20 +00003709 # If neither matched, then we have a broken ls. This can happen
3710 # if, for instance, CONFIG_SHELL is bash and it inherits a
3711 # broken ls alias from the environment. This has actually
3712 # happened. Such a system could not be considered "sane".
3713 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3714 alias in your environment" "$LINENO" 5
3715 fi
3716 if test "$2" = conftest.file || test $am_try -eq 2; then
3717 break
3718 fi
3719 # Just in case.
3720 sleep 1
3721 am_has_slept=yes
3722 done
cristy73bd4a52010-10-05 11:24:23 +00003723 test "$2" = conftest.file
3724 )
3725then
3726 # Ok.
3727 :
3728else
cristy98dddb52010-11-04 00:30:15 +00003729 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003730Check your system clock" "$LINENO" 5
3731fi
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3733$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003734# If we didn't sleep, we still need to ensure time stamps of config.status and
3735# generated files are strictly newer.
3736am_sleep_pid=
3737if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3738 ( sleep 1 ) &
3739 am_sleep_pid=$!
3740fi
cristy73bd4a52010-10-05 11:24:23 +00003741
cristyc0890a62012-07-19 00:18:20 +00003742rm -f conftest.file
3743
3744
3745am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003746
3747# Find a good install program. We prefer a C program (faster),
3748# so one script is as good as another. But avoid the broken or
3749# incompatible versions:
3750# SysV /etc/install, /usr/sbin/install
3751# SunOS /usr/etc/install
3752# IRIX /sbin/install
3753# AIX /bin/install
3754# AmigaOS /C/install, which installs bootblocks on floppy discs
3755# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3756# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3757# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3758# OS/2's system install, which has a completely different semantic
3759# ./install, which can be erroneously created by make from ./install.sh.
3760# Reject install programs that cannot install multiple files.
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3762$as_echo_n "checking for a BSD-compatible install... " >&6; }
3763if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003764if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003765 $as_echo_n "(cached) " >&6
3766else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 # Account for people who put trailing slashes in PATH elements.
3773case $as_dir/ in #((
3774 ./ | .// | /[cC]/* | \
3775 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3776 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3777 /usr/ucb/* ) ;;
3778 *)
3779 # OSF1 and SCO ODT 3.0 have their own names for install.
3780 # Don't use installbsd from OSF since it installs stuff as root
3781 # by default.
3782 for ac_prog in ginstall scoinst install; do
3783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003784 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003785 if test $ac_prog = install &&
3786 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3787 # AIX install. It has an incompatible calling convention.
3788 :
3789 elif test $ac_prog = install &&
3790 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3791 # program-specific install script used by HP pwplus--don't use.
3792 :
3793 else
3794 rm -rf conftest.one conftest.two conftest.dir
3795 echo one > conftest.one
3796 echo two > conftest.two
3797 mkdir conftest.dir
3798 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3799 test -s conftest.one && test -s conftest.two &&
3800 test -s conftest.dir/conftest.one &&
3801 test -s conftest.dir/conftest.two
3802 then
3803 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3804 break 3
3805 fi
3806 fi
3807 fi
3808 done
3809 done
3810 ;;
3811esac
3812
3813 done
3814IFS=$as_save_IFS
3815
3816rm -rf conftest.one conftest.two conftest.dir
3817
3818fi
3819 if test "${ac_cv_path_install+set}" = set; then
3820 INSTALL=$ac_cv_path_install
3821 else
3822 # As a last resort, use the slow shell script. Don't cache a
3823 # value for INSTALL within a source directory, because that will
3824 # break other packages using the cache if that directory is
3825 # removed, or if the value is a relative name.
3826 INSTALL=$ac_install_sh
3827 fi
3828fi
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3830$as_echo "$INSTALL" >&6; }
3831
3832# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3833# It thinks the first close brace ends the variable substitution.
3834test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3835
3836test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3837
3838test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3839
3840test "$program_prefix" != NONE &&
3841 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3842# Use a double $ so make ignores it.
3843test "$program_suffix" != NONE &&
3844 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3845# Double any \ or $.
3846# By default was `s,x,x', remove it if useless.
3847ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3848program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3849
3850# expand $ac_aux_dir to an absolute path
3851am_aux_dir=`cd $ac_aux_dir && pwd`
3852
3853if test x"${MISSING+set}" != xset; then
3854 case $am_aux_dir in
3855 *\ * | *\ *)
3856 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3857 *)
3858 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3859 esac
3860fi
3861# Use eval to expand $SHELL
3862if eval "$MISSING --run true"; then
3863 am_missing_run="$MISSING --run "
3864else
3865 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3867$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003868fi
3869
3870if test x"${install_sh}" != xset; then
3871 case $am_aux_dir in
3872 *\ * | *\ *)
3873 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3874 *)
3875 install_sh="\${SHELL} $am_aux_dir/install-sh"
3876 esac
3877fi
3878
cristyc0890a62012-07-19 00:18:20 +00003879# Installed binaries are usually stripped using 'strip' when the user
3880# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003881# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003882# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003883if test "$cross_compiling" != no; then
3884 if test -n "$ac_tool_prefix"; then
3885 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3886set dummy ${ac_tool_prefix}strip; ac_word=$2
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003889if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003890 $as_echo_n "(cached) " >&6
3891else
3892 if test -n "$STRIP"; then
3893 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3894else
3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003902 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906done
3907 done
3908IFS=$as_save_IFS
3909
3910fi
3911fi
3912STRIP=$ac_cv_prog_STRIP
3913if test -n "$STRIP"; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3915$as_echo "$STRIP" >&6; }
3916else
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918$as_echo "no" >&6; }
3919fi
3920
3921
3922fi
3923if test -z "$ac_cv_prog_STRIP"; then
3924 ac_ct_STRIP=$STRIP
3925 # Extract the first word of "strip", so it can be a program name with args.
3926set dummy strip; ac_word=$2
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003929if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003930 $as_echo_n "(cached) " >&6
3931else
3932 if test -n "$ac_ct_STRIP"; then
3933 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003942 ac_cv_prog_ac_ct_STRIP="strip"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946done
3947 done
3948IFS=$as_save_IFS
3949
3950fi
3951fi
3952ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3953if test -n "$ac_ct_STRIP"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3955$as_echo "$ac_ct_STRIP" >&6; }
3956else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958$as_echo "no" >&6; }
3959fi
3960
3961 if test "x$ac_ct_STRIP" = x; then
3962 STRIP=":"
3963 else
3964 case $cross_compiling:$ac_tool_warned in
3965yes:)
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3968ac_tool_warned=yes ;;
3969esac
3970 STRIP=$ac_ct_STRIP
3971 fi
3972else
3973 STRIP="$ac_cv_prog_STRIP"
3974fi
3975
3976fi
3977INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3978
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3980$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3981if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003982 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003983 $as_echo_n "(cached) " >&6
3984else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3987do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_prog in mkdir gmkdir; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003992 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003993 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3994 'mkdir (GNU coreutils) '* | \
3995 'mkdir (coreutils) '* | \
3996 'mkdir (fileutils) '4.1*)
3997 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3998 break 3;;
3999 esac
4000 done
4001 done
4002 done
4003IFS=$as_save_IFS
4004
4005fi
4006
4007 test -d ./--version && rmdir ./--version
4008 if test "${ac_cv_path_mkdir+set}" = set; then
4009 MKDIR_P="$ac_cv_path_mkdir -p"
4010 else
4011 # As a last resort, use the slow shell script. Don't cache a
4012 # value for MKDIR_P within a source directory, because that will
4013 # break other packages using the cache if that directory is
4014 # removed, or if the value is a relative name.
4015 MKDIR_P="$ac_install_sh -d"
4016 fi
4017fi
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4019$as_echo "$MKDIR_P" >&6; }
4020
cristy73bd4a52010-10-05 11:24:23 +00004021for ac_prog in gawk mawk nawk awk
4022do
4023 # Extract the first word of "$ac_prog", so it can be a program name with args.
4024set dummy $ac_prog; ac_word=$2
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004027if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004028 $as_echo_n "(cached) " >&6
4029else
4030 if test -n "$AWK"; then
4031 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4032else
4033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034for as_dir in $PATH
4035do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004040 ac_cv_prog_AWK="$ac_prog"
4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044done
4045 done
4046IFS=$as_save_IFS
4047
4048fi
4049fi
4050AWK=$ac_cv_prog_AWK
4051if test -n "$AWK"; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4053$as_echo "$AWK" >&6; }
4054else
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056$as_echo "no" >&6; }
4057fi
4058
4059
4060 test -n "$AWK" && break
4061done
4062
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4064$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4065set x ${MAKE-make}
4066ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004067if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004068 $as_echo_n "(cached) " >&6
4069else
4070 cat >conftest.make <<\_ACEOF
4071SHELL = /bin/sh
4072all:
4073 @echo '@@@%%%=$(MAKE)=@@@%%%'
4074_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004075# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004076case `${MAKE-make} -f conftest.make 2>/dev/null` in
4077 *@@@%%%=?*=@@@%%%*)
4078 eval ac_cv_prog_make_${ac_make}_set=yes;;
4079 *)
4080 eval ac_cv_prog_make_${ac_make}_set=no;;
4081esac
4082rm -f conftest.make
4083fi
4084if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4086$as_echo "yes" >&6; }
4087 SET_MAKE=
4088else
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090$as_echo "no" >&6; }
4091 SET_MAKE="MAKE=${MAKE-make}"
4092fi
4093
4094rm -rf .tst 2>/dev/null
4095mkdir .tst 2>/dev/null
4096if test -d .tst; then
4097 am__leading_dot=.
4098else
4099 am__leading_dot=_
4100fi
4101rmdir .tst 2>/dev/null
4102
cristya448bd22011-10-14 12:38:13 +00004103# Check whether --enable-silent-rules was given.
4104if test "${enable_silent_rules+set}" = set; then :
4105 enableval=$enable_silent_rules;
4106fi
4107
cristyc0890a62012-07-19 00:18:20 +00004108case $enable_silent_rules in # (((
4109 yes) AM_DEFAULT_VERBOSITY=0;;
4110 no) AM_DEFAULT_VERBOSITY=1;;
4111 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004112esac
cristyc3fb77b2012-02-06 01:49:41 +00004113am_make=${MAKE-make}
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4115$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4116if ${am_cv_make_support_nested_variables+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118else
4119 if $as_echo 'TRUE=$(BAR$(V))
4120BAR0=false
4121BAR1=true
4122V=1
4123am__doit:
4124 @$(TRUE)
4125.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4126 am_cv_make_support_nested_variables=yes
4127else
4128 am_cv_make_support_nested_variables=no
4129fi
4130fi
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4132$as_echo "$am_cv_make_support_nested_variables" >&6; }
4133if test $am_cv_make_support_nested_variables = yes; then
4134 AM_V='$(V)'
4135 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4136else
4137 AM_V=$AM_DEFAULT_VERBOSITY
4138 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4139fi
cristya448bd22011-10-14 12:38:13 +00004140AM_BACKSLASH='\'
4141
cristy73bd4a52010-10-05 11:24:23 +00004142if test "`cd $srcdir && pwd`" != "`pwd`"; then
4143 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4144 # is not polluted with repeated "-I."
4145 am__isrc=' -I$(srcdir)'
4146 # test to see if srcdir already configured
4147 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004148 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004149 fi
4150fi
4151
4152# test whether we have cygpath
4153if test -z "$CYGPATH_W"; then
4154 if (cygpath --version) >/dev/null 2>/dev/null; then
4155 CYGPATH_W='cygpath -w'
4156 else
4157 CYGPATH_W=echo
4158 fi
4159fi
4160
4161
4162# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004163 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004164 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004165
4166
cristya448bd22011-10-14 12:38:13 +00004167cat >>confdefs.h <<_ACEOF
4168#define PACKAGE "$PACKAGE"
4169_ACEOF
4170
4171
4172cat >>confdefs.h <<_ACEOF
4173#define VERSION "$VERSION"
4174_ACEOF
4175
cristy73bd4a52010-10-05 11:24:23 +00004176# Some tools Automake needs.
4177
4178ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4179
4180
4181AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4182
4183
4184AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4185
4186
4187AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4188
4189
4190MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4191
cristyc0890a62012-07-19 00:18:20 +00004192# For better backward compatibility. To be removed once Automake 1.9.x
4193# dies out for good. For more background, see:
4194# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4195# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4196mkdir_p='$(MKDIR_P)'
4197
cristy73bd4a52010-10-05 11:24:23 +00004198# We need awk for the "check" target. The system "awk" is bad on
4199# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004200# Always define AMTAR for backward compatibility. Yes, it's still used
4201# in the wild :-( We should find a proper way to deprecate it ...
4202AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004203
cristyc3fb77b2012-02-06 01:49:41 +00004204am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004205
4206
4207
4208
4209
cristy3ed852e2009-09-05 21:47:34 +00004210
4211# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004212# Check whether --enable-silent-rules was given.
4213if test "${enable_silent_rules+set}" = set; then :
4214 enableval=$enable_silent_rules;
4215fi
4216
cristyc0890a62012-07-19 00:18:20 +00004217case $enable_silent_rules in # (((
4218 yes) AM_DEFAULT_VERBOSITY=0;;
4219 no) AM_DEFAULT_VERBOSITY=1;;
4220 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004221esac
cristyc3fb77b2012-02-06 01:49:41 +00004222am_make=${MAKE-make}
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4224$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4225if ${am_cv_make_support_nested_variables+:} false; then :
4226 $as_echo_n "(cached) " >&6
4227else
4228 if $as_echo 'TRUE=$(BAR$(V))
4229BAR0=false
4230BAR1=true
4231V=1
4232am__doit:
4233 @$(TRUE)
4234.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4235 am_cv_make_support_nested_variables=yes
4236else
4237 am_cv_make_support_nested_variables=no
4238fi
4239fi
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4241$as_echo "$am_cv_make_support_nested_variables" >&6; }
4242if test $am_cv_make_support_nested_variables = yes; then
4243 AM_V='$(V)'
4244 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4245else
4246 AM_V=$AM_DEFAULT_VERBOSITY
4247 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4248fi
cristy73bd4a52010-10-05 11:24:23 +00004249AM_BACKSLASH='\'
4250
cristy3ed852e2009-09-05 21:47:34 +00004251
4252MAGICK_LIB_VERSION="0x"
4253if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4254 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4255fi
4256MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4257if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4258 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4259fi
4260MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4261if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4262 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4263fi
4264MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4265
4266
4267# Definition used to define MagickLibVersionText in version.h
4268MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4269
4270
4271# Definition used to define MagickLibVersionNumber in version.h
4272MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4273
4274
4275# Regenerate config.status if ChangeLog or version.sh is updated.
4276CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4277
4278
4279PERLMAINCC=$CC
4280
4281MAGICK_CFLAGS=''
4282MAGICK_CPPFLAGS=$CPPFLAGS_USER
4283MAGICK_PCFLAGS=$CPPFLAGS_USER
4284MAGICK_LDFLAGS=''
4285MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004286MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004287
4288#
4289# Evaluate shell variable equivalents to Makefile directory variables
4290#
4291if test "x$prefix" = xNONE; then
4292 prefix=$ac_default_prefix
4293fi
4294# Let make expand exec_prefix.
4295if test "x$exec_prefix" = xNONE; then
4296 exec_prefix='${prefix}'
4297fi
4298
4299#
4300eval "eval PREFIX_DIR=${prefix}"
4301
4302eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4303
4304eval "eval BIN_DIR=$bindir"
4305
4306eval "eval SBIN_DIR=$sbindir"
4307
4308eval "eval LIBEXEC_DIR=$libexecdir"
4309
4310eval "eval DATA_DIR=$datadir"
4311
cristy4e65ec22012-04-08 01:33:27 +00004312eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004313
cristy3ed852e2009-09-05 21:47:34 +00004314eval "eval SYSCONF_DIR=$sysconfdir"
4315
4316eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4317
4318eval "eval LOCALSTATE_DIR=$localstatedir"
4319
4320eval "eval LIB_DIR=$libdir"
4321
4322eval "eval INCLUDE_DIR=$includedir"
4323
4324eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4325
4326eval "eval INFO_DIR=$infodir"
4327
4328eval "eval MAN_DIR=$mandir"
4329
4330
4331# Get full paths to source and build directories
4332srcdirfull="`cd $srcdir && pwd`"
4333builddir="`pwd`"
4334
4335#
4336# Compute variables useful for running uninstalled software.
4337#
4338MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4339MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4340MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4341MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4342DIRSEP=':'
4343case "${build_os}" in
4344 mingw* )
4345 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4346 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4347 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4348 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4349 DIRSEP=';'
4350 ;;
4351esac
4352case "${host_os}" in
4353 mingw* )
4354 DIRSEP=';'
4355 ;;
4356esac
4357
4358
4359
4360
4361
4362
cristya0b81c32010-01-22 02:54:33 +00004363
4364#
4365# Enable OS features.
4366#
cristy73bd4a52010-10-05 11:24:23 +00004367DEPDIR="${am__leading_dot}deps"
4368
4369ac_config_commands="$ac_config_commands depfiles"
4370
4371
4372am_make=${MAKE-make}
4373cat > confinc << 'END'
4374am__doit:
4375 @echo this is the am__doit target
4376.PHONY: am__doit
4377END
4378# If we don't find an include directive, just comment out the code.
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4380$as_echo_n "checking for style of include used by $am_make... " >&6; }
4381am__include="#"
4382am__quote=
4383_am_result=none
4384# First try GNU make style include.
4385echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004386# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004387case `$am_make -s -f confmf 2> /dev/null` in #(
4388*the\ am__doit\ target*)
4389 am__include=include
4390 am__quote=
4391 _am_result=GNU
4392 ;;
4393esac
4394# Now try BSD make style include.
4395if test "$am__include" = "#"; then
4396 echo '.include "confinc"' > confmf
4397 case `$am_make -s -f confmf 2> /dev/null` in #(
4398 *the\ am__doit\ target*)
4399 am__include=.include
4400 am__quote="\""
4401 _am_result=BSD
4402 ;;
4403 esac
4404fi
4405
4406
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4408$as_echo "$_am_result" >&6; }
4409rm -f confinc confmf
4410
4411# Check whether --enable-dependency-tracking was given.
4412if test "${enable_dependency_tracking+set}" = set; then :
4413 enableval=$enable_dependency_tracking;
4414fi
4415
4416if test "x$enable_dependency_tracking" != xno; then
4417 am_depcomp="$ac_aux_dir/depcomp"
4418 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004419 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004420fi
4421 if test "x$enable_dependency_tracking" != xno; then
4422 AMDEP_TRUE=
4423 AMDEP_FALSE='#'
4424else
4425 AMDEP_TRUE='#'
4426 AMDEP_FALSE=
4427fi
4428
4429
cristy3ed852e2009-09-05 21:47:34 +00004430ac_ext=c
4431ac_cpp='$CPP $CPPFLAGS'
4432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4437set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004439$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004440if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004441 $as_echo_n "(cached) " >&6
4442else
4443 if test -n "$CC"; then
4444 ac_cv_prog_CC="$CC" # Let the user override the test.
4445else
4446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH
4448do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004451 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004455 break 2
4456 fi
4457done
cristy8b350f62009-11-15 23:12:43 +00004458 done
cristy3ed852e2009-09-05 21:47:34 +00004459IFS=$as_save_IFS
4460
4461fi
4462fi
4463CC=$ac_cv_prog_CC
4464if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004466$as_echo "$CC" >&6; }
4467else
cristy8b350f62009-11-15 23:12:43 +00004468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004469$as_echo "no" >&6; }
4470fi
4471
4472
4473fi
4474if test -z "$ac_cv_prog_CC"; then
4475 ac_ct_CC=$CC
4476 # Extract the first word of "gcc", so it can be a program name with args.
4477set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004479$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004480if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004481 $as_echo_n "(cached) " >&6
4482else
4483 if test -n "$ac_ct_CC"; then
4484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4485else
4486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487for as_dir in $PATH
4488do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004491 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004493 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004495 break 2
4496 fi
4497done
cristy8b350f62009-11-15 23:12:43 +00004498 done
cristy3ed852e2009-09-05 21:47:34 +00004499IFS=$as_save_IFS
4500
4501fi
4502fi
4503ac_ct_CC=$ac_cv_prog_ac_ct_CC
4504if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004506$as_echo "$ac_ct_CC" >&6; }
4507else
cristy8b350f62009-11-15 23:12:43 +00004508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004509$as_echo "no" >&6; }
4510fi
4511
4512 if test "x$ac_ct_CC" = x; then
4513 CC=""
4514 else
4515 case $cross_compiling:$ac_tool_warned in
4516yes:)
cristy8b350f62009-11-15 23:12:43 +00004517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4519ac_tool_warned=yes ;;
4520esac
4521 CC=$ac_ct_CC
4522 fi
4523else
4524 CC="$ac_cv_prog_CC"
4525fi
4526
4527if test -z "$CC"; then
4528 if test -n "$ac_tool_prefix"; then
4529 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4530set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004532$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004533if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004534 $as_echo_n "(cached) " >&6
4535else
4536 if test -n "$CC"; then
4537 ac_cv_prog_CC="$CC" # Let the user override the test.
4538else
4539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004544 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004546 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004548 break 2
4549 fi
4550done
cristy8b350f62009-11-15 23:12:43 +00004551 done
cristy3ed852e2009-09-05 21:47:34 +00004552IFS=$as_save_IFS
4553
4554fi
4555fi
4556CC=$ac_cv_prog_CC
4557if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004559$as_echo "$CC" >&6; }
4560else
cristy8b350f62009-11-15 23:12:43 +00004561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004562$as_echo "no" >&6; }
4563fi
4564
4565
4566 fi
4567fi
4568if test -z "$CC"; then
4569 # Extract the first word of "cc", so it can be a program name with args.
4570set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004572$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004573if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004574 $as_echo_n "(cached) " >&6
4575else
4576 if test -n "$CC"; then
4577 ac_cv_prog_CC="$CC" # Let the user override the test.
4578else
4579 ac_prog_rejected=no
4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004585 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004587 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4588 ac_prog_rejected=yes
4589 continue
4590 fi
4591 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004593 break 2
4594 fi
4595done
cristy8b350f62009-11-15 23:12:43 +00004596 done
cristy3ed852e2009-09-05 21:47:34 +00004597IFS=$as_save_IFS
4598
4599if test $ac_prog_rejected = yes; then
4600 # We found a bogon in the path, so make sure we never use it.
4601 set dummy $ac_cv_prog_CC
4602 shift
4603 if test $# != 0; then
4604 # We chose a different compiler from the bogus one.
4605 # However, it has the same basename, so the bogon will be chosen
4606 # first if we set CC to just the basename; use the full file name.
4607 shift
4608 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4609 fi
4610fi
4611fi
4612fi
4613CC=$ac_cv_prog_CC
4614if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004616$as_echo "$CC" >&6; }
4617else
cristy8b350f62009-11-15 23:12:43 +00004618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004619$as_echo "no" >&6; }
4620fi
4621
4622
4623fi
4624if test -z "$CC"; then
4625 if test -n "$ac_tool_prefix"; then
4626 for ac_prog in cl.exe
4627 do
4628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4629set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004631$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004632if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004633 $as_echo_n "(cached) " >&6
4634else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637else
4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH
4640do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004643 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004645 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004647 break 2
4648 fi
4649done
cristy8b350f62009-11-15 23:12:43 +00004650 done
cristy3ed852e2009-09-05 21:47:34 +00004651IFS=$as_save_IFS
4652
4653fi
4654fi
4655CC=$ac_cv_prog_CC
4656if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004658$as_echo "$CC" >&6; }
4659else
cristy8b350f62009-11-15 23:12:43 +00004660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004661$as_echo "no" >&6; }
4662fi
4663
4664
4665 test -n "$CC" && break
4666 done
4667fi
4668if test -z "$CC"; then
4669 ac_ct_CC=$CC
4670 for ac_prog in cl.exe
4671do
4672 # Extract the first word of "$ac_prog", so it can be a program name with args.
4673set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004675$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004676if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004677 $as_echo_n "(cached) " >&6
4678else
4679 if test -n "$ac_ct_CC"; then
4680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4681else
4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004687 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004689 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004691 break 2
4692 fi
4693done
cristy8b350f62009-11-15 23:12:43 +00004694 done
cristy3ed852e2009-09-05 21:47:34 +00004695IFS=$as_save_IFS
4696
4697fi
4698fi
4699ac_ct_CC=$ac_cv_prog_ac_ct_CC
4700if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004702$as_echo "$ac_ct_CC" >&6; }
4703else
cristy8b350f62009-11-15 23:12:43 +00004704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004705$as_echo "no" >&6; }
4706fi
4707
4708
4709 test -n "$ac_ct_CC" && break
4710done
4711
4712 if test "x$ac_ct_CC" = x; then
4713 CC=""
4714 else
4715 case $cross_compiling:$ac_tool_warned in
4716yes:)
cristy8b350f62009-11-15 23:12:43 +00004717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4719ac_tool_warned=yes ;;
4720esac
4721 CC=$ac_ct_CC
4722 fi
4723fi
4724
4725fi
4726
4727
cristy8b350f62009-11-15 23:12:43 +00004728test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004730as_fn_error $? "no acceptable C compiler found in \$PATH
4731See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004732
4733# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004734$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004735set X $ac_compile
4736ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004737for ac_option in --version -v -V -qversion; do
4738 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004739case "(($ac_try" in
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4742esac
cristy8b350f62009-11-15 23:12:43 +00004743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4744$as_echo "$ac_try_echo"; } >&5
4745 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004746 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004747 if test -s conftest.err; then
4748 sed '10a\
4749... rest of stderr output deleted ...
4750 10q' conftest.err >conftest.er1
4751 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004752 fi
cristycd4c5312009-11-22 01:19:08 +00004753 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4755 test $ac_status = 0; }
4756done
cristy3ed852e2009-09-05 21:47:34 +00004757
cristy8b350f62009-11-15 23:12:43 +00004758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004759/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004760
cristy3ed852e2009-09-05 21:47:34 +00004761int
4762main ()
4763{
4764
4765 ;
4766 return 0;
4767}
4768_ACEOF
4769ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004770ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004771# Try to create an executable without -o first, disregard a.out.
4772# It will help us diagnose broken compilers, and finding out an intuition
4773# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4775$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004776ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4777
4778# The possible output files:
4779ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4780
4781ac_rmfiles=
4782for ac_file in $ac_files
4783do
4784 case $ac_file in
4785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4786 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4787 esac
4788done
4789rm -f $ac_rmfiles
4790
cristy8b350f62009-11-15 23:12:43 +00004791if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004792case "(($ac_try" in
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4795esac
cristy8b350f62009-11-15 23:12:43 +00004796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4797$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004798 (eval "$ac_link_default") 2>&5
4799 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4801 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004802 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4803# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4804# in a Makefile. We should not override ac_cv_exeext if it was cached,
4805# so that the user can short-circuit this test for compilers unknown to
4806# Autoconf.
4807for ac_file in $ac_files ''
4808do
4809 test -f "$ac_file" || continue
4810 case $ac_file in
4811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4812 ;;
4813 [ab].out )
4814 # We found the default executable, but exeext='' is most
4815 # certainly right.
4816 break;;
4817 *.* )
cristy8b350f62009-11-15 23:12:43 +00004818 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004819 then :; else
4820 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4821 fi
4822 # We set ac_cv_exeext here because the later test for it is not
4823 # safe: cross compilers may not add the suffix if given an `-o'
4824 # argument, so we may need to know it at that point already.
4825 # Even if this section looks crufty: it has the advantage of
4826 # actually working.
4827 break;;
4828 * )
4829 break;;
4830 esac
4831done
4832test "$ac_cv_exeext" = no && ac_cv_exeext=
4833
4834else
4835 ac_file=''
4836fi
cristy8b350f62009-11-15 23:12:43 +00004837if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839$as_echo "no" >&6; }
4840$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004841sed 's/^/| /' conftest.$ac_ext >&5
4842
cristy8b350f62009-11-15 23:12:43 +00004843{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004845as_fn_error 77 "C compiler cannot create executables
4846See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004847else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4849$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004850fi
cristycd4c5312009-11-22 01:19:08 +00004851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4852$as_echo_n "checking for C compiler default output file name... " >&6; }
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4854$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004855ac_exeext=$ac_cv_exeext
4856
cristycd4c5312009-11-22 01:19:08 +00004857rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004858ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004860$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004861if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004862case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865esac
cristy8b350f62009-11-15 23:12:43 +00004866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4867$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004868 (eval "$ac_link") 2>&5
4869 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4871 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004872 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4873# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4874# work properly (i.e., refer to `conftest.exe'), while it won't with
4875# `rm'.
4876for ac_file in conftest.exe conftest conftest.*; do
4877 test -f "$ac_file" || continue
4878 case $ac_file in
4879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4880 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4881 break;;
4882 * ) break;;
4883 esac
4884done
4885else
cristy8b350f62009-11-15 23:12:43 +00004886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004888as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4889See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004890fi
cristycd4c5312009-11-22 01:19:08 +00004891rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004893$as_echo "$ac_cv_exeext" >&6; }
4894
4895rm -f conftest.$ac_ext
4896EXEEXT=$ac_cv_exeext
4897ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899/* end confdefs.h. */
4900#include <stdio.h>
4901int
4902main ()
4903{
4904FILE *f = fopen ("conftest.out", "w");
4905 return ferror (f) || fclose (f) != 0;
4906
4907 ;
4908 return 0;
4909}
4910_ACEOF
4911ac_clean_files="$ac_clean_files conftest.out"
4912# Check that the compiler produces executables we can run. If not, either
4913# the compiler is broken, or we cross compile.
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4915$as_echo_n "checking whether we are cross compiling... " >&6; }
4916if test "$cross_compiling" != yes; then
4917 { { ac_try="$ac_link"
4918case "(($ac_try" in
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4921esac
4922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4923$as_echo "$ac_try_echo"; } >&5
4924 (eval "$ac_link") 2>&5
4925 ac_status=$?
4926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4927 test $ac_status = 0; }
4928 if { ac_try='./conftest$ac_cv_exeext'
4929 { { case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932esac
4933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4934$as_echo "$ac_try_echo"; } >&5
4935 (eval "$ac_try") 2>&5
4936 ac_status=$?
4937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4938 test $ac_status = 0; }; }; then
4939 cross_compiling=no
4940 else
4941 if test "$cross_compiling" = maybe; then
4942 cross_compiling=yes
4943 else
4944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004946as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004947If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004948See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004949 fi
4950 fi
4951fi
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4953$as_echo "$cross_compiling" >&6; }
4954
4955rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4956ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004958$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004959if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004960 $as_echo_n "(cached) " >&6
4961else
cristy8b350f62009-11-15 23:12:43 +00004962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004963/* end confdefs.h. */
4964
4965int
4966main ()
4967{
4968
4969 ;
4970 return 0;
4971}
4972_ACEOF
4973rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004974if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004975case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978esac
cristy8b350f62009-11-15 23:12:43 +00004979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4980$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004981 (eval "$ac_compile") 2>&5
4982 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4984 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004985 for ac_file in conftest.o conftest.obj conftest.*; do
4986 test -f "$ac_file" || continue;
4987 case $ac_file in
4988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4989 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4990 break;;
4991 esac
4992done
4993else
4994 $as_echo "$as_me: failed program was:" >&5
4995sed 's/^/| /' conftest.$ac_ext >&5
4996
cristy8b350f62009-11-15 23:12:43 +00004997{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004999as_fn_error $? "cannot compute suffix of object files: cannot compile
5000See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005001fi
cristy3ed852e2009-09-05 21:47:34 +00005002rm -f conftest.$ac_cv_objext conftest.$ac_ext
5003fi
cristy8b350f62009-11-15 23:12:43 +00005004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005005$as_echo "$ac_cv_objext" >&6; }
5006OBJEXT=$ac_cv_objext
5007ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005009$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005010if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005011 $as_echo_n "(cached) " >&6
5012else
cristy8b350f62009-11-15 23:12:43 +00005013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005014/* end confdefs.h. */
5015
5016int
5017main ()
5018{
5019#ifndef __GNUC__
5020 choke me
5021#endif
5022
5023 ;
5024 return 0;
5025}
5026_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005027if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005028 ac_compiler_gnu=yes
5029else
cristy8b350f62009-11-15 23:12:43 +00005030 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005031fi
cristy3ed852e2009-09-05 21:47:34 +00005032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033ac_cv_c_compiler_gnu=$ac_compiler_gnu
5034
5035fi
cristy8b350f62009-11-15 23:12:43 +00005036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005037$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5038if test $ac_compiler_gnu = yes; then
5039 GCC=yes
5040else
5041 GCC=
5042fi
5043ac_test_CFLAGS=${CFLAGS+set}
5044ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005046$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005047if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005048 $as_echo_n "(cached) " >&6
5049else
5050 ac_save_c_werror_flag=$ac_c_werror_flag
5051 ac_c_werror_flag=yes
5052 ac_cv_prog_cc_g=no
5053 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005055/* end confdefs.h. */
5056
5057int
5058main ()
5059{
5060
5061 ;
5062 return 0;
5063}
5064_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005065if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005066 ac_cv_prog_cc_g=yes
5067else
cristy8b350f62009-11-15 23:12:43 +00005068 CFLAGS=""
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005070/* end confdefs.h. */
5071
5072int
5073main ()
5074{
5075
5076 ;
5077 return 0;
5078}
5079_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005080if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005081
cristy8b350f62009-11-15 23:12:43 +00005082else
5083 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005084 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005086/* end confdefs.h. */
5087
5088int
5089main ()
5090{
5091
5092 ;
5093 return 0;
5094}
5095_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005096if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005097 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005098fi
cristy3ed852e2009-09-05 21:47:34 +00005099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100fi
cristy3ed852e2009-09-05 21:47:34 +00005101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102fi
cristy3ed852e2009-09-05 21:47:34 +00005103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104 ac_c_werror_flag=$ac_save_c_werror_flag
5105fi
cristy8b350f62009-11-15 23:12:43 +00005106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005107$as_echo "$ac_cv_prog_cc_g" >&6; }
5108if test "$ac_test_CFLAGS" = set; then
5109 CFLAGS=$ac_save_CFLAGS
5110elif test $ac_cv_prog_cc_g = yes; then
5111 if test "$GCC" = yes; then
5112 CFLAGS="-g -O2"
5113 else
5114 CFLAGS="-g"
5115 fi
5116else
5117 if test "$GCC" = yes; then
5118 CFLAGS="-O2"
5119 else
5120 CFLAGS=
5121 fi
5122fi
cristy8b350f62009-11-15 23:12:43 +00005123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005124$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005125if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005126 $as_echo_n "(cached) " >&6
5127else
5128 ac_cv_prog_cc_c89=no
5129ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005131/* end confdefs.h. */
5132#include <stdarg.h>
5133#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005134struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005135/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5136struct buf { int x; };
5137FILE * (*rcsopen) (struct buf *, struct stat *, int);
5138static char *e (p, i)
5139 char **p;
5140 int i;
5141{
5142 return p[i];
5143}
5144static char *f (char * (*g) (char **, int), char **p, ...)
5145{
5146 char *s;
5147 va_list v;
5148 va_start (v,p);
5149 s = g (p, va_arg (v,int));
5150 va_end (v);
5151 return s;
5152}
5153
5154/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5155 function prototypes and stuff, but not '\xHH' hex character constants.
5156 These don't provoke an error unfortunately, instead are silently treated
5157 as 'x'. The following induces an error, until -std is added to get
5158 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5159 array size at least. It's necessary to write '\x00'==0 to get something
5160 that's true only with -std. */
5161int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5162
5163/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5164 inside strings and character constants. */
5165#define FOO(x) 'x'
5166int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5167
5168int test (int i, double x);
5169struct s1 {int (*f) (int a);};
5170struct s2 {int (*f) (double a);};
5171int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5172int argc;
5173char **argv;
5174int
5175main ()
5176{
5177return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5178 ;
5179 return 0;
5180}
5181_ACEOF
5182for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5183 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5184do
5185 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005186 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005187 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005188fi
cristy3ed852e2009-09-05 21:47:34 +00005189rm -f core conftest.err conftest.$ac_objext
5190 test "x$ac_cv_prog_cc_c89" != "xno" && break
5191done
5192rm -f conftest.$ac_ext
5193CC=$ac_save_CC
5194
5195fi
5196# AC_CACHE_VAL
5197case "x$ac_cv_prog_cc_c89" in
5198 x)
cristy8b350f62009-11-15 23:12:43 +00005199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005200$as_echo "none needed" >&6; } ;;
5201 xno)
cristy8b350f62009-11-15 23:12:43 +00005202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005203$as_echo "unsupported" >&6; } ;;
5204 *)
5205 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005207$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5208esac
cristy8b350f62009-11-15 23:12:43 +00005209if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005210
cristy8b350f62009-11-15 23:12:43 +00005211fi
cristy3ed852e2009-09-05 21:47:34 +00005212
5213ac_ext=c
5214ac_cpp='$CPP $CPPFLAGS'
5215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005218
cristy73bd4a52010-10-05 11:24:23 +00005219depcc="$CC" am_compiler_list=
5220
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5222$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005223if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005224 $as_echo_n "(cached) " >&6
5225else
5226 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5227 # We make a subdir and do the tests there. Otherwise we can end up
5228 # making bogus files that we don't know about and never remove. For
5229 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005230 # making a dummy file named 'D' -- because '-MD' means "put the output
5231 # in D".
cristy7247bba2012-02-05 16:37:27 +00005232 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005233 mkdir conftest.dir
5234 # Copy depcomp to subdir because otherwise we won't find it if we're
5235 # using a relative directory.
5236 cp "$am_depcomp" conftest.dir
5237 cd conftest.dir
5238 # We will build objects and dependencies in a subdirectory because
5239 # it helps to detect inapplicable dependency modes. For instance
5240 # both Tru64's cc and ICC support -MD to output dependencies as a
5241 # side effect of compilation, but ICC will put the dependencies in
5242 # the current directory while Tru64 will put them in the object
5243 # directory.
5244 mkdir sub
5245
5246 am_cv_CC_dependencies_compiler_type=none
5247 if test "$am_compiler_list" = ""; then
5248 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5249 fi
5250 am__universal=false
5251 case " $depcc " in #(
5252 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5253 esac
5254
5255 for depmode in $am_compiler_list; do
5256 # Setup a source with many dependencies, because some compilers
5257 # like to wrap large dependency lists on column 80 (with \), and
5258 # we should not choose a depcomp mode which is confused by this.
5259 #
5260 # We need to recreate these files for each test, as the compiler may
5261 # overwrite some of them when testing with obscure command lines.
5262 # This happens at least with the AIX C compiler.
5263 : > sub/conftest.c
5264 for i in 1 2 3 4 5 6; do
5265 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005266 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5267 # Solaris 10 /bin/sh.
5268 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005269 done
5270 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5271
cristyc0890a62012-07-19 00:18:20 +00005272 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005273 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005274 # handle '-M -o', and we need to detect this. Also, some Intel
5275 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005276 am__obj=sub/conftest.${OBJEXT-o}
5277 am__minus_obj="-o $am__obj"
5278 case $depmode in
5279 gcc)
5280 # This depmode causes a compiler race in universal mode.
5281 test "$am__universal" = false || continue
5282 ;;
5283 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005284 # After this tag, mechanisms are not by side-effect, so they'll
5285 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005286 if test "x$enable_dependency_tracking" = xyes; then
5287 continue
5288 else
5289 break
5290 fi
5291 ;;
cristy7247bba2012-02-05 16:37:27 +00005292 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005293 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005294 # not run yet. These depmodes are late enough in the game, and
5295 # so weak that their functioning should not be impacted.
5296 am__obj=conftest.${OBJEXT-o}
5297 am__minus_obj=
5298 ;;
5299 none) break ;;
5300 esac
5301 if depmode=$depmode \
5302 source=sub/conftest.c object=$am__obj \
5303 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5304 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5305 >/dev/null 2>conftest.err &&
5306 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5307 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5308 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5309 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5310 # icc doesn't choke on unknown options, it will just issue warnings
5311 # or remarks (even with -Werror). So we grep stderr for any message
5312 # that says an option was ignored or not supported.
5313 # When given -MP, icc 7.0 and 7.1 complain thusly:
5314 # icc: Command line warning: ignoring option '-M'; no argument required
5315 # The diagnosis changed in icc 8.0:
5316 # icc: Command line remark: option '-MP' not supported
5317 if (grep 'ignoring option' conftest.err ||
5318 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5319 am_cv_CC_dependencies_compiler_type=$depmode
5320 break
5321 fi
5322 fi
5323 done
5324
5325 cd ..
5326 rm -rf conftest.dir
5327else
5328 am_cv_CC_dependencies_compiler_type=none
5329fi
5330
5331fi
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5333$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5334CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5335
5336 if
5337 test "x$enable_dependency_tracking" != xno \
5338 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5339 am__fastdepCC_TRUE=
5340 am__fastdepCC_FALSE='#'
5341else
5342 am__fastdepCC_TRUE='#'
5343 am__fastdepCC_FALSE=
5344fi
5345
5346
cristy3ed852e2009-09-05 21:47:34 +00005347
cristya0b81c32010-01-22 02:54:33 +00005348ac_ext=c
5349ac_cpp='$CPP $CPPFLAGS'
5350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352ac_compiler_gnu=$ac_cv_c_compiler_gnu
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5354$as_echo_n "checking how to run the C preprocessor... " >&6; }
5355# On Suns, sometimes $CPP names a directory.
5356if test -n "$CPP" && test -d "$CPP"; then
5357 CPP=
5358fi
5359if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005360 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005361 $as_echo_n "(cached) " >&6
5362else
5363 # Double quotes because CPP needs to be expanded
5364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5365 do
5366 ac_preproc_ok=false
5367for ac_c_preproc_warn_flag in '' yes
5368do
5369 # Use a header file that comes with gcc, so configuring glibc
5370 # with a fresh cross-compiler works.
5371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5372 # <limits.h> exists even on freestanding compilers.
5373 # On the NeXT, cc -E runs the code through the compiler's parser,
5374 # not just through cpp. "Syntax error" is here to catch this case.
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376/* end confdefs.h. */
5377#ifdef __STDC__
5378# include <limits.h>
5379#else
5380# include <assert.h>
5381#endif
5382 Syntax error
5383_ACEOF
5384if ac_fn_c_try_cpp "$LINENO"; then :
5385
5386else
5387 # Broken: fails on valid input.
5388continue
5389fi
cristyda16f162011-02-19 23:52:17 +00005390rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005391
5392 # OK, works on sane cases. Now check whether nonexistent headers
5393 # can be detected and how.
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h. */
5396#include <ac_nonexistent.h>
5397_ACEOF
5398if ac_fn_c_try_cpp "$LINENO"; then :
5399 # Broken: success on invalid input.
5400continue
5401else
5402 # Passes both tests.
5403ac_preproc_ok=:
5404break
5405fi
cristyda16f162011-02-19 23:52:17 +00005406rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005407
5408done
5409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005410rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005411if $ac_preproc_ok; then :
5412 break
5413fi
5414
5415 done
5416 ac_cv_prog_CPP=$CPP
5417
5418fi
5419 CPP=$ac_cv_prog_CPP
5420else
5421 ac_cv_prog_CPP=$CPP
5422fi
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5424$as_echo "$CPP" >&6; }
5425ac_preproc_ok=false
5426for ac_c_preproc_warn_flag in '' yes
5427do
5428 # Use a header file that comes with gcc, so configuring glibc
5429 # with a fresh cross-compiler works.
5430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5431 # <limits.h> exists even on freestanding compilers.
5432 # On the NeXT, cc -E runs the code through the compiler's parser,
5433 # not just through cpp. "Syntax error" is here to catch this case.
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h. */
5436#ifdef __STDC__
5437# include <limits.h>
5438#else
5439# include <assert.h>
5440#endif
5441 Syntax error
5442_ACEOF
5443if ac_fn_c_try_cpp "$LINENO"; then :
5444
5445else
5446 # Broken: fails on valid input.
5447continue
5448fi
cristyda16f162011-02-19 23:52:17 +00005449rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005450
5451 # OK, works on sane cases. Now check whether nonexistent headers
5452 # can be detected and how.
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h. */
5455#include <ac_nonexistent.h>
5456_ACEOF
5457if ac_fn_c_try_cpp "$LINENO"; then :
5458 # Broken: success on invalid input.
5459continue
5460else
5461 # Passes both tests.
5462ac_preproc_ok=:
5463break
5464fi
cristyda16f162011-02-19 23:52:17 +00005465rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005466
5467done
5468# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005469rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005470if $ac_preproc_ok; then :
5471
5472else
5473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005475as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5476See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005477fi
5478
5479ac_ext=c
5480ac_cpp='$CPP $CPPFLAGS'
5481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5483ac_compiler_gnu=$ac_cv_c_compiler_gnu
5484
5485
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5487$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005488if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005489 $as_echo_n "(cached) " >&6
5490else
5491 if test -z "$GREP"; then
5492 ac_path_GREP_found=false
5493 # Loop through the user's path and test for each of PROGNAME-LIST
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5496do
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_prog in grep ggrep; do
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005502 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005503# Check for GNU ac_path_GREP and select it if it is found.
5504 # Check for GNU $ac_path_GREP
5505case `"$ac_path_GREP" --version 2>&1` in
5506*GNU*)
5507 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5508*)
5509 ac_count=0
5510 $as_echo_n 0123456789 >"conftest.in"
5511 while :
5512 do
5513 cat "conftest.in" "conftest.in" >"conftest.tmp"
5514 mv "conftest.tmp" "conftest.in"
5515 cp "conftest.in" "conftest.nl"
5516 $as_echo 'GREP' >> "conftest.nl"
5517 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5518 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5519 as_fn_arith $ac_count + 1 && ac_count=$as_val
5520 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5521 # Best one so far, save it but keep looking for a better one
5522 ac_cv_path_GREP="$ac_path_GREP"
5523 ac_path_GREP_max=$ac_count
5524 fi
5525 # 10*(2^10) chars as input seems more than enough
5526 test $ac_count -gt 10 && break
5527 done
5528 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5529esac
5530
5531 $ac_path_GREP_found && break 3
5532 done
5533 done
5534 done
5535IFS=$as_save_IFS
5536 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005537 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005538 fi
5539else
5540 ac_cv_path_GREP=$GREP
5541fi
5542
5543fi
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5545$as_echo "$ac_cv_path_GREP" >&6; }
5546 GREP="$ac_cv_path_GREP"
5547
5548
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5550$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005551if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005552 $as_echo_n "(cached) " >&6
5553else
5554 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5555 then ac_cv_path_EGREP="$GREP -E"
5556 else
5557 if test -z "$EGREP"; then
5558 ac_path_EGREP_found=false
5559 # Loop through the user's path and test for each of PROGNAME-LIST
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5562do
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_prog in egrep; do
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005568 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005569# Check for GNU ac_path_EGREP and select it if it is found.
5570 # Check for GNU $ac_path_EGREP
5571case `"$ac_path_EGREP" --version 2>&1` in
5572*GNU*)
5573 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5574*)
5575 ac_count=0
5576 $as_echo_n 0123456789 >"conftest.in"
5577 while :
5578 do
5579 cat "conftest.in" "conftest.in" >"conftest.tmp"
5580 mv "conftest.tmp" "conftest.in"
5581 cp "conftest.in" "conftest.nl"
5582 $as_echo 'EGREP' >> "conftest.nl"
5583 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5585 as_fn_arith $ac_count + 1 && ac_count=$as_val
5586 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5587 # Best one so far, save it but keep looking for a better one
5588 ac_cv_path_EGREP="$ac_path_EGREP"
5589 ac_path_EGREP_max=$ac_count
5590 fi
5591 # 10*(2^10) chars as input seems more than enough
5592 test $ac_count -gt 10 && break
5593 done
5594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5595esac
5596
5597 $ac_path_EGREP_found && break 3
5598 done
5599 done
5600 done
5601IFS=$as_save_IFS
5602 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005603 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005604 fi
5605else
5606 ac_cv_path_EGREP=$EGREP
5607fi
5608
5609 fi
5610fi
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5612$as_echo "$ac_cv_path_EGREP" >&6; }
5613 EGREP="$ac_cv_path_EGREP"
5614
5615
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5617$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005618if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005619 $as_echo_n "(cached) " >&6
5620else
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622/* end confdefs.h. */
5623#include <stdlib.h>
5624#include <stdarg.h>
5625#include <string.h>
5626#include <float.h>
5627
5628int
5629main ()
5630{
5631
5632 ;
5633 return 0;
5634}
5635_ACEOF
5636if ac_fn_c_try_compile "$LINENO"; then :
5637 ac_cv_header_stdc=yes
5638else
5639 ac_cv_header_stdc=no
5640fi
5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642
5643if test $ac_cv_header_stdc = yes; then
5644 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646/* end confdefs.h. */
5647#include <string.h>
5648
5649_ACEOF
5650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5651 $EGREP "memchr" >/dev/null 2>&1; then :
5652
5653else
5654 ac_cv_header_stdc=no
5655fi
5656rm -f conftest*
5657
5658fi
5659
5660if test $ac_cv_header_stdc = yes; then
5661 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663/* end confdefs.h. */
5664#include <stdlib.h>
5665
5666_ACEOF
5667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5668 $EGREP "free" >/dev/null 2>&1; then :
5669
5670else
5671 ac_cv_header_stdc=no
5672fi
5673rm -f conftest*
5674
5675fi
5676
5677if test $ac_cv_header_stdc = yes; then
5678 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5679 if test "$cross_compiling" = yes; then :
5680 :
5681else
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683/* end confdefs.h. */
5684#include <ctype.h>
5685#include <stdlib.h>
5686#if ((' ' & 0x0FF) == 0x020)
5687# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5688# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5689#else
5690# define ISLOWER(c) \
5691 (('a' <= (c) && (c) <= 'i') \
5692 || ('j' <= (c) && (c) <= 'r') \
5693 || ('s' <= (c) && (c) <= 'z'))
5694# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5695#endif
5696
5697#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5698int
5699main ()
5700{
5701 int i;
5702 for (i = 0; i < 256; i++)
5703 if (XOR (islower (i), ISLOWER (i))
5704 || toupper (i) != TOUPPER (i))
5705 return 2;
5706 return 0;
5707}
5708_ACEOF
5709if ac_fn_c_try_run "$LINENO"; then :
5710
5711else
5712 ac_cv_header_stdc=no
5713fi
5714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5715 conftest.$ac_objext conftest.beam conftest.$ac_ext
5716fi
5717
5718fi
5719fi
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5721$as_echo "$ac_cv_header_stdc" >&6; }
5722if test $ac_cv_header_stdc = yes; then
5723
5724$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5725
5726fi
5727
5728# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5729for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5730 inttypes.h stdint.h unistd.h
5731do :
5732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5733ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5734"
cristy98dddb52010-11-04 00:30:15 +00005735if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005736 cat >>confdefs.h <<_ACEOF
5737#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5738_ACEOF
5739
5740fi
5741
5742done
5743
5744
5745
5746 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 +00005747if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005748 MINIX=yes
5749else
5750 MINIX=
5751fi
5752
5753
5754 if test "$MINIX" = yes; then
5755
5756$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5757
5758
5759$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5760
5761
5762$as_echo "#define _MINIX 1" >>confdefs.h
5763
5764 fi
5765
5766
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5768$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005769if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005770 $as_echo_n "(cached) " >&6
5771else
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h. */
5774
cristy14fefe52012-05-21 00:59:18 +00005775# define __EXTENSIONS__ 1
5776 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005777int
5778main ()
5779{
5780
5781 ;
5782 return 0;
5783}
5784_ACEOF
5785if ac_fn_c_try_compile "$LINENO"; then :
5786 ac_cv_safe_to_define___extensions__=yes
5787else
5788 ac_cv_safe_to_define___extensions__=no
5789fi
5790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791fi
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5793$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5794 test $ac_cv_safe_to_define___extensions__ = yes &&
5795 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5796
5797 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5798
5799 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5800
5801 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5802
5803 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5804
5805
5806
5807# Check for programs
5808ac_ext=c
5809ac_cpp='$CPP $CPPFLAGS'
5810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812ac_compiler_gnu=$ac_cv_c_compiler_gnu
5813if test -n "$ac_tool_prefix"; then
5814 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5815set dummy ${ac_tool_prefix}gcc; ac_word=$2
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005818if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005819 $as_echo_n "(cached) " >&6
5820else
5821 if test -n "$CC"; then
5822 ac_cv_prog_CC="$CC" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005831 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835done
5836 done
5837IFS=$as_save_IFS
5838
5839fi
5840fi
5841CC=$ac_cv_prog_CC
5842if test -n "$CC"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5844$as_echo "$CC" >&6; }
5845else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847$as_echo "no" >&6; }
5848fi
5849
5850
5851fi
5852if test -z "$ac_cv_prog_CC"; then
5853 ac_ct_CC=$CC
5854 # Extract the first word of "gcc", so it can be a program name with args.
5855set dummy gcc; ac_word=$2
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005858if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005859 $as_echo_n "(cached) " >&6
5860else
5861 if test -n "$ac_ct_CC"; then
5862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5863else
5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005871 ac_cv_prog_ac_ct_CC="gcc"
5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5874 fi
5875done
5876 done
5877IFS=$as_save_IFS
5878
5879fi
5880fi
5881ac_ct_CC=$ac_cv_prog_ac_ct_CC
5882if test -n "$ac_ct_CC"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5884$as_echo "$ac_ct_CC" >&6; }
5885else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887$as_echo "no" >&6; }
5888fi
5889
5890 if test "x$ac_ct_CC" = x; then
5891 CC=""
5892 else
5893 case $cross_compiling:$ac_tool_warned in
5894yes:)
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5897ac_tool_warned=yes ;;
5898esac
5899 CC=$ac_ct_CC
5900 fi
5901else
5902 CC="$ac_cv_prog_CC"
5903fi
5904
5905if test -z "$CC"; then
5906 if test -n "$ac_tool_prefix"; then
5907 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5908set dummy ${ac_tool_prefix}cc; ac_word=$2
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005911if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005912 $as_echo_n "(cached) " >&6
5913else
5914 if test -n "$CC"; then
5915 ac_cv_prog_CC="$CC" # Let the user override the test.
5916else
5917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918for as_dir in $PATH
5919do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005924 ac_cv_prog_CC="${ac_tool_prefix}cc"
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5927 fi
5928done
5929 done
5930IFS=$as_save_IFS
5931
5932fi
5933fi
5934CC=$ac_cv_prog_CC
5935if test -n "$CC"; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5937$as_echo "$CC" >&6; }
5938else
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940$as_echo "no" >&6; }
5941fi
5942
5943
5944 fi
5945fi
5946if test -z "$CC"; then
5947 # Extract the first word of "cc", so it can be a program name with args.
5948set dummy cc; ac_word=$2
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005951if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005952 $as_echo_n "(cached) " >&6
5953else
5954 if test -n "$CC"; then
5955 ac_cv_prog_CC="$CC" # Let the user override the test.
5956else
5957 ac_prog_rejected=no
5958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959for as_dir in $PATH
5960do
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005965 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5966 ac_prog_rejected=yes
5967 continue
5968 fi
5969 ac_cv_prog_CC="cc"
5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 break 2
5972 fi
5973done
5974 done
5975IFS=$as_save_IFS
5976
5977if test $ac_prog_rejected = yes; then
5978 # We found a bogon in the path, so make sure we never use it.
5979 set dummy $ac_cv_prog_CC
5980 shift
5981 if test $# != 0; then
5982 # We chose a different compiler from the bogus one.
5983 # However, it has the same basename, so the bogon will be chosen
5984 # first if we set CC to just the basename; use the full file name.
5985 shift
5986 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5987 fi
5988fi
5989fi
5990fi
5991CC=$ac_cv_prog_CC
5992if test -n "$CC"; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5994$as_echo "$CC" >&6; }
5995else
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997$as_echo "no" >&6; }
5998fi
5999
6000
6001fi
6002if test -z "$CC"; then
6003 if test -n "$ac_tool_prefix"; then
6004 for ac_prog in cl.exe
6005 do
6006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6007set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006010if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006011 $as_echo_n "(cached) " >&6
6012else
6013 if test -n "$CC"; then
6014 ac_cv_prog_CC="$CC" # Let the user override the test.
6015else
6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006023 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6026 fi
6027done
6028 done
6029IFS=$as_save_IFS
6030
6031fi
6032fi
6033CC=$ac_cv_prog_CC
6034if test -n "$CC"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6036$as_echo "$CC" >&6; }
6037else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039$as_echo "no" >&6; }
6040fi
6041
6042
6043 test -n "$CC" && break
6044 done
6045fi
6046if test -z "$CC"; then
6047 ac_ct_CC=$CC
6048 for ac_prog in cl.exe
6049do
6050 # Extract the first word of "$ac_prog", so it can be a program name with args.
6051set dummy $ac_prog; ac_word=$2
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006054if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006055 $as_echo_n "(cached) " >&6
6056else
6057 if test -n "$ac_ct_CC"; then
6058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6059else
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006067 ac_cv_prog_ac_ct_CC="$ac_prog"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071done
6072 done
6073IFS=$as_save_IFS
6074
6075fi
6076fi
6077ac_ct_CC=$ac_cv_prog_ac_ct_CC
6078if test -n "$ac_ct_CC"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6080$as_echo "$ac_ct_CC" >&6; }
6081else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083$as_echo "no" >&6; }
6084fi
6085
6086
6087 test -n "$ac_ct_CC" && break
6088done
6089
6090 if test "x$ac_ct_CC" = x; then
6091 CC=""
6092 else
6093 case $cross_compiling:$ac_tool_warned in
6094yes:)
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097ac_tool_warned=yes ;;
6098esac
6099 CC=$ac_ct_CC
6100 fi
6101fi
6102
6103fi
6104
6105
6106test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006108as_fn_error $? "no acceptable C compiler found in \$PATH
6109See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006110
6111# Provide some information about the compiler.
6112$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6113set X $ac_compile
6114ac_compiler=$2
6115for ac_option in --version -v -V -qversion; do
6116 { { ac_try="$ac_compiler $ac_option >&5"
6117case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120esac
6121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6122$as_echo "$ac_try_echo"; } >&5
6123 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6124 ac_status=$?
6125 if test -s conftest.err; then
6126 sed '10a\
6127... rest of stderr output deleted ...
6128 10q' conftest.err >conftest.er1
6129 cat conftest.er1 >&5
6130 fi
6131 rm -f conftest.er1 conftest.err
6132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6133 test $ac_status = 0; }
6134done
6135
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6137$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006138if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006139 $as_echo_n "(cached) " >&6
6140else
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142/* end confdefs.h. */
6143
6144int
6145main ()
6146{
6147#ifndef __GNUC__
6148 choke me
6149#endif
6150
6151 ;
6152 return 0;
6153}
6154_ACEOF
6155if ac_fn_c_try_compile "$LINENO"; then :
6156 ac_compiler_gnu=yes
6157else
6158 ac_compiler_gnu=no
6159fi
6160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161ac_cv_c_compiler_gnu=$ac_compiler_gnu
6162
6163fi
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6165$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6166if test $ac_compiler_gnu = yes; then
6167 GCC=yes
6168else
6169 GCC=
6170fi
6171ac_test_CFLAGS=${CFLAGS+set}
6172ac_save_CFLAGS=$CFLAGS
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6174$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006175if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006176 $as_echo_n "(cached) " >&6
6177else
6178 ac_save_c_werror_flag=$ac_c_werror_flag
6179 ac_c_werror_flag=yes
6180 ac_cv_prog_cc_g=no
6181 CFLAGS="-g"
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183/* end confdefs.h. */
6184
6185int
6186main ()
6187{
6188
6189 ;
6190 return 0;
6191}
6192_ACEOF
6193if ac_fn_c_try_compile "$LINENO"; then :
6194 ac_cv_prog_cc_g=yes
6195else
6196 CFLAGS=""
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198/* end confdefs.h. */
6199
6200int
6201main ()
6202{
6203
6204 ;
6205 return 0;
6206}
6207_ACEOF
6208if ac_fn_c_try_compile "$LINENO"; then :
6209
6210else
6211 ac_c_werror_flag=$ac_save_c_werror_flag
6212 CFLAGS="-g"
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214/* end confdefs.h. */
6215
6216int
6217main ()
6218{
6219
6220 ;
6221 return 0;
6222}
6223_ACEOF
6224if ac_fn_c_try_compile "$LINENO"; then :
6225 ac_cv_prog_cc_g=yes
6226fi
6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228fi
6229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230fi
6231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 ac_c_werror_flag=$ac_save_c_werror_flag
6233fi
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6235$as_echo "$ac_cv_prog_cc_g" >&6; }
6236if test "$ac_test_CFLAGS" = set; then
6237 CFLAGS=$ac_save_CFLAGS
6238elif test $ac_cv_prog_cc_g = yes; then
6239 if test "$GCC" = yes; then
6240 CFLAGS="-g -O2"
6241 else
6242 CFLAGS="-g"
6243 fi
6244else
6245 if test "$GCC" = yes; then
6246 CFLAGS="-O2"
6247 else
6248 CFLAGS=
6249 fi
6250fi
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6252$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006253if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006254 $as_echo_n "(cached) " >&6
6255else
6256 ac_cv_prog_cc_c89=no
6257ac_save_CC=$CC
6258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259/* end confdefs.h. */
6260#include <stdarg.h>
6261#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006262struct stat;
cristya0b81c32010-01-22 02:54:33 +00006263/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6264struct buf { int x; };
6265FILE * (*rcsopen) (struct buf *, struct stat *, int);
6266static char *e (p, i)
6267 char **p;
6268 int i;
6269{
6270 return p[i];
6271}
6272static char *f (char * (*g) (char **, int), char **p, ...)
6273{
6274 char *s;
6275 va_list v;
6276 va_start (v,p);
6277 s = g (p, va_arg (v,int));
6278 va_end (v);
6279 return s;
6280}
6281
6282/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6283 function prototypes and stuff, but not '\xHH' hex character constants.
6284 These don't provoke an error unfortunately, instead are silently treated
6285 as 'x'. The following induces an error, until -std is added to get
6286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6287 array size at least. It's necessary to write '\x00'==0 to get something
6288 that's true only with -std. */
6289int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6290
6291/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6292 inside strings and character constants. */
6293#define FOO(x) 'x'
6294int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6295
6296int test (int i, double x);
6297struct s1 {int (*f) (int a);};
6298struct s2 {int (*f) (double a);};
6299int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6300int argc;
6301char **argv;
6302int
6303main ()
6304{
6305return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6306 ;
6307 return 0;
6308}
6309_ACEOF
6310for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6312do
6313 CC="$ac_save_CC $ac_arg"
6314 if ac_fn_c_try_compile "$LINENO"; then :
6315 ac_cv_prog_cc_c89=$ac_arg
6316fi
6317rm -f core conftest.err conftest.$ac_objext
6318 test "x$ac_cv_prog_cc_c89" != "xno" && break
6319done
6320rm -f conftest.$ac_ext
6321CC=$ac_save_CC
6322
6323fi
6324# AC_CACHE_VAL
6325case "x$ac_cv_prog_cc_c89" in
6326 x)
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6328$as_echo "none needed" >&6; } ;;
6329 xno)
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6331$as_echo "unsupported" >&6; } ;;
6332 *)
6333 CC="$CC $ac_cv_prog_cc_c89"
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6335$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6336esac
6337if test "x$ac_cv_prog_cc_c89" != xno; then :
6338
6339fi
6340
6341ac_ext=c
6342ac_cpp='$CPP $CPPFLAGS'
6343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6345ac_compiler_gnu=$ac_cv_c_compiler_gnu
6346
cristy73bd4a52010-10-05 11:24:23 +00006347depcc="$CC" am_compiler_list=
6348
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6350$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006351if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006352 $as_echo_n "(cached) " >&6
6353else
6354 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6355 # We make a subdir and do the tests there. Otherwise we can end up
6356 # making bogus files that we don't know about and never remove. For
6357 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006358 # making a dummy file named 'D' -- because '-MD' means "put the output
6359 # in D".
cristy7247bba2012-02-05 16:37:27 +00006360 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006361 mkdir conftest.dir
6362 # Copy depcomp to subdir because otherwise we won't find it if we're
6363 # using a relative directory.
6364 cp "$am_depcomp" conftest.dir
6365 cd conftest.dir
6366 # We will build objects and dependencies in a subdirectory because
6367 # it helps to detect inapplicable dependency modes. For instance
6368 # both Tru64's cc and ICC support -MD to output dependencies as a
6369 # side effect of compilation, but ICC will put the dependencies in
6370 # the current directory while Tru64 will put them in the object
6371 # directory.
6372 mkdir sub
6373
6374 am_cv_CC_dependencies_compiler_type=none
6375 if test "$am_compiler_list" = ""; then
6376 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6377 fi
6378 am__universal=false
6379 case " $depcc " in #(
6380 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6381 esac
6382
6383 for depmode in $am_compiler_list; do
6384 # Setup a source with many dependencies, because some compilers
6385 # like to wrap large dependency lists on column 80 (with \), and
6386 # we should not choose a depcomp mode which is confused by this.
6387 #
6388 # We need to recreate these files for each test, as the compiler may
6389 # overwrite some of them when testing with obscure command lines.
6390 # This happens at least with the AIX C compiler.
6391 : > sub/conftest.c
6392 for i in 1 2 3 4 5 6; do
6393 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006394 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6395 # Solaris 10 /bin/sh.
6396 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006397 done
6398 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6399
cristyc0890a62012-07-19 00:18:20 +00006400 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006401 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006402 # handle '-M -o', and we need to detect this. Also, some Intel
6403 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006404 am__obj=sub/conftest.${OBJEXT-o}
6405 am__minus_obj="-o $am__obj"
6406 case $depmode in
6407 gcc)
6408 # This depmode causes a compiler race in universal mode.
6409 test "$am__universal" = false || continue
6410 ;;
6411 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006412 # After this tag, mechanisms are not by side-effect, so they'll
6413 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006414 if test "x$enable_dependency_tracking" = xyes; then
6415 continue
6416 else
6417 break
6418 fi
6419 ;;
cristy7247bba2012-02-05 16:37:27 +00006420 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006421 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006422 # not run yet. These depmodes are late enough in the game, and
6423 # so weak that their functioning should not be impacted.
6424 am__obj=conftest.${OBJEXT-o}
6425 am__minus_obj=
6426 ;;
6427 none) break ;;
6428 esac
6429 if depmode=$depmode \
6430 source=sub/conftest.c object=$am__obj \
6431 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6432 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6433 >/dev/null 2>conftest.err &&
6434 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6435 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6436 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6437 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6438 # icc doesn't choke on unknown options, it will just issue warnings
6439 # or remarks (even with -Werror). So we grep stderr for any message
6440 # that says an option was ignored or not supported.
6441 # When given -MP, icc 7.0 and 7.1 complain thusly:
6442 # icc: Command line warning: ignoring option '-M'; no argument required
6443 # The diagnosis changed in icc 8.0:
6444 # icc: Command line remark: option '-MP' not supported
6445 if (grep 'ignoring option' conftest.err ||
6446 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6447 am_cv_CC_dependencies_compiler_type=$depmode
6448 break
6449 fi
6450 fi
6451 done
6452
6453 cd ..
6454 rm -rf conftest.dir
6455else
6456 am_cv_CC_dependencies_compiler_type=none
6457fi
6458
6459fi
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6461$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6462CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6463
6464 if
6465 test "x$enable_dependency_tracking" != xno \
6466 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6467 am__fastdepCC_TRUE=
6468 am__fastdepCC_FALSE='#'
6469else
6470 am__fastdepCC_TRUE='#'
6471 am__fastdepCC_FALSE=
6472fi
6473
6474
cristy95646052009-11-28 23:05:30 +00006475ac_ext=cpp
6476ac_cpp='$CXXCPP $CPPFLAGS'
6477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6480if test -z "$CXX"; then
6481 if test -n "$CCC"; then
6482 CXX=$CCC
6483 else
6484 if test -n "$ac_tool_prefix"; then
6485 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6486 do
6487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6488set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006491if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006492 $as_echo_n "(cached) " >&6
6493else
6494 if test -n "$CXX"; then
6495 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6496else
6497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498for as_dir in $PATH
6499do
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006504 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 break 2
6507 fi
6508done
6509 done
6510IFS=$as_save_IFS
6511
6512fi
6513fi
6514CXX=$ac_cv_prog_CXX
6515if test -n "$CXX"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6517$as_echo "$CXX" >&6; }
6518else
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520$as_echo "no" >&6; }
6521fi
6522
6523
6524 test -n "$CXX" && break
6525 done
6526fi
6527if test -z "$CXX"; then
6528 ac_ct_CXX=$CXX
6529 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6530do
6531 # Extract the first word of "$ac_prog", so it can be a program name with args.
6532set dummy $ac_prog; ac_word=$2
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006535if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006536 $as_echo_n "(cached) " >&6
6537else
6538 if test -n "$ac_ct_CXX"; then
6539 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6540else
6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542for as_dir in $PATH
6543do
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006548 ac_cv_prog_ac_ct_CXX="$ac_prog"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6551 fi
6552done
6553 done
6554IFS=$as_save_IFS
6555
6556fi
6557fi
6558ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6559if test -n "$ac_ct_CXX"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6561$as_echo "$ac_ct_CXX" >&6; }
6562else
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564$as_echo "no" >&6; }
6565fi
6566
6567
6568 test -n "$ac_ct_CXX" && break
6569done
6570
6571 if test "x$ac_ct_CXX" = x; then
6572 CXX="g++"
6573 else
6574 case $cross_compiling:$ac_tool_warned in
6575yes:)
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6578ac_tool_warned=yes ;;
6579esac
6580 CXX=$ac_ct_CXX
6581 fi
6582fi
6583
6584 fi
6585fi
6586# Provide some information about the compiler.
6587$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6588set X $ac_compile
6589ac_compiler=$2
6590for ac_option in --version -v -V -qversion; do
6591 { { ac_try="$ac_compiler $ac_option >&5"
6592case "(($ac_try" in
6593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594 *) ac_try_echo=$ac_try;;
6595esac
6596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6597$as_echo "$ac_try_echo"; } >&5
6598 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6599 ac_status=$?
6600 if test -s conftest.err; then
6601 sed '10a\
6602... rest of stderr output deleted ...
6603 10q' conftest.err >conftest.er1
6604 cat conftest.er1 >&5
6605 fi
6606 rm -f conftest.er1 conftest.err
6607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608 test $ac_status = 0; }
6609done
6610
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6612$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006613if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006614 $as_echo_n "(cached) " >&6
6615else
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617/* end confdefs.h. */
6618
6619int
6620main ()
6621{
6622#ifndef __GNUC__
6623 choke me
6624#endif
6625
6626 ;
6627 return 0;
6628}
6629_ACEOF
6630if ac_fn_cxx_try_compile "$LINENO"; then :
6631 ac_compiler_gnu=yes
6632else
6633 ac_compiler_gnu=no
6634fi
6635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6637
6638fi
6639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6640$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6641if test $ac_compiler_gnu = yes; then
6642 GXX=yes
6643else
6644 GXX=
6645fi
6646ac_test_CXXFLAGS=${CXXFLAGS+set}
6647ac_save_CXXFLAGS=$CXXFLAGS
6648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6649$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006650if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006651 $as_echo_n "(cached) " >&6
6652else
6653 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6654 ac_cxx_werror_flag=yes
6655 ac_cv_prog_cxx_g=no
6656 CXXFLAGS="-g"
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658/* end confdefs.h. */
6659
6660int
6661main ()
6662{
6663
6664 ;
6665 return 0;
6666}
6667_ACEOF
6668if ac_fn_cxx_try_compile "$LINENO"; then :
6669 ac_cv_prog_cxx_g=yes
6670else
6671 CXXFLAGS=""
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673/* end confdefs.h. */
6674
6675int
6676main ()
6677{
6678
6679 ;
6680 return 0;
6681}
6682_ACEOF
6683if ac_fn_cxx_try_compile "$LINENO"; then :
6684
6685else
6686 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6687 CXXFLAGS="-g"
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689/* end confdefs.h. */
6690
6691int
6692main ()
6693{
6694
6695 ;
6696 return 0;
6697}
6698_ACEOF
6699if ac_fn_cxx_try_compile "$LINENO"; then :
6700 ac_cv_prog_cxx_g=yes
6701fi
6702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6703fi
6704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705fi
6706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6708fi
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6710$as_echo "$ac_cv_prog_cxx_g" >&6; }
6711if test "$ac_test_CXXFLAGS" = set; then
6712 CXXFLAGS=$ac_save_CXXFLAGS
6713elif test $ac_cv_prog_cxx_g = yes; then
6714 if test "$GXX" = yes; then
6715 CXXFLAGS="-g -O2"
6716 else
6717 CXXFLAGS="-g"
6718 fi
6719else
6720 if test "$GXX" = yes; then
6721 CXXFLAGS="-O2"
6722 else
6723 CXXFLAGS=
6724 fi
6725fi
6726ac_ext=c
6727ac_cpp='$CPP $CPPFLAGS'
6728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6730ac_compiler_gnu=$ac_cv_c_compiler_gnu
6731
cristy73bd4a52010-10-05 11:24:23 +00006732depcc="$CXX" am_compiler_list=
6733
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6735$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006736if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006737 $as_echo_n "(cached) " >&6
6738else
6739 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6740 # We make a subdir and do the tests there. Otherwise we can end up
6741 # making bogus files that we don't know about and never remove. For
6742 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006743 # making a dummy file named 'D' -- because '-MD' means "put the output
6744 # in D".
cristy7247bba2012-02-05 16:37:27 +00006745 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006746 mkdir conftest.dir
6747 # Copy depcomp to subdir because otherwise we won't find it if we're
6748 # using a relative directory.
6749 cp "$am_depcomp" conftest.dir
6750 cd conftest.dir
6751 # We will build objects and dependencies in a subdirectory because
6752 # it helps to detect inapplicable dependency modes. For instance
6753 # both Tru64's cc and ICC support -MD to output dependencies as a
6754 # side effect of compilation, but ICC will put the dependencies in
6755 # the current directory while Tru64 will put them in the object
6756 # directory.
6757 mkdir sub
6758
6759 am_cv_CXX_dependencies_compiler_type=none
6760 if test "$am_compiler_list" = ""; then
6761 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6762 fi
6763 am__universal=false
6764 case " $depcc " in #(
6765 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6766 esac
6767
6768 for depmode in $am_compiler_list; do
6769 # Setup a source with many dependencies, because some compilers
6770 # like to wrap large dependency lists on column 80 (with \), and
6771 # we should not choose a depcomp mode which is confused by this.
6772 #
6773 # We need to recreate these files for each test, as the compiler may
6774 # overwrite some of them when testing with obscure command lines.
6775 # This happens at least with the AIX C compiler.
6776 : > sub/conftest.c
6777 for i in 1 2 3 4 5 6; do
6778 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006779 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6780 # Solaris 10 /bin/sh.
6781 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006782 done
6783 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6784
cristyc0890a62012-07-19 00:18:20 +00006785 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006786 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006787 # handle '-M -o', and we need to detect this. Also, some Intel
6788 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006789 am__obj=sub/conftest.${OBJEXT-o}
6790 am__minus_obj="-o $am__obj"
6791 case $depmode in
6792 gcc)
6793 # This depmode causes a compiler race in universal mode.
6794 test "$am__universal" = false || continue
6795 ;;
6796 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006797 # After this tag, mechanisms are not by side-effect, so they'll
6798 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006799 if test "x$enable_dependency_tracking" = xyes; then
6800 continue
6801 else
6802 break
6803 fi
6804 ;;
cristy7247bba2012-02-05 16:37:27 +00006805 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006806 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006807 # not run yet. These depmodes are late enough in the game, and
6808 # so weak that their functioning should not be impacted.
6809 am__obj=conftest.${OBJEXT-o}
6810 am__minus_obj=
6811 ;;
6812 none) break ;;
6813 esac
6814 if depmode=$depmode \
6815 source=sub/conftest.c object=$am__obj \
6816 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6817 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6818 >/dev/null 2>conftest.err &&
6819 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6820 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6821 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6822 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6823 # icc doesn't choke on unknown options, it will just issue warnings
6824 # or remarks (even with -Werror). So we grep stderr for any message
6825 # that says an option was ignored or not supported.
6826 # When given -MP, icc 7.0 and 7.1 complain thusly:
6827 # icc: Command line warning: ignoring option '-M'; no argument required
6828 # The diagnosis changed in icc 8.0:
6829 # icc: Command line remark: option '-MP' not supported
6830 if (grep 'ignoring option' conftest.err ||
6831 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6832 am_cv_CXX_dependencies_compiler_type=$depmode
6833 break
6834 fi
6835 fi
6836 done
6837
6838 cd ..
6839 rm -rf conftest.dir
6840else
6841 am_cv_CXX_dependencies_compiler_type=none
6842fi
6843
6844fi
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6846$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6847CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6848
6849 if
6850 test "x$enable_dependency_tracking" != xno \
6851 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6852 am__fastdepCXX_TRUE=
6853 am__fastdepCXX_FALSE='#'
6854else
6855 am__fastdepCXX_TRUE='#'
6856 am__fastdepCXX_FALSE=
6857fi
6858
6859
cristy8b350f62009-11-15 23:12:43 +00006860 case $ac_cv_prog_cc_stdc in #(
6861 no) :
6862 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6863 *) :
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006865$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006866if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006867 $as_echo_n "(cached) " >&6
6868else
6869 ac_cv_prog_cc_c99=no
6870ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006872/* end confdefs.h. */
6873#include <stdarg.h>
6874#include <stdbool.h>
6875#include <stdlib.h>
6876#include <wchar.h>
6877#include <stdio.h>
6878
6879// Check varargs macros. These examples are taken from C99 6.10.3.5.
6880#define debug(...) fprintf (stderr, __VA_ARGS__)
6881#define showlist(...) puts (#__VA_ARGS__)
6882#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6883static void
6884test_varargs_macros (void)
6885{
6886 int x = 1234;
6887 int y = 5678;
6888 debug ("Flag");
6889 debug ("X = %d\n", x);
6890 showlist (The first, second, and third items.);
6891 report (x>y, "x is %d but y is %d", x, y);
6892}
6893
6894// Check long long types.
6895#define BIG64 18446744073709551615ull
6896#define BIG32 4294967295ul
6897#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6898#if !BIG_OK
6899 your preprocessor is broken;
6900#endif
6901#if BIG_OK
6902#else
6903 your preprocessor is broken;
6904#endif
6905static long long int bignum = -9223372036854775807LL;
6906static unsigned long long int ubignum = BIG64;
6907
6908struct incomplete_array
6909{
6910 int datasize;
6911 double data[];
6912};
6913
6914struct named_init {
6915 int number;
6916 const wchar_t *name;
6917 double average;
6918};
6919
6920typedef const char *ccp;
6921
6922static inline int
6923test_restrict (ccp restrict text)
6924{
6925 // See if C++-style comments work.
6926 // Iterate through items via the restricted pointer.
6927 // Also check for declarations in for loops.
6928 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6929 continue;
6930 return 0;
6931}
6932
6933// Check varargs and va_copy.
6934static void
6935test_varargs (const char *format, ...)
6936{
6937 va_list args;
6938 va_start (args, format);
6939 va_list args_copy;
6940 va_copy (args_copy, args);
6941
6942 const char *str;
6943 int number;
6944 float fnumber;
6945
6946 while (*format)
6947 {
6948 switch (*format++)
6949 {
6950 case 's': // string
6951 str = va_arg (args_copy, const char *);
6952 break;
6953 case 'd': // int
6954 number = va_arg (args_copy, int);
6955 break;
6956 case 'f': // float
6957 fnumber = va_arg (args_copy, double);
6958 break;
6959 default:
6960 break;
6961 }
6962 }
6963 va_end (args_copy);
6964 va_end (args);
6965}
6966
6967int
6968main ()
6969{
6970
6971 // Check bool.
6972 _Bool success = false;
6973
6974 // Check restrict.
6975 if (test_restrict ("String literal") == 0)
6976 success = true;
6977 char *restrict newvar = "Another string";
6978
6979 // Check varargs.
6980 test_varargs ("s, d' f .", "string", 65, 34.234);
6981 test_varargs_macros ();
6982
6983 // Check flexible array members.
6984 struct incomplete_array *ia =
6985 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6986 ia->datasize = 10;
6987 for (int i = 0; i < ia->datasize; ++i)
6988 ia->data[i] = i * 1.234;
6989
6990 // Check named initializers.
6991 struct named_init ni = {
6992 .number = 34,
6993 .name = L"Test wide string",
6994 .average = 543.34343,
6995 };
6996
6997 ni.number = 58;
6998
6999 int dynamic_array[ni.number];
7000 dynamic_array[ni.number - 1] = 543;
7001
7002 // work around unused variable warnings
7003 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7004 || dynamic_array[ni.number - 1] != 543);
7005
7006 ;
7007 return 0;
7008}
7009_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007010for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007011do
7012 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007013 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007014 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007015fi
cristy3ed852e2009-09-05 21:47:34 +00007016rm -f core conftest.err conftest.$ac_objext
7017 test "x$ac_cv_prog_cc_c99" != "xno" && break
7018done
7019rm -f conftest.$ac_ext
7020CC=$ac_save_CC
7021
7022fi
7023# AC_CACHE_VAL
7024case "x$ac_cv_prog_cc_c99" in
7025 x)
cristy8b350f62009-11-15 23:12:43 +00007026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007027$as_echo "none needed" >&6; } ;;
7028 xno)
cristy8b350f62009-11-15 23:12:43 +00007029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007030$as_echo "unsupported" >&6; } ;;
7031 *)
7032 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007034$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7035esac
cristy8b350f62009-11-15 23:12:43 +00007036if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007037 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7038else
cristy8b350f62009-11-15 23:12:43 +00007039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007040$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007041if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007042 $as_echo_n "(cached) " >&6
7043else
7044 ac_cv_prog_cc_c89=no
7045ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007047/* end confdefs.h. */
7048#include <stdarg.h>
7049#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007050struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007051/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7052struct buf { int x; };
7053FILE * (*rcsopen) (struct buf *, struct stat *, int);
7054static char *e (p, i)
7055 char **p;
7056 int i;
7057{
7058 return p[i];
7059}
7060static char *f (char * (*g) (char **, int), char **p, ...)
7061{
7062 char *s;
7063 va_list v;
7064 va_start (v,p);
7065 s = g (p, va_arg (v,int));
7066 va_end (v);
7067 return s;
7068}
7069
7070/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7071 function prototypes and stuff, but not '\xHH' hex character constants.
7072 These don't provoke an error unfortunately, instead are silently treated
7073 as 'x'. The following induces an error, until -std is added to get
7074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7075 array size at least. It's necessary to write '\x00'==0 to get something
7076 that's true only with -std. */
7077int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7078
7079/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7080 inside strings and character constants. */
7081#define FOO(x) 'x'
7082int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7083
7084int test (int i, double x);
7085struct s1 {int (*f) (int a);};
7086struct s2 {int (*f) (double a);};
7087int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7088int argc;
7089char **argv;
7090int
7091main ()
7092{
7093return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7094 ;
7095 return 0;
7096}
7097_ACEOF
7098for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7099 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7100do
7101 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007102 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007103 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007104fi
cristy3ed852e2009-09-05 21:47:34 +00007105rm -f core conftest.err conftest.$ac_objext
7106 test "x$ac_cv_prog_cc_c89" != "xno" && break
7107done
7108rm -f conftest.$ac_ext
7109CC=$ac_save_CC
7110
7111fi
7112# AC_CACHE_VAL
7113case "x$ac_cv_prog_cc_c89" in
7114 x)
cristy8b350f62009-11-15 23:12:43 +00007115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007116$as_echo "none needed" >&6; } ;;
7117 xno)
cristy8b350f62009-11-15 23:12:43 +00007118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007119$as_echo "unsupported" >&6; } ;;
7120 *)
7121 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007123$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7124esac
cristy8b350f62009-11-15 23:12:43 +00007125if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007126 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7127else
7128 ac_cv_prog_cc_stdc=no
7129fi
7130
cristy3ed852e2009-09-05 21:47:34 +00007131fi
cristy3ed852e2009-09-05 21:47:34 +00007132 ;;
7133esac
cristy8b350f62009-11-15 23:12:43 +00007134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007135$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007136 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007137 $as_echo_n "(cached) " >&6
7138fi
7139
cristy8b350f62009-11-15 23:12:43 +00007140 case $ac_cv_prog_cc_stdc in #(
7141 no) :
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7143$as_echo "unsupported" >&6; } ;; #(
7144 '') :
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7146$as_echo "none needed" >&6; } ;; #(
7147 *) :
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007149$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7150esac
7151
cristy3ed852e2009-09-05 21:47:34 +00007152ac_ext=c
7153ac_cpp='$CPP $CPPFLAGS'
7154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7156ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007158$as_echo_n "checking how to run the C preprocessor... " >&6; }
7159# On Suns, sometimes $CPP names a directory.
7160if test -n "$CPP" && test -d "$CPP"; then
7161 CPP=
7162fi
7163if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007164 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007165 $as_echo_n "(cached) " >&6
7166else
7167 # Double quotes because CPP needs to be expanded
7168 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7169 do
7170 ac_preproc_ok=false
7171for ac_c_preproc_warn_flag in '' yes
7172do
7173 # Use a header file that comes with gcc, so configuring glibc
7174 # with a fresh cross-compiler works.
7175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7176 # <limits.h> exists even on freestanding compilers.
7177 # On the NeXT, cc -E runs the code through the compiler's parser,
7178 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007180/* end confdefs.h. */
7181#ifdef __STDC__
7182# include <limits.h>
7183#else
7184# include <assert.h>
7185#endif
7186 Syntax error
7187_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007188if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007189
cristy8b350f62009-11-15 23:12:43 +00007190else
cristy3ed852e2009-09-05 21:47:34 +00007191 # Broken: fails on valid input.
7192continue
7193fi
cristyda16f162011-02-19 23:52:17 +00007194rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007195
7196 # OK, works on sane cases. Now check whether nonexistent headers
7197 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007199/* end confdefs.h. */
7200#include <ac_nonexistent.h>
7201_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007202if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007203 # Broken: success on invalid input.
7204continue
7205else
cristy3ed852e2009-09-05 21:47:34 +00007206 # Passes both tests.
7207ac_preproc_ok=:
7208break
7209fi
cristyda16f162011-02-19 23:52:17 +00007210rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007211
7212done
7213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007214rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007215if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007216 break
7217fi
7218
7219 done
7220 ac_cv_prog_CPP=$CPP
7221
7222fi
7223 CPP=$ac_cv_prog_CPP
7224else
7225 ac_cv_prog_CPP=$CPP
7226fi
cristy8b350f62009-11-15 23:12:43 +00007227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007228$as_echo "$CPP" >&6; }
7229ac_preproc_ok=false
7230for ac_c_preproc_warn_flag in '' yes
7231do
7232 # Use a header file that comes with gcc, so configuring glibc
7233 # with a fresh cross-compiler works.
7234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7235 # <limits.h> exists even on freestanding compilers.
7236 # On the NeXT, cc -E runs the code through the compiler's parser,
7237 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007239/* end confdefs.h. */
7240#ifdef __STDC__
7241# include <limits.h>
7242#else
7243# include <assert.h>
7244#endif
7245 Syntax error
7246_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007247if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007248
cristy8b350f62009-11-15 23:12:43 +00007249else
cristy3ed852e2009-09-05 21:47:34 +00007250 # Broken: fails on valid input.
7251continue
7252fi
cristyda16f162011-02-19 23:52:17 +00007253rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007254
7255 # OK, works on sane cases. Now check whether nonexistent headers
7256 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007258/* end confdefs.h. */
7259#include <ac_nonexistent.h>
7260_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007261if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007262 # Broken: success on invalid input.
7263continue
7264else
cristy3ed852e2009-09-05 21:47:34 +00007265 # Passes both tests.
7266ac_preproc_ok=:
7267break
7268fi
cristyda16f162011-02-19 23:52:17 +00007269rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007270
7271done
7272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007273rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007274if $ac_preproc_ok; then :
7275
cristy3ed852e2009-09-05 21:47:34 +00007276else
cristy8b350f62009-11-15 23:12:43 +00007277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007279as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7280See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007281fi
7282
7283ac_ext=c
7284ac_cpp='$CPP $CPPFLAGS'
7285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7287ac_compiler_gnu=$ac_cv_c_compiler_gnu
7288
cristy73bd4a52010-10-05 11:24:23 +00007289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7290$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007291if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007292 $as_echo_n "(cached) " >&6
7293else
7294 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7295 for ac_i in 1 2 3 4 5 6 7; do
7296 ac_script="$ac_script$as_nl$ac_script"
7297 done
7298 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7299 { ac_script=; unset ac_script;}
7300 if test -z "$SED"; then
7301 ac_path_SED_found=false
7302 # Loop through the user's path and test for each of PROGNAME-LIST
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 for ac_prog in sed gsed; do
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007311 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007312# Check for GNU ac_path_SED and select it if it is found.
7313 # Check for GNU $ac_path_SED
7314case `"$ac_path_SED" --version 2>&1` in
7315*GNU*)
7316 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7317*)
7318 ac_count=0
7319 $as_echo_n 0123456789 >"conftest.in"
7320 while :
7321 do
7322 cat "conftest.in" "conftest.in" >"conftest.tmp"
7323 mv "conftest.tmp" "conftest.in"
7324 cp "conftest.in" "conftest.nl"
7325 $as_echo '' >> "conftest.nl"
7326 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7328 as_fn_arith $ac_count + 1 && ac_count=$as_val
7329 if test $ac_count -gt ${ac_path_SED_max-0}; then
7330 # Best one so far, save it but keep looking for a better one
7331 ac_cv_path_SED="$ac_path_SED"
7332 ac_path_SED_max=$ac_count
7333 fi
7334 # 10*(2^10) chars as input seems more than enough
7335 test $ac_count -gt 10 && break
7336 done
7337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7338esac
7339
7340 $ac_path_SED_found && break 3
7341 done
7342 done
7343 done
7344IFS=$as_save_IFS
7345 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007346 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007347 fi
7348else
7349 ac_cv_path_SED=$SED
7350fi
7351
7352fi
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7354$as_echo "$ac_cv_path_SED" >&6; }
7355 SED="$ac_cv_path_SED"
7356 rm -f conftest.sed
7357
7358test -z "$SED" && SED=sed
7359Xsed="$SED -e 1s/^X//"
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7372$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007373if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007374 $as_echo_n "(cached) " >&6
7375else
7376 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7377 then ac_cv_path_FGREP="$GREP -F"
7378 else
7379 if test -z "$FGREP"; then
7380 ac_path_FGREP_found=false
7381 # Loop through the user's path and test for each of PROGNAME-LIST
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7384do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_prog in fgrep; do
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007390 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007391# Check for GNU ac_path_FGREP and select it if it is found.
7392 # Check for GNU $ac_path_FGREP
7393case `"$ac_path_FGREP" --version 2>&1` in
7394*GNU*)
7395 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7396*)
7397 ac_count=0
7398 $as_echo_n 0123456789 >"conftest.in"
7399 while :
7400 do
7401 cat "conftest.in" "conftest.in" >"conftest.tmp"
7402 mv "conftest.tmp" "conftest.in"
7403 cp "conftest.in" "conftest.nl"
7404 $as_echo 'FGREP' >> "conftest.nl"
7405 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7406 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7407 as_fn_arith $ac_count + 1 && ac_count=$as_val
7408 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7409 # Best one so far, save it but keep looking for a better one
7410 ac_cv_path_FGREP="$ac_path_FGREP"
7411 ac_path_FGREP_max=$ac_count
7412 fi
7413 # 10*(2^10) chars as input seems more than enough
7414 test $ac_count -gt 10 && break
7415 done
7416 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7417esac
7418
7419 $ac_path_FGREP_found && break 3
7420 done
7421 done
7422 done
7423IFS=$as_save_IFS
7424 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007425 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007426 fi
7427else
7428 ac_cv_path_FGREP=$FGREP
7429fi
7430
7431 fi
7432fi
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7434$as_echo "$ac_cv_path_FGREP" >&6; }
7435 FGREP="$ac_cv_path_FGREP"
7436
7437
7438test -z "$GREP" && GREP=grep
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
cristy0c60a692010-11-04 01:09:47 +00007456ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7457ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7458ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7459
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7461$as_echo_n "checking how to print strings... " >&6; }
7462# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007463if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007464 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7465 ECHO='print -r --'
7466elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7467 ECHO='printf %s\n'
7468else
7469 # Use this function as a fallback that always works.
7470 func_fallback_echo ()
7471 {
7472 eval 'cat <<_LTECHO_EOF
7473$1
7474_LTECHO_EOF'
7475 }
7476 ECHO='func_fallback_echo'
7477fi
7478
7479# func_echo_all arg...
7480# Invoke $ECHO with all args, space-separated.
7481func_echo_all ()
7482{
7483 $ECHO ""
7484}
7485
7486case "$ECHO" in
7487 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7488$as_echo "printf" >&6; } ;;
7489 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7490$as_echo "print -r" >&6; } ;;
7491 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7492$as_echo "cat" >&6; } ;;
7493esac
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
cristy73bd4a52010-10-05 11:24:23 +00007508
7509
7510# Check whether --with-gnu-ld was given.
7511if test "${with_gnu_ld+set}" = set; then :
7512 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7513else
7514 with_gnu_ld=no
7515fi
7516
7517ac_prog=ld
7518if test "$GCC" = yes; then
7519 # Check if gcc -print-prog-name=ld gives a path.
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7521$as_echo_n "checking for ld used by $CC... " >&6; }
7522 case $host in
7523 *-*-mingw*)
7524 # gcc leaves a trailing carriage return which upsets mingw
7525 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7526 *)
7527 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7528 esac
7529 case $ac_prog in
7530 # Accept absolute paths.
7531 [\\/]* | ?:[\\/]*)
7532 re_direlt='/[^/][^/]*/\.\./'
7533 # Canonicalize the pathname of ld
7534 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7535 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7536 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7537 done
7538 test -z "$LD" && LD="$ac_prog"
7539 ;;
7540 "")
7541 # If it fails, then pretend we aren't using GCC.
7542 ac_prog=ld
7543 ;;
7544 *)
7545 # If it is relative, then search for the first ld in PATH.
7546 with_gnu_ld=unknown
7547 ;;
7548 esac
7549elif test "$with_gnu_ld" = yes; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7551$as_echo_n "checking for GNU ld... " >&6; }
7552else
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7554$as_echo_n "checking for non-GNU ld... " >&6; }
7555fi
cristyda16f162011-02-19 23:52:17 +00007556if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007557 $as_echo_n "(cached) " >&6
7558else
7559 if test -z "$LD"; then
7560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7561 for ac_dir in $PATH; do
7562 IFS="$lt_save_ifs"
7563 test -z "$ac_dir" && ac_dir=.
7564 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7565 lt_cv_path_LD="$ac_dir/$ac_prog"
7566 # Check to see if the program is GNU ld. I'd rather use --version,
7567 # but apparently some variants of GNU ld only accept -v.
7568 # Break only if it was the GNU/non-GNU ld that we prefer.
7569 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7570 *GNU* | *'with BFD'*)
7571 test "$with_gnu_ld" != no && break
7572 ;;
7573 *)
7574 test "$with_gnu_ld" != yes && break
7575 ;;
7576 esac
7577 fi
7578 done
7579 IFS="$lt_save_ifs"
7580else
7581 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7582fi
7583fi
7584
7585LD="$lt_cv_path_LD"
7586if test -n "$LD"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7588$as_echo "$LD" >&6; }
7589else
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591$as_echo "no" >&6; }
7592fi
cristy98dddb52010-11-04 00:30:15 +00007593test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7595$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007596if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007597 $as_echo_n "(cached) " >&6
7598else
7599 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7600case `$LD -v 2>&1 </dev/null` in
7601*GNU* | *'with BFD'*)
7602 lt_cv_prog_gnu_ld=yes
7603 ;;
7604*)
7605 lt_cv_prog_gnu_ld=no
7606 ;;
7607esac
7608fi
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7610$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7611with_gnu_ld=$lt_cv_prog_gnu_ld
7612
7613
7614
7615
7616
7617
7618
7619
7620
cristy3ed852e2009-09-05 21:47:34 +00007621
cristy837d6dc2010-02-27 01:16:57 +00007622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7623$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007624if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007625 $as_echo_n "(cached) " >&6
7626else
7627 ac_cv_prog_cc_c99=no
7628ac_save_CC=$CC
7629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630/* end confdefs.h. */
7631#include <stdarg.h>
7632#include <stdbool.h>
7633#include <stdlib.h>
7634#include <wchar.h>
7635#include <stdio.h>
7636
7637// Check varargs macros. These examples are taken from C99 6.10.3.5.
7638#define debug(...) fprintf (stderr, __VA_ARGS__)
7639#define showlist(...) puts (#__VA_ARGS__)
7640#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7641static void
7642test_varargs_macros (void)
7643{
7644 int x = 1234;
7645 int y = 5678;
7646 debug ("Flag");
7647 debug ("X = %d\n", x);
7648 showlist (The first, second, and third items.);
7649 report (x>y, "x is %d but y is %d", x, y);
7650}
7651
7652// Check long long types.
7653#define BIG64 18446744073709551615ull
7654#define BIG32 4294967295ul
7655#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7656#if !BIG_OK
7657 your preprocessor is broken;
7658#endif
7659#if BIG_OK
7660#else
7661 your preprocessor is broken;
7662#endif
7663static long long int bignum = -9223372036854775807LL;
7664static unsigned long long int ubignum = BIG64;
7665
7666struct incomplete_array
7667{
7668 int datasize;
7669 double data[];
7670};
7671
7672struct named_init {
7673 int number;
7674 const wchar_t *name;
7675 double average;
7676};
7677
7678typedef const char *ccp;
7679
7680static inline int
7681test_restrict (ccp restrict text)
7682{
7683 // See if C++-style comments work.
7684 // Iterate through items via the restricted pointer.
7685 // Also check for declarations in for loops.
7686 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7687 continue;
7688 return 0;
7689}
7690
7691// Check varargs and va_copy.
7692static void
7693test_varargs (const char *format, ...)
7694{
7695 va_list args;
7696 va_start (args, format);
7697 va_list args_copy;
7698 va_copy (args_copy, args);
7699
7700 const char *str;
7701 int number;
7702 float fnumber;
7703
7704 while (*format)
7705 {
7706 switch (*format++)
7707 {
7708 case 's': // string
7709 str = va_arg (args_copy, const char *);
7710 break;
7711 case 'd': // int
7712 number = va_arg (args_copy, int);
7713 break;
7714 case 'f': // float
7715 fnumber = va_arg (args_copy, double);
7716 break;
7717 default:
7718 break;
7719 }
7720 }
7721 va_end (args_copy);
7722 va_end (args);
7723}
7724
7725int
7726main ()
7727{
7728
7729 // Check bool.
7730 _Bool success = false;
7731
7732 // Check restrict.
7733 if (test_restrict ("String literal") == 0)
7734 success = true;
7735 char *restrict newvar = "Another string";
7736
7737 // Check varargs.
7738 test_varargs ("s, d' f .", "string", 65, 34.234);
7739 test_varargs_macros ();
7740
7741 // Check flexible array members.
7742 struct incomplete_array *ia =
7743 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7744 ia->datasize = 10;
7745 for (int i = 0; i < ia->datasize; ++i)
7746 ia->data[i] = i * 1.234;
7747
7748 // Check named initializers.
7749 struct named_init ni = {
7750 .number = 34,
7751 .name = L"Test wide string",
7752 .average = 543.34343,
7753 };
7754
7755 ni.number = 58;
7756
7757 int dynamic_array[ni.number];
7758 dynamic_array[ni.number - 1] = 543;
7759
7760 // work around unused variable warnings
7761 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7762 || dynamic_array[ni.number - 1] != 543);
7763
7764 ;
7765 return 0;
7766}
7767_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007768for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007769do
7770 CC="$ac_save_CC $ac_arg"
7771 if ac_fn_c_try_compile "$LINENO"; then :
7772 ac_cv_prog_cc_c99=$ac_arg
7773fi
7774rm -f core conftest.err conftest.$ac_objext
7775 test "x$ac_cv_prog_cc_c99" != "xno" && break
7776done
7777rm -f conftest.$ac_ext
7778CC=$ac_save_CC
7779
7780fi
7781# AC_CACHE_VAL
7782case "x$ac_cv_prog_cc_c99" in
7783 x)
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7785$as_echo "none needed" >&6; } ;;
7786 xno)
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7788$as_echo "unsupported" >&6; } ;;
7789 *)
7790 CC="$CC $ac_cv_prog_cc_c99"
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7792$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7793esac
7794if test "x$ac_cv_prog_cc_c99" != xno; then :
7795
7796fi
7797
7798
cristy73bd4a52010-10-05 11:24:23 +00007799if test "x$CC" != xcc; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7801$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7802else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7804$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7805fi
7806set dummy $CC; ac_cc=`$as_echo "$2" |
7807 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007808if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007809 $as_echo_n "(cached) " >&6
7810else
cristy73bd4a52010-10-05 11:24:23 +00007811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812/* end confdefs.h. */
7813
7814int
7815main ()
7816{
7817
7818 ;
7819 return 0;
7820}
7821_ACEOF
7822# Make sure it works both with $CC and with simple cc.
7823# We do the test twice because some compilers refuse to overwrite an
7824# existing .o file with -o, though they will create one.
7825ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7826rm -f conftest2.*
7827if { { case "(($ac_try" in
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7830esac
7831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7832$as_echo "$ac_try_echo"; } >&5
7833 (eval "$ac_try") 2>&5
7834 ac_status=$?
7835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7836 test $ac_status = 0; } &&
7837 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7840esac
7841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7842$as_echo "$ac_try_echo"; } >&5
7843 (eval "$ac_try") 2>&5
7844 ac_status=$?
7845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7846 test $ac_status = 0; };
7847then
7848 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7849 if test "x$CC" != xcc; then
7850 # Test first that cc exists at all.
7851 if { ac_try='cc -c conftest.$ac_ext >&5'
7852 { { case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7855esac
7856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7857$as_echo "$ac_try_echo"; } >&5
7858 (eval "$ac_try") 2>&5
7859 ac_status=$?
7860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7861 test $ac_status = 0; }; }; then
7862 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7863 rm -f conftest2.*
7864 if { { case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867esac
7868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7869$as_echo "$ac_try_echo"; } >&5
7870 (eval "$ac_try") 2>&5
7871 ac_status=$?
7872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873 test $ac_status = 0; } &&
7874 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7877esac
7878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7879$as_echo "$ac_try_echo"; } >&5
7880 (eval "$ac_try") 2>&5
7881 ac_status=$?
7882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7883 test $ac_status = 0; };
7884 then
7885 # cc works too.
7886 :
7887 else
7888 # cc exists but doesn't like -o.
7889 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7890 fi
7891 fi
7892 fi
7893else
7894 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7895fi
7896rm -f core conftest*
7897
7898fi
7899if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7901$as_echo "yes" >&6; }
7902else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904$as_echo "no" >&6; }
7905
7906$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7907
7908fi
7909
7910# FIXME: we rely on the cache variable name because
7911# there is no other way.
7912set dummy $CC
7913am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7914eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7915if test "$am_t" != yes; then
7916 # Losing compiler, so override with the script.
7917 # FIXME: It is wrong to rewrite CC.
7918 # But if we don't then we get into trouble of one sort or another.
7919 # A longer-term fix would be to have automake use am__CC in this case,
7920 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7921 CC="$am_aux_dir/compile $CC"
7922fi
7923
7924
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7926$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007927if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007928 $as_echo_n "(cached) " >&6
7929else
7930 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007931 ac_ext=c
7932ac_cpp='$CPP $CPPFLAGS'
7933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
7937 ac_save_CFLAGS="$CFLAGS"
7938for 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" #
7939do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941/* end confdefs.h. */
7942
7943int
7944main ()
7945{
cristy24fc1fe2010-10-23 21:13:01 +00007946
cristy73bd4a52010-10-05 11:24:23 +00007947 ;
7948 return 0;
7949}
7950_ACEOF
7951if ac_fn_c_try_compile "$LINENO"; then :
7952 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7953fi
7954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955done
7956 CFLAGS="$ac_save_CFLAGS"
7957 ac_ext=c
7958ac_cpp='$CPP $CPPFLAGS'
7959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7961ac_compiler_gnu=$ac_cv_c_compiler_gnu
7962
7963
7964fi
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7966$as_echo "$ac_cv_cflags_warn_all" >&6; }
7967case ".$ac_cv_cflags_warn_all" in
7968 .ok|.ok,*) ;;
7969 .|.no|.no,*)
7970 ;;
7971 *)
7972 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7973 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7974 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7975 ac_status=$?
7976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7977 test $ac_status = 0; }
7978 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7979 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7980 ac_status=$?
7981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7982 test $ac_status = 0; }
7983 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7984 fi
7985 ;;
nicolas6237c462010-10-05 06:11:49 +00007986esac
cristy3ed852e2009-09-05 21:47:34 +00007987
cristy568c2d42012-07-27 01:41:20 +00007988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7989$as_echo_n "checking for C compiler vendor... " >&6; }
7990if ${ax_cv_c_compiler_vendor+:} false; then :
7991 $as_echo_n "(cached) " >&6
7992else
7993 # note: don't check for gcc first since some other compilers define __GNUC__
7994 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7995 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7996 pathscale: __PATHCC__,__PATHSCALE__
7997 clang: __clang__
7998 gnu: __GNUC__
7999 sun: __SUNPRO_C,__SUNPRO_CC
8000 hp: __HP_cc,__HP_aCC
8001 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8002 borland: __BORLANDC__,__TURBOC__
8003 comeau: __COMO__
8004 cray: _CRAYC
8005 kai: __KCC
8006 lcc: __LCC__
8007 sgi: __sgi,sgi
8008 microsoft: _MSC_VER
8009 metrowerks: __MWERKS__
8010 watcom: __WATCOMC__
8011 portland: __PGI
8012 unknown: UNKNOWN"
8013 for ventest in $vendors; do
8014 case $ventest in
8015 *:) vendor=$ventest; continue ;;
8016 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8017 esac
8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019/* end confdefs.h. */
8020
8021int
8022main ()
8023{
8024
8025 #if !($vencpp)
8026 thisisanerror;
8027 #endif
8028
8029 ;
8030 return 0;
8031}
8032_ACEOF
8033if ac_fn_c_try_compile "$LINENO"; then :
8034 break
8035fi
8036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037 done
8038 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8039
8040fi
8041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8042$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8043
cristya0b81c32010-01-22 02:54:33 +00008044
8045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8046$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8047set x ${MAKE-make}
8048ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008049if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008050 $as_echo_n "(cached) " >&6
8051else
8052 cat >conftest.make <<\_ACEOF
8053SHELL = /bin/sh
8054all:
8055 @echo '@@@%%%=$(MAKE)=@@@%%%'
8056_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008057# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008058case `${MAKE-make} -f conftest.make 2>/dev/null` in
8059 *@@@%%%=?*=@@@%%%*)
8060 eval ac_cv_prog_make_${ac_make}_set=yes;;
8061 *)
8062 eval ac_cv_prog_make_${ac_make}_set=no;;
8063esac
8064rm -f conftest.make
8065fi
8066if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8068$as_echo "yes" >&6; }
8069 SET_MAKE=
8070else
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072$as_echo "no" >&6; }
8073 SET_MAKE="MAKE=${MAKE-make}"
8074fi
8075
cristy8b350f62009-11-15 23:12:43 +00008076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008077$as_echo_n "checking whether ln -s works... " >&6; }
8078LN_S=$as_ln_s
8079if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008081$as_echo "yes" >&6; }
8082else
cristy8b350f62009-11-15 23:12:43 +00008083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008084$as_echo "no, using $LN_S" >&6; }
8085fi
8086
cristybc556452012-08-17 19:44:03 +00008087for ac_prog in gawk mawk nawk awk
8088do
8089 # Extract the first word of "$ac_prog", so it can be a program name with args.
8090set dummy $ac_prog; ac_word=$2
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092$as_echo_n "checking for $ac_word... " >&6; }
8093if ${ac_cv_prog_AWK+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095else
8096 if test -n "$AWK"; then
8097 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8098else
8099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100for as_dir in $PATH
8101do
8102 IFS=$as_save_IFS
8103 test -z "$as_dir" && as_dir=.
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8106 ac_cv_prog_AWK="$ac_prog"
8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 break 2
8109 fi
8110done
8111 done
8112IFS=$as_save_IFS
8113
8114fi
8115fi
8116AWK=$ac_cv_prog_AWK
8117if test -n "$AWK"; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8119$as_echo "$AWK" >&6; }
8120else
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122$as_echo "no" >&6; }
8123fi
8124
8125
8126 test -n "$AWK" && break
8127done
8128
cristy73bd4a52010-10-05 11:24:23 +00008129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8130$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8131
8132# Check whether --with-dmalloc was given.
8133if test "${with_dmalloc+set}" = set; then :
8134 withval=$with_dmalloc; if test "$withval" = yes; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8136$as_echo "yes" >&6; }
8137
8138$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8139
8140 LIBS="$LIBS -ldmalloc"
8141 LDFLAGS="$LDFLAGS -g"
8142else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144$as_echo "no" >&6; }
8145fi
8146else
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148$as_echo "no" >&6; }
8149fi
8150
8151
8152
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8154$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008155if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008156 $as_echo_n "(cached) " >&6
8157else
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159/* end confdefs.h. */
8160#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008161 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008162 static void
8163 foo(void) {
8164 exit(1);
8165 }
8166
8167int
8168main ()
8169{
8170
8171 ;
8172 return 0;
8173}
8174_ACEOF
8175if ac_fn_c_try_compile "$LINENO"; then :
8176 ax_cv___attribute__=yes
8177else
8178 ax_cv___attribute__=no
8179
8180fi
8181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182
8183fi
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8185$as_echo "$ax_cv___attribute__" >&6; }
8186 if test "$ax_cv___attribute__" = "yes"; then
8187
8188$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8189
8190 fi
8191
8192
8193
cristy37110d62012-03-01 18:38:20 +00008194
8195
8196# Check whether --with-gcc-arch was given.
8197if test "${with_gcc_arch+set}" = set; then :
8198 withval=$with_gcc_arch; ax_gcc_arch=$withval
8199else
cristya32d1812012-03-02 19:24:21 +00008200 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008201fi
8202
8203
8204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8205$as_echo_n "checking for gcc architecture flag... " >&6; }
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8207$as_echo "" >&6; }
8208if ${ax_cv_gcc_archflag+:} false; then :
8209 $as_echo_n "(cached) " >&6
8210else
8211
8212ax_cv_gcc_archflag="unknown"
8213
8214if test "$GCC" = yes; then
8215
8216if test "x$ax_gcc_arch" = xyes; then
8217ax_gcc_arch=""
8218if test "$cross_compiling" = no; then
8219case $host_cpu in
8220 i[3456]86*|x86_64*) # use cpuid codes
8221
8222ac_ext=c
8223ac_cpp='$CPP $CPPFLAGS'
8224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226ac_compiler_gnu=$ac_cv_c_compiler_gnu
8227
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8229$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8230if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232else
8233 if test "$cross_compiling" = yes; then :
8234 ax_cv_gcc_x86_cpuid_0=unknown
8235else
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237/* end confdefs.h. */
8238#include <stdio.h>
8239int
8240main ()
8241{
8242
8243 int op = 0, eax, ebx, ecx, edx;
8244 FILE *f;
8245 __asm__("cpuid"
8246 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8247 : "a" (op));
8248 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8249 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8250 fclose(f);
8251 return 0;
8252
8253 ;
8254 return 0;
8255}
8256_ACEOF
8257if ac_fn_c_try_run "$LINENO"; then :
8258 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8259else
8260 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8261fi
8262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8263 conftest.$ac_objext conftest.beam conftest.$ac_ext
8264fi
8265
8266fi
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8268$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8269ac_ext=c
8270ac_cpp='$CPP $CPPFLAGS'
8271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8273ac_compiler_gnu=$ac_cv_c_compiler_gnu
8274
8275
8276
8277ac_ext=c
8278ac_cpp='$CPP $CPPFLAGS'
8279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8281ac_compiler_gnu=$ac_cv_c_compiler_gnu
8282
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8284$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8285if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8286 $as_echo_n "(cached) " >&6
8287else
8288 if test "$cross_compiling" = yes; then :
8289 ax_cv_gcc_x86_cpuid_1=unknown
8290else
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292/* end confdefs.h. */
8293#include <stdio.h>
8294int
8295main ()
8296{
8297
8298 int op = 1, eax, ebx, ecx, edx;
8299 FILE *f;
8300 __asm__("cpuid"
8301 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8302 : "a" (op));
8303 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8304 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8305 fclose(f);
8306 return 0;
8307
8308 ;
8309 return 0;
8310}
8311_ACEOF
8312if ac_fn_c_try_run "$LINENO"; then :
8313 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8314else
8315 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8316fi
8317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8318 conftest.$ac_objext conftest.beam conftest.$ac_ext
8319fi
8320
8321fi
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8323$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8324ac_ext=c
8325ac_cpp='$CPP $CPPFLAGS'
8326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8328ac_compiler_gnu=$ac_cv_c_compiler_gnu
8329
8330
8331 case $ax_cv_gcc_x86_cpuid_0 in
8332 *:756e6547:*:*) # Intel
8333 case $ax_cv_gcc_x86_cpuid_1 in
8334 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8335 *5??:*:*:*) ax_gcc_arch=pentium ;;
8336 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8337 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8338 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8339 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8340 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8341 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8342 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8343 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8344 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8345 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8346 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8347 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8348 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8349 case $host_cpu in
8350 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8351 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8352 esac ;;
8353 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8354 esac ;;
8355 *:68747541:*:*) # AMD
8356 case $ax_cv_gcc_x86_cpuid_1 in
8357 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8358 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8359 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8360 *60?:*:*:*) ax_gcc_arch=k7 ;;
8361 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8362 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8363 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8364 *6[68a]?:*:*:*)
8365
8366ac_ext=c
8367ac_cpp='$CPP $CPPFLAGS'
8368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8370ac_compiler_gnu=$ac_cv_c_compiler_gnu
8371
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8373$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8374if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8375 $as_echo_n "(cached) " >&6
8376else
8377 if test "$cross_compiling" = yes; then :
8378 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8379else
8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381/* end confdefs.h. */
8382#include <stdio.h>
8383int
8384main ()
8385{
8386
8387 int op = 0x80000006, eax, ebx, ecx, edx;
8388 FILE *f;
8389 __asm__("cpuid"
8390 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8391 : "a" (op));
8392 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8393 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8394 fclose(f);
8395 return 0;
8396
8397 ;
8398 return 0;
8399}
8400_ACEOF
8401if ac_fn_c_try_run "$LINENO"; then :
8402 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8403else
8404 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8405fi
8406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8407 conftest.$ac_objext conftest.beam conftest.$ac_ext
8408fi
8409
8410fi
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8412$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8413ac_ext=c
8414ac_cpp='$CPP $CPPFLAGS'
8415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8417ac_compiler_gnu=$ac_cv_c_compiler_gnu
8418
8419 # L2 cache size
8420 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8421 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8422 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8423 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8424 esac ;;
8425 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8426 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8427 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8428 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8429 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8430 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8431 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8432 esac ;;
8433 *:746e6543:*:*) # IDT
8434 case $ax_cv_gcc_x86_cpuid_1 in
8435 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8436 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8437 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8438 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8439 esac ;;
8440 esac
8441 if test x"$ax_gcc_arch" = x; then # fallback
8442 case $host_cpu in
8443 i586*) ax_gcc_arch=pentium ;;
8444 i686*) ax_gcc_arch=pentiumpro ;;
8445 esac
8446 fi
8447 ;;
8448
8449 sparc*)
8450 # Extract the first word of "prtdiag", so it can be a program name with args.
8451set dummy prtdiag; ac_word=$2
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453$as_echo_n "checking for $ac_word... " >&6; }
8454if ${ac_cv_path_PRTDIAG+:} false; then :
8455 $as_echo_n "(cached) " >&6
8456else
8457 case $PRTDIAG in
8458 [\\/]* | ?:[\\/]*)
8459 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8460 ;;
8461 *)
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8464for as_dir in $as_dummy
8465do
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008470 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 break 2
8473 fi
8474done
8475 done
8476IFS=$as_save_IFS
8477
8478 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8479 ;;
8480esac
8481fi
8482PRTDIAG=$ac_cv_path_PRTDIAG
8483if test -n "$PRTDIAG"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8485$as_echo "$PRTDIAG" >&6; }
8486else
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488$as_echo "no" >&6; }
8489fi
8490
8491
8492 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`
8493 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8494 case $cputype in
8495 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8496 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8497 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8498 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8499 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8500 *cypress*) ax_gcc_arch=cypress ;;
8501 esac ;;
8502
8503 alphaev5) ax_gcc_arch=ev5 ;;
8504 alphaev56) ax_gcc_arch=ev56 ;;
8505 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8506 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8507 alphaev6) ax_gcc_arch=ev6 ;;
8508 alphaev67) ax_gcc_arch=ev67 ;;
8509 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8510 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8511 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8512 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8513
8514 powerpc*)
8515 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`
8516 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8517 case $cputype in
8518 *750*) ax_gcc_arch="750 G3" ;;
8519 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8520 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8521 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8522 *970*) ax_gcc_arch="970 G5 power4";;
8523 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8524 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8525 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8526 *) ax_gcc_arch=$cputype ;;
8527 esac
8528 ax_gcc_arch="$ax_gcc_arch powerpc"
8529 ;;
8530esac
8531fi # not cross-compiling
8532fi # guess arch
8533
8534if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8535for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008536 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008537 flags="-mtune=$arch"
8538 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8539 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8540 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8541 else
8542 flags="-march=$arch -mcpu=$arch -m$arch"
8543 fi
8544 for flag in $flags; do
8545 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8547$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8548if eval \${$as_CACHEVAR+:} false; then :
8549 $as_echo_n "(cached) " >&6
8550else
8551
8552 ax_check_save_flags=$CFLAGS
8553 CFLAGS="$CFLAGS $flag"
8554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555/* end confdefs.h. */
8556
8557int
8558main ()
8559{
8560
8561 ;
8562 return 0;
8563}
8564_ACEOF
8565if ac_fn_c_try_compile "$LINENO"; then :
8566 eval "$as_CACHEVAR=yes"
8567else
8568 eval "$as_CACHEVAR=no"
8569fi
8570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571 CFLAGS=$ax_check_save_flags
8572fi
8573eval ac_res=\$$as_CACHEVAR
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8575$as_echo "$ac_res" >&6; }
8576if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8577 ax_cv_gcc_archflag=$flag; break
8578else
8579 :
8580fi
8581
8582 done
8583 test "x$ax_cv_gcc_archflag" = xunknown || break
8584done
8585fi
8586
8587fi # $GCC=yes
8588
8589fi
8590
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8592$as_echo_n "checking for gcc architecture flag... " >&6; }
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8594$as_echo "$ax_cv_gcc_archflag" >&6; }
8595if test "x$ax_cv_gcc_archflag" = xunknown; then
8596 :
8597else
8598 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8599fi
8600
8601
8602
cristy73bd4a52010-10-05 11:24:23 +00008603if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8604 if test -n "$ac_tool_prefix"; then
8605 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8606set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008609if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008610 $as_echo_n "(cached) " >&6
8611else
8612 case $PKG_CONFIG in
8613 [\\/]* | ?:[\\/]*)
8614 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8615 ;;
8616 *)
8617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618for as_dir in $PATH
8619do
8620 IFS=$as_save_IFS
8621 test -z "$as_dir" && as_dir=.
8622 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008624 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 break 2
8627 fi
8628done
8629 done
8630IFS=$as_save_IFS
8631
8632 ;;
8633esac
8634fi
8635PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8636if test -n "$PKG_CONFIG"; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8638$as_echo "$PKG_CONFIG" >&6; }
8639else
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641$as_echo "no" >&6; }
8642fi
8643
8644
8645fi
8646if test -z "$ac_cv_path_PKG_CONFIG"; then
8647 ac_pt_PKG_CONFIG=$PKG_CONFIG
8648 # Extract the first word of "pkg-config", so it can be a program name with args.
8649set dummy pkg-config; ac_word=$2
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008652if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008653 $as_echo_n "(cached) " >&6
8654else
8655 case $ac_pt_PKG_CONFIG in
8656 [\\/]* | ?:[\\/]*)
8657 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8658 ;;
8659 *)
8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661for as_dir in $PATH
8662do
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
8665 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008667 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669 break 2
8670 fi
8671done
8672 done
8673IFS=$as_save_IFS
8674
8675 ;;
8676esac
8677fi
8678ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8679if test -n "$ac_pt_PKG_CONFIG"; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8681$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8682else
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684$as_echo "no" >&6; }
8685fi
8686
8687 if test "x$ac_pt_PKG_CONFIG" = x; then
8688 PKG_CONFIG=""
8689 else
8690 case $cross_compiling:$ac_tool_warned in
8691yes:)
8692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8694ac_tool_warned=yes ;;
8695esac
8696 PKG_CONFIG=$ac_pt_PKG_CONFIG
8697 fi
8698else
8699 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8700fi
8701
8702fi
8703if test -n "$PKG_CONFIG"; then
8704 _pkg_min_version=0.9.0
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8706$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8707 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8709$as_echo "yes" >&6; }
8710 else
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712$as_echo "no" >&6; }
8713 PKG_CONFIG=""
8714 fi
8715
8716fi
cristy3ed852e2009-09-05 21:47:34 +00008717
8718#
cristy3ed852e2009-09-05 21:47:34 +00008719# Enable run-time checking.
8720#
8721# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008722if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008723 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8724else
8725 enable_bounds_checking='no'
8726fi
8727
8728
8729if test "$enable_bounds_checking" = yes; then
8730
cristy8b350f62009-11-15 23:12:43 +00008731$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008732
8733fi
8734
8735#
8736# Tests for Windows
8737#
8738
8739
8740
8741GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008742native_win32_build='no'
8743cygwin_build='no'
8744case "${host_os}" in
8745 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008746 cygwin_build='yes'
8747 GDI32_LIBS='-lgdi32'
8748 ;;
8749 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008750 native_win32_build='yes'
8751 GDI32_LIBS='-lgdi32'
8752 ;;
8753esac
8754if test "${GDI32_LIBS}x" != 'x'; then
8755
cristy8b350f62009-11-15 23:12:43 +00008756$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008757
8758fi
8759
cristy73bd4a52010-10-05 11:24:23 +00008760 if test "${GDI32_LIBS}x" != 'x' ; then
8761 WINGDI32_DELEGATE_TRUE=
8762 WINGDI32_DELEGATE_FALSE='#'
8763else
8764 WINGDI32_DELEGATE_TRUE='#'
8765 WINGDI32_DELEGATE_FALSE=
8766fi
8767
8768 if test "${native_win32_build}" = 'yes' ; then
8769 WIN32_NATIVE_BUILD_TRUE=
8770 WIN32_NATIVE_BUILD_FALSE='#'
8771else
8772 WIN32_NATIVE_BUILD_TRUE='#'
8773 WIN32_NATIVE_BUILD_FALSE=
8774fi
8775
8776 if test "${cygwin_build}" = 'yes' ; then
8777 CYGWIN_BUILD_TRUE=
8778 CYGWIN_BUILD_FALSE='#'
8779else
8780 CYGWIN_BUILD_TRUE='#'
8781 CYGWIN_BUILD_FALSE=
8782fi
8783
8784 if test "x${CC}" = 'xcl.exe' ; then
8785 USING_CL_TRUE=
8786 USING_CL_FALSE='#'
8787else
8788 USING_CL_TRUE='#'
8789 USING_CL_FALSE=
8790fi
8791
cristy3ed852e2009-09-05 21:47:34 +00008792
8793WinPathScript="${srcdirfull}/winpath.sh"
8794
8795
8796#
8797# Compiler flags tweaks
8798#
8799if test "${GCC}" != "yes"; then
8800 case "${host}" in
8801 *-*-hpux* )
8802 # aCC: HP ANSI C++ B3910B A.03.34
8803 CFLAGS="${CFLAGS} -Wp,-H30000"
8804 if test -n "${CXXFLAGS}"; then
8805 CXXFLAGS='-AA'
8806 else
8807 CXXFLAGS="${CXXFLAGS} -AA"
8808 fi
8809 ;;
8810 *-dec-osf5.* )
8811 # Compaq alphaev68-dec-osf5.1 compiler
8812 if test -n "${CXXFLAGS}"; then
8813 CXXFLAGS='-std strict_ansi -noimplicit_include'
8814 else
8815 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8816 fi
8817 esac
8818fi
8819
8820# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008822$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008823if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008824 $as_echo_n "(cached) " >&6
8825else
8826
8827im_cv_ld_lazyload='none'
8828case "${host}" in
8829 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8830 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8831 im_cv_ld_lazyload='-Wl,-zlazyload'
8832 fi
8833 ;;
8834esac
8835
8836fi
cristy8b350f62009-11-15 23:12:43 +00008837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008838$as_echo "$im_cv_ld_lazyload" >&6; }
8839if test "${im_cv_ld_lazyload}" != 'none' ; then
8840 if test -z "${LDFLAGS}" ; then
8841 LDFLAGS="${im_cv_ld_lazyload}"
8842 else
8843 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8844 fi
8845fi
8846
8847case "$host" in
8848*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008849 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008850if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008851 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8852else
8853 build_osxuniversal=no
8854fi
8855
8856
8857 if test "${build_osxuniversal}" != no ; then
8858 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008859 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008860Please re-run configure with these options:
8861 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008862 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008863 fi
8864 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8865 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8866 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8867 fi
8868 ;;
8869esac
8870
cristy0151ae12011-10-28 16:32:29 +00008871#
8872# ARCH specific include directory
8873#
8874
cristy670aa3c2011-11-03 00:54:00 +00008875# Check whether --with-includearch-dir was given.
8876if test "${with_includearch_dir+set}" = set; then :
8877 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008878else
cristy670aa3c2011-11-03 00:54:00 +00008879 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008880fi
8881
8882
cristy670aa3c2011-11-03 00:54:00 +00008883eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008884
cristy0151ae12011-10-28 16:32:29 +00008885
8886#
8887# ARCH specific configuration directory
8888#
8889
cristy670aa3c2011-11-03 00:54:00 +00008890# Check whether --with-sharearch-dir was given.
8891if test "${with_sharearch_dir+set}" = set; then :
8892 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008893else
cristy408ebcd2011-11-14 01:36:57 +00008894 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008895fi
8896
8897
cristy670aa3c2011-11-03 00:54:00 +00008898eval "eval SHAREARCH_DIR=$sharearch_dir"
8899SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008900
cristy0151ae12011-10-28 16:32:29 +00008901
8902#
cristy3ed852e2009-09-05 21:47:34 +00008903# Enable support for threads
8904
8905# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008906if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008907 withval=$with_threads; with_threads=$withval
8908else
8909 with_threads='yes'
8910fi
8911
8912
8913have_threads=no
8914if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008915
8916
cristy73bd4a52010-10-05 11:24:23 +00008917ac_ext=c
8918ac_cpp='$CPP $CPPFLAGS'
8919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8921ac_compiler_gnu=$ac_cv_c_compiler_gnu
8922
8923ax_pthread_ok=no
8924
8925# We used to check for pthread.h first, but this fails if pthread.h
8926# requires special compiler flags (e.g. on True64 or Sequent).
8927# It gets checked for in the link test anyway.
8928
8929# First of all, check if the user has set any of the PTHREAD_LIBS,
8930# etcetera environment variables, and if threads linking works using
8931# them:
8932if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8933 save_CFLAGS="$CFLAGS"
8934 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8935 save_LIBS="$LIBS"
8936 LIBS="$PTHREAD_LIBS $LIBS"
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8938$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940/* end confdefs.h. */
8941
8942/* Override any GCC internal prototype to avoid an error.
8943 Use char because int might match the return type of a GCC
8944 builtin and then its argument prototype would still apply. */
8945#ifdef __cplusplus
8946extern "C"
8947#endif
8948char pthread_join ();
8949int
8950main ()
8951{
8952return pthread_join ();
8953 ;
8954 return 0;
8955}
8956_ACEOF
8957if ac_fn_c_try_link "$LINENO"; then :
8958 ax_pthread_ok=yes
8959fi
8960rm -f core conftest.err conftest.$ac_objext \
8961 conftest$ac_exeext conftest.$ac_ext
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8963$as_echo "$ax_pthread_ok" >&6; }
8964 if test x"$ax_pthread_ok" = xno; then
8965 PTHREAD_LIBS=""
8966 PTHREAD_CFLAGS=""
8967 fi
8968 LIBS="$save_LIBS"
8969 CFLAGS="$save_CFLAGS"
8970fi
8971
8972# We must check for the threads library under a number of different
8973# names; the ordering is very important because some systems
8974# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8975# libraries is broken (non-POSIX).
8976
8977# Create a list of thread flags to try. Items starting with a "-" are
8978# C compiler flags, and other items are library names, except for "none"
8979# which indicates that we try without any flags at all, and "pthread-config"
8980# which is a program returning the flags for the Pth emulation library.
8981
cristy18307f12011-12-30 01:20:16 +00008982ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008983
8984# The ordering *is* (sometimes) important. Some notes on the
8985# individual items follow:
8986
8987# pthreads: AIX (must check this before -lpthread)
8988# none: in case threads are in libc; should be tried before -Kthread and
8989# other compiler flags to prevent continual compiler warnings
8990# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8991# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8992# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8993# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8994# -pthreads: Solaris/gcc
8995# -mthreads: Mingw32/gcc, Lynx/gcc
8996# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8997# doesn't hurt to check since this sometimes defines pthreads too;
8998# also defines -D_REENTRANT)
8999# ... -mt is also the pthreads flag for HP/aCC
9000# pthread: Linux, etcetera
9001# --thread-safe: KAI C++
9002# pthread-config: use pthread-config program (for GNU Pth library)
9003
9004case "${host_cpu}-${host_os}" in
9005 *solaris*)
9006
9007 # On Solaris (at least, for some versions), libc contains stubbed
9008 # (non-functional) versions of the pthreads routines, so link-based
9009 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9010 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9011 # a function called by this macro, so we could check for that, but
9012 # who knows whether they'll stub that too in a future libc.) So,
9013 # we'll just look for -pthreads and -lpthread first:
9014
9015 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9016 ;;
9017
cristya316db12011-10-24 00:49:45 +00009018 *-darwin*)
9019 ax_pthread_flags="-pthread $ax_pthread_flags"
9020 ;;
cristy73bd4a52010-10-05 11:24:23 +00009021esac
9022
9023if test x"$ax_pthread_ok" = xno; then
9024for flag in $ax_pthread_flags; do
9025
9026 case $flag in
9027 none)
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9029$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9030 ;;
9031
9032 -*)
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9034$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9035 PTHREAD_CFLAGS="$flag"
9036 ;;
9037
cristya316db12011-10-24 00:49:45 +00009038 pthread-config)
9039 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009040set dummy pthread-config; ac_word=$2
9041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9042$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009043if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009044 $as_echo_n "(cached) " >&6
9045else
9046 if test -n "$ax_pthread_config"; then
9047 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9048else
9049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050for as_dir in $PATH
9051do
9052 IFS=$as_save_IFS
9053 test -z "$as_dir" && as_dir=.
9054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009056 ac_cv_prog_ax_pthread_config="yes"
9057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9058 break 2
9059 fi
9060done
9061 done
9062IFS=$as_save_IFS
9063
9064 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9065fi
9066fi
9067ax_pthread_config=$ac_cv_prog_ax_pthread_config
9068if test -n "$ax_pthread_config"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9070$as_echo "$ax_pthread_config" >&6; }
9071else
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073$as_echo "no" >&6; }
9074fi
9075
9076
cristya316db12011-10-24 00:49:45 +00009077 if test x"$ax_pthread_config" = xno; then continue; fi
9078 PTHREAD_CFLAGS="`pthread-config --cflags`"
9079 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9080 ;;
cristy73bd4a52010-10-05 11:24:23 +00009081
9082 *)
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9084$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9085 PTHREAD_LIBS="-l$flag"
9086 ;;
9087 esac
9088
9089 save_LIBS="$LIBS"
9090 save_CFLAGS="$CFLAGS"
9091 LIBS="$PTHREAD_LIBS $LIBS"
9092 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9093
9094 # Check for various functions. We must include pthread.h,
9095 # since some functions may be macros. (On the Sequent, we
9096 # need a special flag -Kthread to make this header compile.)
9097 # We check for pthread_join because it is in -lpthread on IRIX
9098 # while pthread_create is in libc. We check for pthread_attr_init
9099 # due to DEC craziness with -lpthreads. We check for
9100 # pthread_cleanup_push because it is one of the few pthread
9101 # functions on Solaris that doesn't have a non-functional libc stub.
9102 # We try pthread_create on general principles.
9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104/* end confdefs.h. */
9105#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009106 static void routine(void *a) { a = 0; }
9107 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009108int
9109main ()
9110{
9111pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009112 pthread_create(&th, 0, start_routine, 0);
9113 pthread_join(th, 0);
9114 pthread_attr_init(&attr);
9115 pthread_cleanup_push(routine, 0);
9116 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009117 ;
9118 return 0;
9119}
9120_ACEOF
9121if ac_fn_c_try_link "$LINENO"; then :
9122 ax_pthread_ok=yes
9123fi
9124rm -f core conftest.err conftest.$ac_objext \
9125 conftest$ac_exeext conftest.$ac_ext
9126
9127 LIBS="$save_LIBS"
9128 CFLAGS="$save_CFLAGS"
9129
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9131$as_echo "$ax_pthread_ok" >&6; }
9132 if test "x$ax_pthread_ok" = xyes; then
9133 break;
9134 fi
9135
9136 PTHREAD_LIBS=""
9137 PTHREAD_CFLAGS=""
9138done
9139fi
9140
9141# Various other checks:
9142if test "x$ax_pthread_ok" = xyes; then
9143 save_LIBS="$LIBS"
9144 LIBS="$PTHREAD_LIBS $LIBS"
9145 save_CFLAGS="$CFLAGS"
9146 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9147
9148 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009150$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009151 attr_name=unknown
9152 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009154/* end confdefs.h. */
9155#include <pthread.h>
9156int
9157main ()
9158{
cristya316db12011-10-24 00:49:45 +00009159int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009160 ;
9161 return 0;
9162}
9163_ACEOF
9164if ac_fn_c_try_link "$LINENO"; then :
9165 attr_name=$attr; break
9166fi
9167rm -f core conftest.err conftest.$ac_objext \
9168 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009169 done
cristy73bd4a52010-10-05 11:24:23 +00009170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9171$as_echo "$attr_name" >&6; }
9172 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9173
9174cat >>confdefs.h <<_ACEOF
9175#define PTHREAD_CREATE_JOINABLE $attr_name
9176_ACEOF
9177
9178 fi
9179
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9181$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9182 flag=no
9183 case "${host_cpu}-${host_os}" in
9184 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9185 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9186 esac
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9188$as_echo "${flag}" >&6; }
9189 if test "x$flag" != xno; then
9190 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9191 fi
9192
cristya316db12011-10-24 00:49:45 +00009193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9194$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9195if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197else
9198
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200/* end confdefs.h. */
9201
9202 #include <pthread.h>
9203int
9204main ()
9205{
9206int i = PTHREAD_PRIO_INHERIT;
9207 ;
9208 return 0;
9209}
9210_ACEOF
9211if ac_fn_c_try_link "$LINENO"; then :
9212 ax_cv_PTHREAD_PRIO_INHERIT=yes
9213else
9214 ax_cv_PTHREAD_PRIO_INHERIT=no
9215fi
9216rm -f core conftest.err conftest.$ac_objext \
9217 conftest$ac_exeext conftest.$ac_ext
9218
9219fi
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9221$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9222 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9223
9224$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9225
9226fi
9227
cristy73bd4a52010-10-05 11:24:23 +00009228 LIBS="$save_LIBS"
9229 CFLAGS="$save_CFLAGS"
9230
9231 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009232 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009233 for ac_prog in xlc_r cc_r
9234do
9235 # Extract the first word of "$ac_prog", so it can be a program name with args.
9236set dummy $ac_prog; ac_word=$2
9237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9238$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009239if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009240 $as_echo_n "(cached) " >&6
9241else
9242 if test -n "$PTHREAD_CC"; then
9243 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9244else
9245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246for as_dir in $PATH
9247do
9248 IFS=$as_save_IFS
9249 test -z "$as_dir" && as_dir=.
9250 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009252 ac_cv_prog_PTHREAD_CC="$ac_prog"
9253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9254 break 2
9255 fi
9256done
9257 done
9258IFS=$as_save_IFS
9259
9260fi
9261fi
9262PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9263if test -n "$PTHREAD_CC"; then
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9265$as_echo "$PTHREAD_CC" >&6; }
9266else
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9268$as_echo "no" >&6; }
9269fi
9270
9271
9272 test -n "$PTHREAD_CC" && break
9273done
9274test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9275
9276 else
9277 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009278 fi
cristy73bd4a52010-10-05 11:24:23 +00009279else
9280 PTHREAD_CC="$CC"
9281fi
9282
9283
9284
9285
9286
9287# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9288if test x"$ax_pthread_ok" = xyes; then
9289
9290$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9291
9292 :
9293else
9294 ax_pthread_ok=no
9295
9296fi
9297ac_ext=c
9298ac_cpp='$CPP $CPPFLAGS'
9299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9301ac_compiler_gnu=$ac_cv_c_compiler_gnu
9302
9303
cristy7acf8fb2010-09-23 19:58:53 +00009304 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009305 have_threads=yes
9306 DEF_THREAD="$PTHREAD_CFLAGS"
9307 CFLAGS="$CFLAGS $DEF_THREAD"
9308 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9309 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009310 { $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 +00009311$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9312 CC="$PTHREAD_CC"
9313 fi
cristy55bf91c2010-09-24 00:29:41 +00009314
9315$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9316
cristy3ed852e2009-09-05 21:47:34 +00009317 fi
9318fi
9319
9320# Enable support for OpenMP
9321if test "$have_threads" != 'yes'; then
9322 ac_cv_prog_c_openmp=unsupported
9323fi
9324
9325 OPENMP_CFLAGS=
9326 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009327if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009328 enableval=$enable_openmp;
9329fi
9330
9331 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009333$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009334if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009335 $as_echo_n "(cached) " >&6
9336else
cristy8b350f62009-11-15 23:12:43 +00009337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009339
9340#ifndef _OPENMP
9341 choke me
9342#endif
9343#include <omp.h>
9344int main () { return omp_get_num_threads (); }
9345
9346_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009347if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009348 ac_cv_prog_c_openmp='none needed'
9349else
cristy8b350f62009-11-15 23:12:43 +00009350 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009351 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9352 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009353 ac_save_CFLAGS=$CFLAGS
9354 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009357
9358#ifndef _OPENMP
9359 choke me
9360#endif
9361#include <omp.h>
9362int main () { return omp_get_num_threads (); }
9363
9364_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009365if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009366 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009367fi
cristy8b350f62009-11-15 23:12:43 +00009368rm -f core conftest.err conftest.$ac_objext \
9369 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009370 CFLAGS=$ac_save_CFLAGS
9371 if test "$ac_cv_prog_c_openmp" != unsupported; then
9372 break
9373 fi
9374 done
9375fi
cristy8b350f62009-11-15 23:12:43 +00009376rm -f core conftest.err conftest.$ac_objext \
9377 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009378fi
cristy8b350f62009-11-15 23:12:43 +00009379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009380$as_echo "$ac_cv_prog_c_openmp" >&6; }
9381 case $ac_cv_prog_c_openmp in #(
9382 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009383 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009384 *)
cristy8b350f62009-11-15 23:12:43 +00009385 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009386 esac
9387 fi
9388
9389
9390CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9391MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9392
cristy391f1ce2010-09-09 17:23:28 +00009393if test "$enable_openmp" != no; then
9394 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9395 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9396 fi
9397fi
cristy3ed852e2009-09-05 21:47:34 +00009398
cristy736173a2009-09-20 21:18:22 +00009399# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009400
9401
cristy73bd4a52010-10-05 11:24:23 +00009402ac_ext=c
9403ac_cpp='$CPP $CPPFLAGS'
9404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9406ac_compiler_gnu=$ac_cv_c_compiler_gnu
9407
9408ax_pthread_ok=no
9409
9410# We used to check for pthread.h first, but this fails if pthread.h
9411# requires special compiler flags (e.g. on True64 or Sequent).
9412# It gets checked for in the link test anyway.
9413
9414# First of all, check if the user has set any of the PTHREAD_LIBS,
9415# etcetera environment variables, and if threads linking works using
9416# them:
9417if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9418 save_CFLAGS="$CFLAGS"
9419 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9420 save_LIBS="$LIBS"
9421 LIBS="$PTHREAD_LIBS $LIBS"
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9423$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425/* end confdefs.h. */
9426
9427/* Override any GCC internal prototype to avoid an error.
9428 Use char because int might match the return type of a GCC
9429 builtin and then its argument prototype would still apply. */
9430#ifdef __cplusplus
9431extern "C"
9432#endif
9433char pthread_join ();
9434int
9435main ()
9436{
9437return pthread_join ();
9438 ;
9439 return 0;
9440}
9441_ACEOF
9442if ac_fn_c_try_link "$LINENO"; then :
9443 ax_pthread_ok=yes
9444fi
9445rm -f core conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9448$as_echo "$ax_pthread_ok" >&6; }
9449 if test x"$ax_pthread_ok" = xno; then
9450 PTHREAD_LIBS=""
9451 PTHREAD_CFLAGS=""
9452 fi
9453 LIBS="$save_LIBS"
9454 CFLAGS="$save_CFLAGS"
9455fi
9456
9457# We must check for the threads library under a number of different
9458# names; the ordering is very important because some systems
9459# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9460# libraries is broken (non-POSIX).
9461
9462# Create a list of thread flags to try. Items starting with a "-" are
9463# C compiler flags, and other items are library names, except for "none"
9464# which indicates that we try without any flags at all, and "pthread-config"
9465# which is a program returning the flags for the Pth emulation library.
9466
cristy18307f12011-12-30 01:20:16 +00009467ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009468
9469# The ordering *is* (sometimes) important. Some notes on the
9470# individual items follow:
9471
9472# pthreads: AIX (must check this before -lpthread)
9473# none: in case threads are in libc; should be tried before -Kthread and
9474# other compiler flags to prevent continual compiler warnings
9475# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9476# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9477# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9478# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9479# -pthreads: Solaris/gcc
9480# -mthreads: Mingw32/gcc, Lynx/gcc
9481# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9482# doesn't hurt to check since this sometimes defines pthreads too;
9483# also defines -D_REENTRANT)
9484# ... -mt is also the pthreads flag for HP/aCC
9485# pthread: Linux, etcetera
9486# --thread-safe: KAI C++
9487# pthread-config: use pthread-config program (for GNU Pth library)
9488
9489case "${host_cpu}-${host_os}" in
9490 *solaris*)
9491
9492 # On Solaris (at least, for some versions), libc contains stubbed
9493 # (non-functional) versions of the pthreads routines, so link-based
9494 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9495 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9496 # a function called by this macro, so we could check for that, but
9497 # who knows whether they'll stub that too in a future libc.) So,
9498 # we'll just look for -pthreads and -lpthread first:
9499
9500 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9501 ;;
9502
cristya316db12011-10-24 00:49:45 +00009503 *-darwin*)
9504 ax_pthread_flags="-pthread $ax_pthread_flags"
9505 ;;
cristy73bd4a52010-10-05 11:24:23 +00009506esac
9507
9508if test x"$ax_pthread_ok" = xno; then
9509for flag in $ax_pthread_flags; do
9510
9511 case $flag in
9512 none)
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9514$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9515 ;;
9516
9517 -*)
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9519$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9520 PTHREAD_CFLAGS="$flag"
9521 ;;
9522
cristya316db12011-10-24 00:49:45 +00009523 pthread-config)
9524 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009525set dummy pthread-config; ac_word=$2
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9527$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009528if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009529 $as_echo_n "(cached) " >&6
9530else
9531 if test -n "$ax_pthread_config"; then
9532 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9533else
9534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9535for as_dir in $PATH
9536do
9537 IFS=$as_save_IFS
9538 test -z "$as_dir" && as_dir=.
9539 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009541 ac_cv_prog_ax_pthread_config="yes"
9542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9543 break 2
9544 fi
9545done
9546 done
9547IFS=$as_save_IFS
9548
9549 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9550fi
9551fi
9552ax_pthread_config=$ac_cv_prog_ax_pthread_config
9553if test -n "$ax_pthread_config"; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9555$as_echo "$ax_pthread_config" >&6; }
9556else
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558$as_echo "no" >&6; }
9559fi
9560
9561
cristya316db12011-10-24 00:49:45 +00009562 if test x"$ax_pthread_config" = xno; then continue; fi
9563 PTHREAD_CFLAGS="`pthread-config --cflags`"
9564 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9565 ;;
cristy73bd4a52010-10-05 11:24:23 +00009566
9567 *)
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9569$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9570 PTHREAD_LIBS="-l$flag"
9571 ;;
9572 esac
9573
9574 save_LIBS="$LIBS"
9575 save_CFLAGS="$CFLAGS"
9576 LIBS="$PTHREAD_LIBS $LIBS"
9577 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9578
9579 # Check for various functions. We must include pthread.h,
9580 # since some functions may be macros. (On the Sequent, we
9581 # need a special flag -Kthread to make this header compile.)
9582 # We check for pthread_join because it is in -lpthread on IRIX
9583 # while pthread_create is in libc. We check for pthread_attr_init
9584 # due to DEC craziness with -lpthreads. We check for
9585 # pthread_cleanup_push because it is one of the few pthread
9586 # functions on Solaris that doesn't have a non-functional libc stub.
9587 # We try pthread_create on general principles.
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589/* end confdefs.h. */
9590#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009591 static void routine(void *a) { a = 0; }
9592 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009593int
9594main ()
9595{
9596pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009597 pthread_create(&th, 0, start_routine, 0);
9598 pthread_join(th, 0);
9599 pthread_attr_init(&attr);
9600 pthread_cleanup_push(routine, 0);
9601 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009602 ;
9603 return 0;
9604}
9605_ACEOF
9606if ac_fn_c_try_link "$LINENO"; then :
9607 ax_pthread_ok=yes
9608fi
9609rm -f core conftest.err conftest.$ac_objext \
9610 conftest$ac_exeext conftest.$ac_ext
9611
9612 LIBS="$save_LIBS"
9613 CFLAGS="$save_CFLAGS"
9614
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9616$as_echo "$ax_pthread_ok" >&6; }
9617 if test "x$ax_pthread_ok" = xyes; then
9618 break;
9619 fi
9620
9621 PTHREAD_LIBS=""
9622 PTHREAD_CFLAGS=""
9623done
9624fi
9625
9626# Various other checks:
9627if test "x$ax_pthread_ok" = xyes; then
9628 save_LIBS="$LIBS"
9629 LIBS="$PTHREAD_LIBS $LIBS"
9630 save_CFLAGS="$CFLAGS"
9631 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9632
9633 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009635$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009636 attr_name=unknown
9637 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009639/* end confdefs.h. */
9640#include <pthread.h>
9641int
9642main ()
9643{
cristya316db12011-10-24 00:49:45 +00009644int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009645 ;
9646 return 0;
9647}
9648_ACEOF
9649if ac_fn_c_try_link "$LINENO"; then :
9650 attr_name=$attr; break
9651fi
9652rm -f core conftest.err conftest.$ac_objext \
9653 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009654 done
cristy73bd4a52010-10-05 11:24:23 +00009655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9656$as_echo "$attr_name" >&6; }
9657 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9658
9659cat >>confdefs.h <<_ACEOF
9660#define PTHREAD_CREATE_JOINABLE $attr_name
9661_ACEOF
9662
9663 fi
9664
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9666$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9667 flag=no
9668 case "${host_cpu}-${host_os}" in
9669 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9670 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9671 esac
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9673$as_echo "${flag}" >&6; }
9674 if test "x$flag" != xno; then
9675 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9676 fi
9677
cristya316db12011-10-24 00:49:45 +00009678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9679$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9680if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9681 $as_echo_n "(cached) " >&6
9682else
9683
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685/* end confdefs.h. */
9686
9687 #include <pthread.h>
9688int
9689main ()
9690{
9691int i = PTHREAD_PRIO_INHERIT;
9692 ;
9693 return 0;
9694}
9695_ACEOF
9696if ac_fn_c_try_link "$LINENO"; then :
9697 ax_cv_PTHREAD_PRIO_INHERIT=yes
9698else
9699 ax_cv_PTHREAD_PRIO_INHERIT=no
9700fi
9701rm -f core conftest.err conftest.$ac_objext \
9702 conftest$ac_exeext conftest.$ac_ext
9703
9704fi
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9706$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9707 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9708
9709$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9710
9711fi
9712
cristy73bd4a52010-10-05 11:24:23 +00009713 LIBS="$save_LIBS"
9714 CFLAGS="$save_CFLAGS"
9715
9716 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009717 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009718 for ac_prog in xlc_r cc_r
9719do
9720 # Extract the first word of "$ac_prog", so it can be a program name with args.
9721set dummy $ac_prog; ac_word=$2
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9723$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009724if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009725 $as_echo_n "(cached) " >&6
9726else
9727 if test -n "$PTHREAD_CC"; then
9728 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9729else
9730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731for as_dir in $PATH
9732do
9733 IFS=$as_save_IFS
9734 test -z "$as_dir" && as_dir=.
9735 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009737 ac_cv_prog_PTHREAD_CC="$ac_prog"
9738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9739 break 2
9740 fi
9741done
9742 done
9743IFS=$as_save_IFS
9744
9745fi
9746fi
9747PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9748if test -n "$PTHREAD_CC"; then
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9750$as_echo "$PTHREAD_CC" >&6; }
9751else
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9753$as_echo "no" >&6; }
9754fi
9755
9756
9757 test -n "$PTHREAD_CC" && break
9758done
9759test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9760
9761 else
9762 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009763 fi
cristy73bd4a52010-10-05 11:24:23 +00009764else
9765 PTHREAD_CC="$CC"
9766fi
9767
9768
9769
9770
9771
9772# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9773if test x"$ax_pthread_ok" = xyes; then
9774
9775$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9776
9777 :
9778else
9779 ax_pthread_ok=no
9780
9781fi
9782ac_ext=c
9783ac_cpp='$CPP $CPPFLAGS'
9784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9786ac_compiler_gnu=$ac_cv_c_compiler_gnu
9787
9788
9789
9790# Check whether --enable-opencl was given.
9791if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009792 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009793else
cristy48794642012-09-02 15:19:08 +00009794 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009795fi
9796
9797
cristy48794642012-09-02 15:19:08 +00009798if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009799 ac_ext=c
9800ac_cpp='$CPP $CPPFLAGS'
9801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9803ac_compiler_gnu=$ac_cv_c_compiler_gnu
9804
cristy75314cc2012-09-15 23:08:29 +00009805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9806$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9807if ${ax_cv_c_compiler_ms+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809else
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811/* end confdefs.h. */
9812
9813int
9814main ()
9815{
9816#ifndef _MSC_VER
9817 choke me
9818#endif
9819
9820 ;
9821 return 0;
9822}
9823_ACEOF
9824if ac_fn_c_try_compile "$LINENO"; then :
9825 ax_compiler_ms=yes
9826else
9827 ax_compiler_ms=no
9828fi
9829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9830ax_cv_c_compiler_ms=$ax_compiler_ms
9831
9832fi
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9834$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009835 if test X$ax_compiler_ms = Xno; then :
9836 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9837fi
9838
9839 ax_save_CPPFLAGS=$CPPFLAGS
9840 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9841 for ac_header in CL/cl.h OpenCL/cl.h
9842do :
9843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9844ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009845if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009846 cat >>confdefs.h <<_ACEOF
9847#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9848_ACEOF
9849
9850fi
9851
9852done
9853
9854 CPPFLAGS=$ax_save_CPPFLAGS
9855
9856 for ac_header in windows.h
9857do :
9858 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009859if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009860 cat >>confdefs.h <<_ACEOF
9861#define HAVE_WINDOWS_H 1
9862_ACEOF
9863
9864fi
9865
9866done
9867
9868
9869
9870
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9872$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009873if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009874 $as_echo_n "(cached) " >&6
9875else
9876 ax_cv_check_cl_libcl=no
9877 case $host_cpu in
9878 x86_64) ax_check_cl_libdir=lib64 ;;
9879 *) ax_check_cl_libdir=lib ;;
9880 esac
9881 ax_save_CPPFLAGS=$CPPFLAGS
9882 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9883 ax_save_LIBS=$LIBS
9884 LIBS=""
9885 ax_check_libs="-lOpenCL -lCL -lclparser"
9886 for ax_lib in $ax_check_libs; do
9887 if test X$ax_compiler_ms = Xyes; then :
9888 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9889else
9890 ax_try_lib=$ax_lib
9891fi
9892 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894/* end confdefs.h. */
9895
9896 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9897 # include <windows.h>
9898 # endif
9899 # ifdef HAVE_CL_CL_H
9900 # include <CL/cl.h>
9901 # elif defined(HAVE_OPENCL_CL_H)
9902 # include <OpenCL/cl.h>
9903 # else
9904 # error no CL.h
9905 # endif
9906int
9907main ()
9908{
9909clCreateContextFromType(0,0,0,0,0)
9910 ;
9911 return 0;
9912}
9913_ACEOF
9914if ac_fn_c_try_link "$LINENO"; then :
9915 ax_cv_check_cl_libcl=$ax_try_lib; break
9916else
9917 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"
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919/* end confdefs.h. */
9920
9921 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9922 # include <windows.h>
9923 # endif
9924 # ifdef HAVE_CL_CL_H
9925 # include <CL/cl.h>
9926 # elif defined(HAVE_OPENCL_CL_H)
9927 # include <OpenCL/cl.h>
9928 # else
9929 # error no CL.h
9930 # endif
9931int
9932main ()
9933{
9934clCreateContextFromType(0,0,0,0,0)
9935 ;
9936 return 0;
9937}
9938_ACEOF
9939if ac_fn_c_try_link "$LINENO"; then :
9940 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9941else
cristy78c5a0c2010-12-04 20:00:59 +00009942 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 +00009943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944/* end confdefs.h. */
9945
9946 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9947 # include <windows.h>
9948 # endif
9949 # ifdef HAVE_CL_CL_H
9950 # include <CL/cl.h>
9951 # elif defined(HAVE_OPENCL_CL_H)
9952 # include <OpenCL/cl.h>
9953 # else
9954 # error no CL.h
9955 # endif
9956int
9957main ()
9958{
9959clCreateContextFromType(0,0,0,0,0)
9960 ;
9961 return 0;
9962}
9963_ACEOF
9964if ac_fn_c_try_link "$LINENO"; then :
9965 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9966fi
9967rm -f core conftest.err conftest.$ac_objext \
9968 conftest$ac_exeext conftest.$ac_ext
9969fi
9970rm -f core conftest.err conftest.$ac_objext \
9971 conftest$ac_exeext conftest.$ac_ext
9972fi
9973rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975 done
9976
cristyc3f8b8e2011-12-22 14:55:16 +00009977 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009978 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980/* end confdefs.h. */
9981
9982 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9983 # include <windows.h>
9984 # endif
9985 # ifdef HAVE_CL_CL_H
9986 # include <CL/cl.h>
9987 # elif defined(HAVE_OPENCL_CL_H)
9988 # include <OpenCL/cl.h>
9989 # else
9990 # error no CL.h
9991 # endif
9992int
9993main ()
9994{
9995clCreateContextFromType(0,0,0,0,0)
9996 ;
9997 return 0;
9998}
9999_ACEOF
10000if ac_fn_c_try_link "$LINENO"; then :
10001 ax_cv_check_cl_libcl=$LIBS
10002fi
10003rm -f core conftest.err conftest.$ac_objext \
10004 conftest$ac_exeext conftest.$ac_ext
10005fi
10006
10007 LIBS=$ax_save_LIBS
10008 CPPFLAGS=$ax_save_CPPFLAGS
10009fi
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10011$as_echo "$ax_cv_check_cl_libcl" >&6; }
10012
10013 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10014 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10015else
10016 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10017$as_echo "#define _OPENCL 1" >>confdefs.h
10018
10019fi
10020 ac_ext=c
10021ac_cpp='$CPP $CPPFLAGS'
10022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10024ac_compiler_gnu=$ac_cv_c_compiler_gnu
10025
10026fi
10027
10028
10029
10030
cristyc7083c12009-10-14 03:16:55 +000010031CFLAGS="$CL_CFLAGS $CFLAGS"
10032LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010033
cristy391f1ce2010-09-09 17:23:28 +000010034if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010035 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010036 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10037 fi
cristyfd9dcd42010-08-08 18:07:02 +000010038fi
cristy2e8b51d2009-10-17 18:26:15 +000010039
cristy3ed852e2009-09-05 21:47:34 +000010040########
10041#
10042# Check for large file support
10043#
10044########
10045# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010046if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010047 enableval=$enable_largefile;
10048fi
10049
10050if test "$enable_largefile" != no; then
10051
cristy8b350f62009-11-15 23:12:43 +000010052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010053$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010054if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010055 $as_echo_n "(cached) " >&6
10056else
10057 ac_cv_sys_largefile_CC=no
10058 if test "$GCC" != yes; then
10059 ac_save_CC=$CC
10060 while :; do
10061 # IRIX 6.2 and later do not support large files by default,
10062 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010064/* end confdefs.h. */
10065#include <sys/types.h>
10066 /* Check that off_t can represent 2**63 - 1 correctly.
10067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10068 since some C++ compilers masquerading as C compilers
10069 incorrectly reject 9223372036854775807. */
10070#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10072 && LARGE_OFF_T % 2147483647 == 1)
10073 ? 1 : -1];
10074int
10075main ()
10076{
10077
10078 ;
10079 return 0;
10080}
10081_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010082 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010083 break
cristy3ed852e2009-09-05 21:47:34 +000010084fi
cristy3ed852e2009-09-05 21:47:34 +000010085rm -f core conftest.err conftest.$ac_objext
10086 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010087 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010088 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010089fi
cristy3ed852e2009-09-05 21:47:34 +000010090rm -f core conftest.err conftest.$ac_objext
10091 break
10092 done
10093 CC=$ac_save_CC
10094 rm -f conftest.$ac_ext
10095 fi
10096fi
cristy8b350f62009-11-15 23:12:43 +000010097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010098$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10099 if test "$ac_cv_sys_largefile_CC" != no; then
10100 CC=$CC$ac_cv_sys_largefile_CC
10101 fi
10102
cristy8b350f62009-11-15 23:12:43 +000010103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010104$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010105if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010106 $as_echo_n "(cached) " >&6
10107else
10108 while :; do
cristy8b350f62009-11-15 23:12:43 +000010109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010110/* end confdefs.h. */
10111#include <sys/types.h>
10112 /* Check that off_t can represent 2**63 - 1 correctly.
10113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10114 since some C++ compilers masquerading as C compilers
10115 incorrectly reject 9223372036854775807. */
10116#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10118 && LARGE_OFF_T % 2147483647 == 1)
10119 ? 1 : -1];
10120int
10121main ()
10122{
10123
10124 ;
10125 return 0;
10126}
10127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010128if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010129 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010130fi
cristy3ed852e2009-09-05 21:47:34 +000010131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010133/* end confdefs.h. */
10134#define _FILE_OFFSET_BITS 64
10135#include <sys/types.h>
10136 /* Check that off_t can represent 2**63 - 1 correctly.
10137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10138 since some C++ compilers masquerading as C compilers
10139 incorrectly reject 9223372036854775807. */
10140#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10142 && LARGE_OFF_T % 2147483647 == 1)
10143 ? 1 : -1];
10144int
10145main ()
10146{
10147
10148 ;
10149 return 0;
10150}
10151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010152if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010153 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010154fi
cristy3ed852e2009-09-05 21:47:34 +000010155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 ac_cv_sys_file_offset_bits=unknown
10157 break
10158done
10159fi
cristy8b350f62009-11-15 23:12:43 +000010160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010161$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10162case $ac_cv_sys_file_offset_bits in #(
10163 no | unknown) ;;
10164 *)
10165cat >>confdefs.h <<_ACEOF
10166#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10167_ACEOF
10168;;
10169esac
10170rm -rf conftest*
10171 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010173$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010174if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010175 $as_echo_n "(cached) " >&6
10176else
10177 while :; do
cristy8b350f62009-11-15 23:12:43 +000010178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010179/* end confdefs.h. */
10180#include <sys/types.h>
10181 /* Check that off_t can represent 2**63 - 1 correctly.
10182 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10183 since some C++ compilers masquerading as C compilers
10184 incorrectly reject 9223372036854775807. */
10185#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10186 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10187 && LARGE_OFF_T % 2147483647 == 1)
10188 ? 1 : -1];
10189int
10190main ()
10191{
10192
10193 ;
10194 return 0;
10195}
10196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010197if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010198 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010199fi
cristy3ed852e2009-09-05 21:47:34 +000010200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010202/* end confdefs.h. */
10203#define _LARGE_FILES 1
10204#include <sys/types.h>
10205 /* Check that off_t can represent 2**63 - 1 correctly.
10206 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10207 since some C++ compilers masquerading as C compilers
10208 incorrectly reject 9223372036854775807. */
10209#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10210 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10211 && LARGE_OFF_T % 2147483647 == 1)
10212 ? 1 : -1];
10213int
10214main ()
10215{
10216
10217 ;
10218 return 0;
10219}
10220_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010221if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010222 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010223fi
cristy3ed852e2009-09-05 21:47:34 +000010224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10225 ac_cv_sys_large_files=unknown
10226 break
10227done
10228fi
cristy8b350f62009-11-15 23:12:43 +000010229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010230$as_echo "$ac_cv_sys_large_files" >&6; }
10231case $ac_cv_sys_large_files in #(
10232 no | unknown) ;;
10233 *)
10234cat >>confdefs.h <<_ACEOF
10235#define _LARGE_FILES $ac_cv_sys_large_files
10236_ACEOF
10237;;
10238esac
10239rm -rf conftest*
10240 fi
cristy14fefe52012-05-21 00:59:18 +000010241
10242
cristy3ed852e2009-09-05 21:47:34 +000010243fi
10244
cristy8b350f62009-11-15 23:12:43 +000010245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010246$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010247if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010248 $as_echo_n "(cached) " >&6
10249else
10250 while :; do
cristy8b350f62009-11-15 23:12:43 +000010251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010252/* end confdefs.h. */
10253#include <sys/types.h> /* for off_t */
10254 #include <stdio.h>
10255int
10256main ()
10257{
10258int (*fp) (FILE *, off_t, int) = fseeko;
10259 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10260 ;
10261 return 0;
10262}
10263_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010264if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010265 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010266fi
cristy8b350f62009-11-15 23:12:43 +000010267rm -f core conftest.err conftest.$ac_objext \
10268 conftest$ac_exeext conftest.$ac_ext
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010270/* end confdefs.h. */
10271#define _LARGEFILE_SOURCE 1
10272#include <sys/types.h> /* for off_t */
10273 #include <stdio.h>
10274int
10275main ()
10276{
10277int (*fp) (FILE *, off_t, int) = fseeko;
10278 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10279 ;
10280 return 0;
10281}
10282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010283if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010284 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010285fi
cristy8b350f62009-11-15 23:12:43 +000010286rm -f core conftest.err conftest.$ac_objext \
10287 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010288 ac_cv_sys_largefile_source=unknown
10289 break
10290done
10291fi
cristy8b350f62009-11-15 23:12:43 +000010292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010293$as_echo "$ac_cv_sys_largefile_source" >&6; }
10294case $ac_cv_sys_largefile_source in #(
10295 no | unknown) ;;
10296 *)
10297cat >>confdefs.h <<_ACEOF
10298#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10299_ACEOF
10300;;
10301esac
10302rm -rf conftest*
10303
10304# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10305# in glibc 2.1.3, but that breaks too many other things.
10306# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10307if test $ac_cv_sys_largefile_source != unknown; then
10308
cristy8b350f62009-11-15 23:12:43 +000010309$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010310
10311fi
10312
10313LFS_CPPFLAGS=''
10314if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010315 case $ac_cv_sys_file_offset_bits in
10316 no)
10317 # nothing to do here as the host supports LFS fine
10318 ;;
10319 unknown)
cristy8b350f62009-11-15 23:12:43 +000010320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010321$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010322 if test "$cross_compiling" = yes; then :
10323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010325as_fn_error $? "cannot run test program while cross compiling
10326See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010327else
cristy8b350f62009-11-15 23:12:43 +000010328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010330#include <unistd.h>
10331 main () {
10332 exit(!(sizeof(off_t) == 8));
10333 }
cristyda16f162011-02-19 23:52:17 +000010334int
10335main ()
10336{
10337
10338 ;
10339 return 0;
10340}
cristy3ed852e2009-09-05 21:47:34 +000010341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010342if ac_fn_c_try_run "$LINENO"; then :
10343 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010344
cristy09b53e12011-10-14 12:47:22 +000010345 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10346$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010347else
cristy09b53e12011-10-14 12:47:22 +000010348 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10349$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010350fi
cristy8b350f62009-11-15 23:12:43 +000010351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10352 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010353fi
10354
cristyc1e0cc12011-09-21 16:41:16 +000010355 ;;
10356 *)
10357 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10358 ;;
10359 esac
cristy3ed852e2009-09-05 21:47:34 +000010360 if test "$ac_cv_sys_large_files" != 'no'; then
10361 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10362 fi
10363 if test "$ac_cv_sys_largefile_source" != 'no'; then
10364 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10365 fi
10366fi
10367
10368
cristy3ed852e2009-09-05 21:47:34 +000010369# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010370enable_dlopen=yes
10371
10372
10373
10374case `pwd` in
10375 *\ * | *\ *)
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10377$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10378esac
10379
10380
10381
cristy99bd5232011-12-07 14:38:20 +000010382macro_version='2.4.2'
10383macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397ltmain="$ac_aux_dir/ltmain.sh"
10398
cristy0c60a692010-11-04 01:09:47 +000010399# Backslashify metacharacters that are still active within
10400# double-quoted strings.
10401sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10402
10403# Same as above, but do not quote variable references.
10404double_quote_subst='s/\(["`\\]\)/\\\1/g'
10405
10406# Sed substitution to delay expansion of an escaped shell variable in a
10407# double_quote_subst'ed string.
10408delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10409
10410# Sed substitution to delay expansion of an escaped single quote.
10411delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10412
10413# Sed substitution to avoid accidental globbing in evaled expressions
10414no_glob_subst='s/\*/\\\*/g'
10415
cristy73bd4a52010-10-05 11:24:23 +000010416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10417$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010418if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010419 $as_echo_n "(cached) " >&6
10420else
10421 if test -n "$NM"; then
10422 # Let the user override the test.
10423 lt_cv_path_NM="$NM"
10424else
10425 lt_nm_to_check="${ac_tool_prefix}nm"
10426 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10427 lt_nm_to_check="$lt_nm_to_check nm"
10428 fi
10429 for lt_tmp_nm in $lt_nm_to_check; do
10430 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10431 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10432 IFS="$lt_save_ifs"
10433 test -z "$ac_dir" && ac_dir=.
10434 tmp_nm="$ac_dir/$lt_tmp_nm"
10435 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10436 # Check to see if the nm accepts a BSD-compat flag.
10437 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10438 # nm: unknown option "B" ignored
10439 # Tru64's nm complains that /dev/null is an invalid object file
10440 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10441 */dev/null* | *'Invalid file or object type'*)
10442 lt_cv_path_NM="$tmp_nm -B"
10443 break
10444 ;;
10445 *)
10446 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10447 */dev/null*)
10448 lt_cv_path_NM="$tmp_nm -p"
10449 break
10450 ;;
10451 *)
10452 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10453 continue # so that we can try to find one that supports BSD flags
10454 ;;
10455 esac
10456 ;;
10457 esac
10458 fi
10459 done
10460 IFS="$lt_save_ifs"
10461 done
10462 : ${lt_cv_path_NM=no}
10463fi
10464fi
10465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10466$as_echo "$lt_cv_path_NM" >&6; }
10467if test "$lt_cv_path_NM" != "no"; then
10468 NM="$lt_cv_path_NM"
10469else
10470 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010471 if test -n "$DUMPBIN"; then :
10472 # Let the user override the test.
10473 else
10474 if test -n "$ac_tool_prefix"; then
10475 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010476 do
10477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10478set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10480$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010481if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010482 $as_echo_n "(cached) " >&6
10483else
10484 if test -n "$DUMPBIN"; then
10485 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10486else
10487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10488for as_dir in $PATH
10489do
10490 IFS=$as_save_IFS
10491 test -z "$as_dir" && as_dir=.
10492 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010494 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10496 break 2
10497 fi
10498done
10499 done
10500IFS=$as_save_IFS
10501
10502fi
10503fi
10504DUMPBIN=$ac_cv_prog_DUMPBIN
10505if test -n "$DUMPBIN"; then
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10507$as_echo "$DUMPBIN" >&6; }
10508else
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510$as_echo "no" >&6; }
10511fi
10512
10513
10514 test -n "$DUMPBIN" && break
10515 done
10516fi
10517if test -z "$DUMPBIN"; then
10518 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010519 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010520do
10521 # Extract the first word of "$ac_prog", so it can be a program name with args.
10522set dummy $ac_prog; ac_word=$2
10523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010525if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010526 $as_echo_n "(cached) " >&6
10527else
10528 if test -n "$ac_ct_DUMPBIN"; then
10529 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10530else
10531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532for as_dir in $PATH
10533do
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010538 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 break 2
10541 fi
10542done
10543 done
10544IFS=$as_save_IFS
10545
10546fi
10547fi
10548ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10549if test -n "$ac_ct_DUMPBIN"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10551$as_echo "$ac_ct_DUMPBIN" >&6; }
10552else
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554$as_echo "no" >&6; }
10555fi
10556
10557
10558 test -n "$ac_ct_DUMPBIN" && break
10559done
10560
10561 if test "x$ac_ct_DUMPBIN" = x; then
10562 DUMPBIN=":"
10563 else
10564 case $cross_compiling:$ac_tool_warned in
10565yes:)
10566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10568ac_tool_warned=yes ;;
10569esac
10570 DUMPBIN=$ac_ct_DUMPBIN
10571 fi
10572fi
10573
cristy0c60a692010-11-04 01:09:47 +000010574 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10575 *COFF*)
10576 DUMPBIN="$DUMPBIN -symbols"
10577 ;;
10578 *)
10579 DUMPBIN=:
10580 ;;
10581 esac
10582 fi
cristy73bd4a52010-10-05 11:24:23 +000010583
10584 if test "$DUMPBIN" != ":"; then
10585 NM="$DUMPBIN"
10586 fi
10587fi
10588test -z "$NM" && NM=nm
10589
10590
10591
10592
10593
10594
10595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10596$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010597if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010598 $as_echo_n "(cached) " >&6
10599else
10600 lt_cv_nm_interface="BSD nm"
10601 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010602 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010603 (eval "$ac_compile" 2>conftest.err)
10604 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010605 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010606 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10607 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010608 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010609 cat conftest.out >&5
10610 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10611 lt_cv_nm_interface="MS dumpbin"
10612 fi
10613 rm -f conftest*
10614fi
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10616$as_echo "$lt_cv_nm_interface" >&6; }
10617
10618# find the maximum length of command line arguments
10619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10620$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010621if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010622 $as_echo_n "(cached) " >&6
10623else
10624 i=0
10625 teststring="ABCD"
10626
10627 case $build_os in
10628 msdosdjgpp*)
10629 # On DJGPP, this test can blow up pretty badly due to problems in libc
10630 # (any single argument exceeding 2000 bytes causes a buffer overrun
10631 # during glob expansion). Even if it were fixed, the result of this
10632 # check would be larger than it should be.
10633 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10634 ;;
10635
10636 gnu*)
10637 # Under GNU Hurd, this test is not required because there is
10638 # no limit to the length of command line arguments.
10639 # Libtool will interpret -1 as no limit whatsoever
10640 lt_cv_sys_max_cmd_len=-1;
10641 ;;
10642
10643 cygwin* | mingw* | cegcc*)
10644 # On Win9x/ME, this test blows up -- it succeeds, but takes
10645 # about 5 minutes as the teststring grows exponentially.
10646 # Worse, since 9x/ME are not pre-emptively multitasking,
10647 # you end up with a "frozen" computer, even though with patience
10648 # the test eventually succeeds (with a max line length of 256k).
10649 # Instead, let's just punt: use the minimum linelength reported by
10650 # all of the supported platforms: 8192 (on NT/2K/XP).
10651 lt_cv_sys_max_cmd_len=8192;
10652 ;;
10653
cristy0c60a692010-11-04 01:09:47 +000010654 mint*)
10655 # On MiNT this can take a long time and run out of memory.
10656 lt_cv_sys_max_cmd_len=8192;
10657 ;;
10658
cristy73bd4a52010-10-05 11:24:23 +000010659 amigaos*)
10660 # On AmigaOS with pdksh, this test takes hours, literally.
10661 # So we just punt and use a minimum line length of 8192.
10662 lt_cv_sys_max_cmd_len=8192;
10663 ;;
10664
10665 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10666 # This has been around since 386BSD, at least. Likely further.
10667 if test -x /sbin/sysctl; then
10668 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10669 elif test -x /usr/sbin/sysctl; then
10670 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10671 else
10672 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10673 fi
10674 # And add a safety zone
10675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10677 ;;
10678
10679 interix*)
10680 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10681 lt_cv_sys_max_cmd_len=196608
10682 ;;
10683
cristy99bd5232011-12-07 14:38:20 +000010684 os2*)
10685 # The test takes a long time on OS/2.
10686 lt_cv_sys_max_cmd_len=8192
10687 ;;
10688
cristy73bd4a52010-10-05 11:24:23 +000010689 osf*)
10690 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10691 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10692 # nice to cause kernel panics so lets avoid the loop below.
10693 # First set a reasonable default.
10694 lt_cv_sys_max_cmd_len=16384
10695 #
10696 if test -x /sbin/sysconfig; then
10697 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10698 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10699 esac
10700 fi
10701 ;;
10702 sco3.2v5*)
10703 lt_cv_sys_max_cmd_len=102400
10704 ;;
10705 sysv5* | sco5v6* | sysv4.2uw2*)
10706 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10707 if test -n "$kargmax"; then
10708 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10709 else
10710 lt_cv_sys_max_cmd_len=32768
10711 fi
10712 ;;
10713 *)
10714 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10715 if test -n "$lt_cv_sys_max_cmd_len"; then
10716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10718 else
10719 # Make teststring a little bigger before we do anything with it.
10720 # a 1K string should be a reasonable start.
10721 for i in 1 2 3 4 5 6 7 8 ; do
10722 teststring=$teststring$teststring
10723 done
10724 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10725 # If test is not a shell built-in, we'll probably end up computing a
10726 # maximum length that is only half of the actual maximum length, but
10727 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010728 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010729 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010730 test $i != 17 # 1/2 MB should be enough
10731 do
10732 i=`expr $i + 1`
10733 teststring=$teststring$teststring
10734 done
10735 # Only check the string length outside the loop.
10736 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10737 teststring=
10738 # Add a significant safety factor because C++ compilers can tack on
10739 # massive amounts of additional arguments before passing them to the
10740 # linker. It appears as though 1/2 is a usable value.
10741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10742 fi
10743 ;;
10744 esac
10745
10746fi
10747
10748if test -n $lt_cv_sys_max_cmd_len ; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10750$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10751else
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10753$as_echo "none" >&6; }
10754fi
10755max_cmd_len=$lt_cv_sys_max_cmd_len
10756
10757
10758
10759
10760
10761
10762: ${CP="cp -f"}
10763: ${MV="mv -f"}
10764: ${RM="rm -f"}
10765
10766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10767$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10768# Try some XSI features
10769xsi_shell=no
10770( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010771 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10772 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010773 && eval 'test $(( 1 + 1 )) -eq 2 \
10774 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10775 && xsi_shell=yes
10776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10777$as_echo "$xsi_shell" >&6; }
10778
10779
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10781$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10782lt_shell_append=no
10783( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10784 >/dev/null 2>&1 \
10785 && lt_shell_append=yes
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10787$as_echo "$lt_shell_append" >&6; }
10788
10789
10790if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10791 lt_unset=unset
10792else
10793 lt_unset=false
10794fi
10795
10796
10797
10798
10799
10800# test EBCDIC or ASCII
10801case `echo X|tr X '\101'` in
10802 A) # ASCII based system
10803 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10804 lt_SP2NL='tr \040 \012'
10805 lt_NL2SP='tr \015\012 \040\040'
10806 ;;
10807 *) # EBCDIC based system
10808 lt_SP2NL='tr \100 \n'
10809 lt_NL2SP='tr \r\n \100\100'
10810 ;;
10811esac
10812
10813
10814
10815
10816
10817
10818
10819
10820
cristyda16f162011-02-19 23:52:17 +000010821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10822$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10823if ${lt_cv_to_host_file_cmd+:} false; then :
10824 $as_echo_n "(cached) " >&6
10825else
10826 case $host in
10827 *-*-mingw* )
10828 case $build in
10829 *-*-mingw* ) # actually msys
10830 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10831 ;;
10832 *-*-cygwin* )
10833 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10834 ;;
10835 * ) # otherwise, assume *nix
10836 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10837 ;;
10838 esac
10839 ;;
10840 *-*-cygwin* )
10841 case $build in
10842 *-*-mingw* ) # actually msys
10843 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10844 ;;
10845 *-*-cygwin* )
10846 lt_cv_to_host_file_cmd=func_convert_file_noop
10847 ;;
10848 * ) # otherwise, assume *nix
10849 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10850 ;;
10851 esac
10852 ;;
10853 * ) # unhandled hosts (and "normal" native builds)
10854 lt_cv_to_host_file_cmd=func_convert_file_noop
10855 ;;
10856esac
10857
10858fi
10859
10860to_host_file_cmd=$lt_cv_to_host_file_cmd
10861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10862$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10863
10864
10865
10866
10867
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10869$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10870if ${lt_cv_to_tool_file_cmd+:} false; then :
10871 $as_echo_n "(cached) " >&6
10872else
10873 #assume ordinary cross tools, or native build.
10874lt_cv_to_tool_file_cmd=func_convert_file_noop
10875case $host in
10876 *-*-mingw* )
10877 case $build in
10878 *-*-mingw* ) # actually msys
10879 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10880 ;;
10881 esac
10882 ;;
10883esac
10884
10885fi
10886
10887to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10889$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10890
10891
10892
10893
10894
cristy73bd4a52010-10-05 11:24:23 +000010895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10896$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010897if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010898 $as_echo_n "(cached) " >&6
10899else
10900 lt_cv_ld_reload_flag='-r'
10901fi
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10903$as_echo "$lt_cv_ld_reload_flag" >&6; }
10904reload_flag=$lt_cv_ld_reload_flag
10905case $reload_flag in
10906"" | " "*) ;;
10907*) reload_flag=" $reload_flag" ;;
10908esac
10909reload_cmds='$LD$reload_flag -o $output$reload_objs'
10910case $host_os in
cristyda16f162011-02-19 23:52:17 +000010911 cygwin* | mingw* | pw32* | cegcc*)
10912 if test "$GCC" != yes; then
10913 reload_cmds=false
10914 fi
10915 ;;
cristy73bd4a52010-10-05 11:24:23 +000010916 darwin*)
10917 if test "$GCC" = yes; then
10918 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10919 else
10920 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10921 fi
10922 ;;
10923esac
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933if test -n "$ac_tool_prefix"; then
10934 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10935set dummy ${ac_tool_prefix}objdump; ac_word=$2
10936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10937$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010938if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010939 $as_echo_n "(cached) " >&6
10940else
10941 if test -n "$OBJDUMP"; then
10942 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10943else
10944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945for as_dir in $PATH
10946do
10947 IFS=$as_save_IFS
10948 test -z "$as_dir" && as_dir=.
10949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010951 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 break 2
10954 fi
10955done
10956 done
10957IFS=$as_save_IFS
10958
10959fi
10960fi
10961OBJDUMP=$ac_cv_prog_OBJDUMP
10962if test -n "$OBJDUMP"; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10964$as_echo "$OBJDUMP" >&6; }
10965else
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967$as_echo "no" >&6; }
10968fi
10969
10970
10971fi
10972if test -z "$ac_cv_prog_OBJDUMP"; then
10973 ac_ct_OBJDUMP=$OBJDUMP
10974 # Extract the first word of "objdump", so it can be a program name with args.
10975set dummy objdump; ac_word=$2
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010978if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010979 $as_echo_n "(cached) " >&6
10980else
10981 if test -n "$ac_ct_OBJDUMP"; then
10982 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10983else
10984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985for as_dir in $PATH
10986do
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010991 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993 break 2
10994 fi
10995done
10996 done
10997IFS=$as_save_IFS
10998
10999fi
11000fi
11001ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11002if test -n "$ac_ct_OBJDUMP"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11004$as_echo "$ac_ct_OBJDUMP" >&6; }
11005else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007$as_echo "no" >&6; }
11008fi
11009
11010 if test "x$ac_ct_OBJDUMP" = x; then
11011 OBJDUMP="false"
11012 else
11013 case $cross_compiling:$ac_tool_warned in
11014yes:)
11015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11017ac_tool_warned=yes ;;
11018esac
11019 OBJDUMP=$ac_ct_OBJDUMP
11020 fi
11021else
11022 OBJDUMP="$ac_cv_prog_OBJDUMP"
11023fi
11024
11025test -z "$OBJDUMP" && OBJDUMP=objdump
11026
11027
11028
11029
11030
11031
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11033$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011034if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011035 $as_echo_n "(cached) " >&6
11036else
11037 lt_cv_file_magic_cmd='$MAGIC_CMD'
11038lt_cv_file_magic_test_file=
11039lt_cv_deplibs_check_method='unknown'
11040# Need to set the preceding variable on all platforms that support
11041# interlibrary dependencies.
11042# 'none' -- dependencies not supported.
11043# `unknown' -- same as none, but documents that we really don't know.
11044# 'pass_all' -- all dependencies passed with no checks.
11045# 'test_compile' -- check by making test program.
11046# 'file_magic [[regex]]' -- check by looking for files in library path
11047# which responds to the $file_magic_cmd with a given extended regex.
11048# If you have `file' or equivalent on your system and you're not sure
11049# whether `pass_all' will *always* work, you probably want this one.
11050
11051case $host_os in
11052aix[4-9]*)
11053 lt_cv_deplibs_check_method=pass_all
11054 ;;
11055
11056beos*)
11057 lt_cv_deplibs_check_method=pass_all
11058 ;;
11059
11060bsdi[45]*)
11061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11062 lt_cv_file_magic_cmd='/usr/bin/file -L'
11063 lt_cv_file_magic_test_file=/shlib/libc.so
11064 ;;
11065
11066cygwin*)
11067 # func_win32_libid is a shell function defined in ltmain.sh
11068 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11069 lt_cv_file_magic_cmd='func_win32_libid'
11070 ;;
11071
11072mingw* | pw32*)
11073 # Base MSYS/MinGW do not provide the 'file' command needed by
11074 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11075 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011076 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11077 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011078 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11079 lt_cv_file_magic_cmd='func_win32_libid'
11080 else
cristy0c60a692010-11-04 01:09:47 +000011081 # Keep this pattern in sync with the one in func_win32_libid.
11082 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 +000011083 lt_cv_file_magic_cmd='$OBJDUMP -f'
11084 fi
11085 ;;
11086
cristy0c60a692010-11-04 01:09:47 +000011087cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011088 # use the weaker test based on 'objdump'. See mingw*.
11089 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11090 lt_cv_file_magic_cmd='$OBJDUMP -f'
11091 ;;
11092
11093darwin* | rhapsody*)
11094 lt_cv_deplibs_check_method=pass_all
11095 ;;
11096
11097freebsd* | dragonfly*)
11098 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11099 case $host_cpu in
11100 i*86 )
11101 # Not sure whether the presence of OpenBSD here was a mistake.
11102 # Let's accept both of them until this is cleared up.
11103 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11104 lt_cv_file_magic_cmd=/usr/bin/file
11105 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11106 ;;
11107 esac
11108 else
11109 lt_cv_deplibs_check_method=pass_all
11110 fi
11111 ;;
11112
11113gnu*)
11114 lt_cv_deplibs_check_method=pass_all
11115 ;;
11116
cristy0c60a692010-11-04 01:09:47 +000011117haiku*)
11118 lt_cv_deplibs_check_method=pass_all
11119 ;;
11120
cristy73bd4a52010-10-05 11:24:23 +000011121hpux10.20* | hpux11*)
11122 lt_cv_file_magic_cmd=/usr/bin/file
11123 case $host_cpu in
11124 ia64*)
11125 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11126 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11127 ;;
11128 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011129 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 +000011130 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11131 ;;
11132 *)
cristy0c60a692010-11-04 01:09:47 +000011133 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 +000011134 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11135 ;;
11136 esac
11137 ;;
11138
11139interix[3-9]*)
11140 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11142 ;;
11143
11144irix5* | irix6* | nonstopux*)
11145 case $LD in
11146 *-32|*"-32 ") libmagic=32-bit;;
11147 *-n32|*"-n32 ") libmagic=N32;;
11148 *-64|*"-64 ") libmagic=64-bit;;
11149 *) libmagic=never-match;;
11150 esac
11151 lt_cv_deplibs_check_method=pass_all
11152 ;;
11153
cristy99bd5232011-12-07 14:38:20 +000011154# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011155linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011156 lt_cv_deplibs_check_method=pass_all
11157 ;;
11158
11159netbsd*)
11160 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11162 else
11163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11164 fi
11165 ;;
11166
11167newos6*)
11168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11169 lt_cv_file_magic_cmd=/usr/bin/file
11170 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11171 ;;
11172
11173*nto* | *qnx*)
11174 lt_cv_deplibs_check_method=pass_all
11175 ;;
11176
11177openbsd*)
11178 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11180 else
11181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11182 fi
11183 ;;
11184
11185osf3* | osf4* | osf5*)
11186 lt_cv_deplibs_check_method=pass_all
11187 ;;
11188
11189rdos*)
11190 lt_cv_deplibs_check_method=pass_all
11191 ;;
11192
11193solaris*)
11194 lt_cv_deplibs_check_method=pass_all
11195 ;;
11196
11197sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11198 lt_cv_deplibs_check_method=pass_all
11199 ;;
11200
11201sysv4 | sysv4.3*)
11202 case $host_vendor in
11203 motorola)
11204 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]'
11205 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11206 ;;
11207 ncr)
11208 lt_cv_deplibs_check_method=pass_all
11209 ;;
11210 sequent)
11211 lt_cv_file_magic_cmd='/bin/file'
11212 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11213 ;;
11214 sni)
11215 lt_cv_file_magic_cmd='/bin/file'
11216 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11217 lt_cv_file_magic_test_file=/lib/libc.so
11218 ;;
11219 siemens)
11220 lt_cv_deplibs_check_method=pass_all
11221 ;;
11222 pc)
11223 lt_cv_deplibs_check_method=pass_all
11224 ;;
11225 esac
11226 ;;
11227
11228tpf*)
11229 lt_cv_deplibs_check_method=pass_all
11230 ;;
11231esac
11232
11233fi
11234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11235$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011236
11237file_magic_glob=
11238want_nocaseglob=no
11239if test "$build" = "$host"; then
11240 case $host_os in
11241 mingw* | pw32*)
11242 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11243 want_nocaseglob=yes
11244 else
11245 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11246 fi
11247 ;;
11248 esac
11249fi
11250
cristy73bd4a52010-10-05 11:24:23 +000011251file_magic_cmd=$lt_cv_file_magic_cmd
11252deplibs_check_method=$lt_cv_deplibs_check_method
11253test -z "$deplibs_check_method" && deplibs_check_method=unknown
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
cristyda16f162011-02-19 23:52:17 +000011266
11267
11268
11269
11270
11271
11272
11273
11274
11275
cristy73bd4a52010-10-05 11:24:23 +000011276if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011277 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11278set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011281if ${ac_cv_prog_DLLTOOL+:} false; then :
11282 $as_echo_n "(cached) " >&6
11283else
11284 if test -n "$DLLTOOL"; then
11285 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11286else
11287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11288for as_dir in $PATH
11289do
11290 IFS=$as_save_IFS
11291 test -z "$as_dir" && as_dir=.
11292 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011294 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11296 break 2
11297 fi
11298done
11299 done
11300IFS=$as_save_IFS
11301
11302fi
11303fi
11304DLLTOOL=$ac_cv_prog_DLLTOOL
11305if test -n "$DLLTOOL"; then
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11307$as_echo "$DLLTOOL" >&6; }
11308else
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310$as_echo "no" >&6; }
11311fi
11312
11313
11314fi
11315if test -z "$ac_cv_prog_DLLTOOL"; then
11316 ac_ct_DLLTOOL=$DLLTOOL
11317 # Extract the first word of "dlltool", so it can be a program name with args.
11318set dummy dlltool; ac_word=$2
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11320$as_echo_n "checking for $ac_word... " >&6; }
11321if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11322 $as_echo_n "(cached) " >&6
11323else
11324 if test -n "$ac_ct_DLLTOOL"; then
11325 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11326else
11327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328for as_dir in $PATH
11329do
11330 IFS=$as_save_IFS
11331 test -z "$as_dir" && as_dir=.
11332 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011334 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11336 break 2
11337 fi
11338done
11339 done
11340IFS=$as_save_IFS
11341
11342fi
11343fi
11344ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11345if test -n "$ac_ct_DLLTOOL"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11347$as_echo "$ac_ct_DLLTOOL" >&6; }
11348else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350$as_echo "no" >&6; }
11351fi
11352
11353 if test "x$ac_ct_DLLTOOL" = x; then
11354 DLLTOOL="false"
11355 else
11356 case $cross_compiling:$ac_tool_warned in
11357yes:)
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11360ac_tool_warned=yes ;;
11361esac
11362 DLLTOOL=$ac_ct_DLLTOOL
11363 fi
11364else
11365 DLLTOOL="$ac_cv_prog_DLLTOOL"
11366fi
11367
11368test -z "$DLLTOOL" && DLLTOOL=dlltool
11369
11370
11371
11372
11373
11374
11375
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11377$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11378if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11379 $as_echo_n "(cached) " >&6
11380else
11381 lt_cv_sharedlib_from_linklib_cmd='unknown'
11382
11383case $host_os in
11384cygwin* | mingw* | pw32* | cegcc*)
11385 # two different shell functions defined in ltmain.sh
11386 # decide which to use based on capabilities of $DLLTOOL
11387 case `$DLLTOOL --help 2>&1` in
11388 *--identify-strict*)
11389 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11390 ;;
11391 *)
11392 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11393 ;;
11394 esac
11395 ;;
11396*)
11397 # fallback: assume linklib IS sharedlib
11398 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11399 ;;
11400esac
11401
11402fi
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11404$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11405sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11406test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11407
11408
11409
11410
11411
11412
11413
11414if test -n "$ac_tool_prefix"; then
11415 for ac_prog in ar
11416 do
11417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11418set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11420$as_echo_n "checking for $ac_word... " >&6; }
11421if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011422 $as_echo_n "(cached) " >&6
11423else
11424 if test -n "$AR"; then
11425 ac_cv_prog_AR="$AR" # Let the user override the test.
11426else
11427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428for as_dir in $PATH
11429do
11430 IFS=$as_save_IFS
11431 test -z "$as_dir" && as_dir=.
11432 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011434 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11436 break 2
11437 fi
11438done
11439 done
11440IFS=$as_save_IFS
11441
11442fi
11443fi
11444AR=$ac_cv_prog_AR
11445if test -n "$AR"; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11447$as_echo "$AR" >&6; }
11448else
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450$as_echo "no" >&6; }
11451fi
11452
11453
cristyda16f162011-02-19 23:52:17 +000011454 test -n "$AR" && break
11455 done
cristy73bd4a52010-10-05 11:24:23 +000011456fi
cristyda16f162011-02-19 23:52:17 +000011457if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011458 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011459 for ac_prog in ar
11460do
11461 # Extract the first word of "$ac_prog", so it can be a program name with args.
11462set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11464$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011465if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011466 $as_echo_n "(cached) " >&6
11467else
11468 if test -n "$ac_ct_AR"; then
11469 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11470else
11471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11472for as_dir in $PATH
11473do
11474 IFS=$as_save_IFS
11475 test -z "$as_dir" && as_dir=.
11476 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011478 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11480 break 2
11481 fi
11482done
11483 done
11484IFS=$as_save_IFS
11485
11486fi
11487fi
11488ac_ct_AR=$ac_cv_prog_ac_ct_AR
11489if test -n "$ac_ct_AR"; then
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11491$as_echo "$ac_ct_AR" >&6; }
11492else
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494$as_echo "no" >&6; }
11495fi
11496
cristyda16f162011-02-19 23:52:17 +000011497
11498 test -n "$ac_ct_AR" && break
11499done
11500
cristy73bd4a52010-10-05 11:24:23 +000011501 if test "x$ac_ct_AR" = x; then
11502 AR="false"
11503 else
11504 case $cross_compiling:$ac_tool_warned in
11505yes:)
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11508ac_tool_warned=yes ;;
11509esac
11510 AR=$ac_ct_AR
11511 fi
cristy73bd4a52010-10-05 11:24:23 +000011512fi
11513
cristyda16f162011-02-19 23:52:17 +000011514: ${AR=ar}
11515: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
cristyda16f162011-02-19 23:52:17 +000011527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11528$as_echo_n "checking for archiver @FILE support... " >&6; }
11529if ${lt_cv_ar_at_file+:} false; then :
11530 $as_echo_n "(cached) " >&6
11531else
11532 lt_cv_ar_at_file=no
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534/* end confdefs.h. */
11535
11536int
11537main ()
11538{
11539
11540 ;
11541 return 0;
11542}
11543_ACEOF
11544if ac_fn_c_try_compile "$LINENO"; then :
11545 echo conftest.$ac_objext > conftest.lst
11546 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11548 (eval $lt_ar_try) 2>&5
11549 ac_status=$?
11550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11551 test $ac_status = 0; }
11552 if test "$ac_status" -eq 0; then
11553 # Ensure the archiver fails upon bogus file names.
11554 rm -f conftest.$ac_objext libconftest.a
11555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11556 (eval $lt_ar_try) 2>&5
11557 ac_status=$?
11558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11559 test $ac_status = 0; }
11560 if test "$ac_status" -ne 0; then
11561 lt_cv_ar_at_file=@
11562 fi
11563 fi
11564 rm -f conftest.* libconftest.a
11565
11566fi
11567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11568
11569fi
11570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11571$as_echo "$lt_cv_ar_at_file" >&6; }
11572
11573if test "x$lt_cv_ar_at_file" = xno; then
11574 archiver_list_spec=
11575else
11576 archiver_list_spec=$lt_cv_ar_at_file
11577fi
11578
11579
11580
11581
11582
11583
11584
cristy73bd4a52010-10-05 11:24:23 +000011585if test -n "$ac_tool_prefix"; then
11586 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11587set dummy ${ac_tool_prefix}strip; ac_word=$2
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011590if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011591 $as_echo_n "(cached) " >&6
11592else
11593 if test -n "$STRIP"; then
11594 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11595else
11596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597for as_dir in $PATH
11598do
11599 IFS=$as_save_IFS
11600 test -z "$as_dir" && as_dir=.
11601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011603 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11605 break 2
11606 fi
11607done
11608 done
11609IFS=$as_save_IFS
11610
11611fi
11612fi
11613STRIP=$ac_cv_prog_STRIP
11614if test -n "$STRIP"; then
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11616$as_echo "$STRIP" >&6; }
11617else
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619$as_echo "no" >&6; }
11620fi
11621
11622
11623fi
11624if test -z "$ac_cv_prog_STRIP"; then
11625 ac_ct_STRIP=$STRIP
11626 # Extract the first word of "strip", so it can be a program name with args.
11627set dummy strip; ac_word=$2
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011630if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011631 $as_echo_n "(cached) " >&6
11632else
11633 if test -n "$ac_ct_STRIP"; then
11634 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11635else
11636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637for as_dir in $PATH
11638do
11639 IFS=$as_save_IFS
11640 test -z "$as_dir" && as_dir=.
11641 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011643 ac_cv_prog_ac_ct_STRIP="strip"
11644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11645 break 2
11646 fi
11647done
11648 done
11649IFS=$as_save_IFS
11650
11651fi
11652fi
11653ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11654if test -n "$ac_ct_STRIP"; then
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11656$as_echo "$ac_ct_STRIP" >&6; }
11657else
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659$as_echo "no" >&6; }
11660fi
11661
11662 if test "x$ac_ct_STRIP" = x; then
11663 STRIP=":"
11664 else
11665 case $cross_compiling:$ac_tool_warned in
11666yes:)
11667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11669ac_tool_warned=yes ;;
11670esac
11671 STRIP=$ac_ct_STRIP
11672 fi
11673else
11674 STRIP="$ac_cv_prog_STRIP"
11675fi
11676
11677test -z "$STRIP" && STRIP=:
11678
11679
11680
11681
11682
11683
11684if test -n "$ac_tool_prefix"; then
11685 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11686set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11687{ $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_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011690 $as_echo_n "(cached) " >&6
11691else
11692 if test -n "$RANLIB"; then
11693 ac_cv_prog_RANLIB="$RANLIB" # 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
cristy73bd4a52010-10-05 11:24:23 +000011702 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11703 $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
11712RANLIB=$ac_cv_prog_RANLIB
11713if test -n "$RANLIB"; then
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11715$as_echo "$RANLIB" >&6; }
11716else
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11718$as_echo "no" >&6; }
11719fi
11720
11721
11722fi
11723if test -z "$ac_cv_prog_RANLIB"; then
11724 ac_ct_RANLIB=$RANLIB
11725 # Extract the first word of "ranlib", so it can be a program name with args.
11726set dummy ranlib; ac_word=$2
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11728$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011729if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011730 $as_echo_n "(cached) " >&6
11731else
11732 if test -n "$ac_ct_RANLIB"; then
11733 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11734else
11735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11736for as_dir in $PATH
11737do
11738 IFS=$as_save_IFS
11739 test -z "$as_dir" && as_dir=.
11740 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011742 ac_cv_prog_ac_ct_RANLIB="ranlib"
11743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11744 break 2
11745 fi
11746done
11747 done
11748IFS=$as_save_IFS
11749
11750fi
11751fi
11752ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11753if test -n "$ac_ct_RANLIB"; then
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11755$as_echo "$ac_ct_RANLIB" >&6; }
11756else
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758$as_echo "no" >&6; }
11759fi
11760
11761 if test "x$ac_ct_RANLIB" = x; then
11762 RANLIB=":"
11763 else
11764 case $cross_compiling:$ac_tool_warned in
11765yes:)
11766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11768ac_tool_warned=yes ;;
11769esac
11770 RANLIB=$ac_ct_RANLIB
11771 fi
11772else
11773 RANLIB="$ac_cv_prog_RANLIB"
11774fi
11775
11776test -z "$RANLIB" && RANLIB=:
11777
11778
11779
11780
11781
11782
11783# Determine commands to create old-style static archives.
11784old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11785old_postinstall_cmds='chmod 644 $oldlib'
11786old_postuninstall_cmds=
11787
11788if test -n "$RANLIB"; then
11789 case $host_os in
11790 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011791 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011792 ;;
11793 *)
cristy99bd5232011-12-07 14:38:20 +000011794 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011795 ;;
11796 esac
cristy99bd5232011-12-07 14:38:20 +000011797 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011798fi
11799
cristy0c60a692010-11-04 01:09:47 +000011800case $host_os in
11801 darwin*)
11802 lock_old_archive_extraction=yes ;;
11803 *)
11804 lock_old_archive_extraction=no ;;
11805esac
11806
11807
11808
11809
11810
11811
cristy73bd4a52010-10-05 11:24:23 +000011812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845# If no C compiler was specified, use CC.
11846LTCC=${LTCC-"$CC"}
11847
11848# If no C compiler flags were specified, use CFLAGS.
11849LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11850
11851# Allow CC to be a program name with arguments.
11852compiler=$CC
11853
11854
11855# Check for command to grab the raw symbol name followed by C symbol from nm.
11856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11857$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011858if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011859 $as_echo_n "(cached) " >&6
11860else
11861
11862# These are sane defaults that work on at least a few old systems.
11863# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11864
11865# Character class describing NM global symbol codes.
11866symcode='[BCDEGRST]'
11867
11868# Regexp to match symbols that can be accessed directly from C.
11869sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11870
11871# Define system-specific variables.
11872case $host_os in
11873aix*)
11874 symcode='[BCDT]'
11875 ;;
11876cygwin* | mingw* | pw32* | cegcc*)
11877 symcode='[ABCDGISTW]'
11878 ;;
11879hpux*)
11880 if test "$host_cpu" = ia64; then
11881 symcode='[ABCDEGRST]'
11882 fi
11883 ;;
11884irix* | nonstopux*)
11885 symcode='[BCDEGRST]'
11886 ;;
11887osf*)
11888 symcode='[BCDEGQRST]'
11889 ;;
11890solaris*)
11891 symcode='[BDRT]'
11892 ;;
11893sco3.2v5*)
11894 symcode='[DT]'
11895 ;;
11896sysv4.2uw2*)
11897 symcode='[DT]'
11898 ;;
11899sysv5* | sco5v6* | unixware* | OpenUNIX*)
11900 symcode='[ABDT]'
11901 ;;
11902sysv4)
11903 symcode='[DFNSTU]'
11904 ;;
11905esac
11906
11907# If we're using GNU nm, then use its standard symbol codes.
11908case `$NM -V 2>&1` in
11909*GNU* | *'with BFD'*)
11910 symcode='[ABCDGIRSTW]' ;;
11911esac
11912
11913# Transform an extracted symbol line into a proper C declaration.
11914# Some systems (esp. on ia64) link data and code symbols differently,
11915# so use this general approach.
11916lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11917
11918# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011919lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11920lt_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 +000011921
11922# Handle CRLF in mingw tool chain
11923opt_cr=
11924case $build_os in
11925mingw*)
11926 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11927 ;;
11928esac
11929
11930# Try without a prefix underscore, then with it.
11931for ac_symprfx in "" "_"; do
11932
11933 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11934 symxfrm="\\1 $ac_symprfx\\2 \\2"
11935
11936 # Write the raw and C identifiers.
11937 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11938 # Fake it for dumpbin and say T for any non-static function
11939 # and D for any global variable.
11940 # Also find C++ and __fastcall symbols from MSVC++,
11941 # which start with @ or ?.
11942 lt_cv_sys_global_symbol_pipe="$AWK '"\
11943" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011944" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011945" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11946" \$ 0!~/External *\|/{next};"\
11947" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11948" {if(hide[section]) next};"\
11949" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11950" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11951" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11952" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11953" ' prfx=^$ac_symprfx"
11954 else
11955 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11956 fi
cristyda16f162011-02-19 23:52:17 +000011957 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011958
11959 # Check to see that the pipe works correctly.
11960 pipe_works=no
11961
11962 rm -f conftest*
11963 cat > conftest.$ac_ext <<_LT_EOF
11964#ifdef __cplusplus
11965extern "C" {
11966#endif
11967char nm_test_var;
11968void nm_test_func(void);
11969void nm_test_func(void){}
11970#ifdef __cplusplus
11971}
11972#endif
11973int main(){nm_test_var='a';nm_test_func();return(0);}
11974_LT_EOF
11975
11976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11977 (eval $ac_compile) 2>&5
11978 ac_status=$?
11979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11980 test $ac_status = 0; }; then
11981 # Now try to grab the symbols.
11982 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11984 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011985 ac_status=$?
11986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11987 test $ac_status = 0; } && test -s "$nlist"; then
11988 # Try sorting and uniquifying the output.
11989 if sort "$nlist" | uniq > "$nlist"T; then
11990 mv -f "$nlist"T "$nlist"
11991 else
11992 rm -f "$nlist"T
11993 fi
11994
11995 # Make sure that we snagged all the symbols we need.
11996 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11997 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11998 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011999/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12000#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12001/* DATA imports from DLLs on WIN32 con't be const, because runtime
12002 relocations are performed -- see ld's documentation on pseudo-relocs. */
12003# define LT_DLSYM_CONST
12004#elif defined(__osf__)
12005/* This system does not cope well with relocations in const data. */
12006# define LT_DLSYM_CONST
12007#else
12008# define LT_DLSYM_CONST const
12009#endif
12010
cristy73bd4a52010-10-05 11:24:23 +000012011#ifdef __cplusplus
12012extern "C" {
12013#endif
12014
12015_LT_EOF
12016 # Now generate the symbol file.
12017 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12018
12019 cat <<_LT_EOF >> conftest.$ac_ext
12020
12021/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012022LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012023 const char *name;
12024 void *address;
12025}
12026lt__PROGRAM__LTX_preloaded_symbols[] =
12027{
12028 { "@PROGRAM@", (void *) 0 },
12029_LT_EOF
12030 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12031 cat <<\_LT_EOF >> conftest.$ac_ext
12032 {0, (void *) 0}
12033};
12034
12035/* This works around a problem in FreeBSD linker */
12036#ifdef FREEBSD_WORKAROUND
12037static const void *lt_preloaded_setup() {
12038 return lt__PROGRAM__LTX_preloaded_symbols;
12039}
12040#endif
12041
12042#ifdef __cplusplus
12043}
12044#endif
12045_LT_EOF
12046 # Now try linking the two files.
12047 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012048 lt_globsym_save_LIBS=$LIBS
12049 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012050 LIBS="conftstm.$ac_objext"
12051 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12053 (eval $ac_link) 2>&5
12054 ac_status=$?
12055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12056 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12057 pipe_works=yes
12058 fi
cristyda16f162011-02-19 23:52:17 +000012059 LIBS=$lt_globsym_save_LIBS
12060 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012061 else
12062 echo "cannot find nm_test_func in $nlist" >&5
12063 fi
12064 else
12065 echo "cannot find nm_test_var in $nlist" >&5
12066 fi
12067 else
12068 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12069 fi
12070 else
12071 echo "$progname: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12073 fi
12074 rm -rf conftest* conftst*
12075
12076 # Do not use the global_symbol_pipe unless it works.
12077 if test "$pipe_works" = yes; then
12078 break
12079 else
12080 lt_cv_sys_global_symbol_pipe=
12081 fi
12082done
12083
12084fi
12085
12086if test -z "$lt_cv_sys_global_symbol_pipe"; then
12087 lt_cv_sys_global_symbol_to_cdecl=
12088fi
12089if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12091$as_echo "failed" >&6; }
12092else
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12094$as_echo "ok" >&6; }
12095fi
12096
cristyda16f162011-02-19 23:52:17 +000012097# Response file support.
12098if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12099 nm_file_list_spec='@'
12100elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12101 nm_file_list_spec='@'
12102fi
cristy73bd4a52010-10-05 11:24:23 +000012103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
cristyda16f162011-02-19 23:52:17 +000012124
12125
12126
12127
12128
12129
12130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12131$as_echo_n "checking for sysroot... " >&6; }
12132
12133# Check whether --with-sysroot was given.
12134if test "${with_sysroot+set}" = set; then :
12135 withval=$with_sysroot;
12136else
12137 with_sysroot=no
12138fi
12139
12140
12141lt_sysroot=
12142case ${with_sysroot} in #(
12143 yes)
12144 if test "$GCC" = yes; then
12145 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12146 fi
12147 ;; #(
12148 /*)
12149 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12150 ;; #(
12151 no|'')
12152 ;; #(
12153 *)
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12155$as_echo "${with_sysroot}" >&6; }
12156 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12157 ;;
12158esac
12159
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12161$as_echo "${lt_sysroot:-no}" >&6; }
12162
12163
12164
12165
12166
cristy73bd4a52010-10-05 11:24:23 +000012167# Check whether --enable-libtool-lock was given.
12168if test "${enable_libtool_lock+set}" = set; then :
12169 enableval=$enable_libtool_lock;
12170fi
12171
12172test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12173
12174# Some flags need to be propagated to the compiler or linker for good
12175# libtool support.
12176case $host in
12177ia64-*-hpux*)
12178 # Find out which ABI we are using.
12179 echo 'int i;' > conftest.$ac_ext
12180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12181 (eval $ac_compile) 2>&5
12182 ac_status=$?
12183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184 test $ac_status = 0; }; then
12185 case `/usr/bin/file conftest.$ac_objext` in
12186 *ELF-32*)
12187 HPUX_IA64_MODE="32"
12188 ;;
12189 *ELF-64*)
12190 HPUX_IA64_MODE="64"
12191 ;;
12192 esac
12193 fi
12194 rm -rf conftest*
12195 ;;
12196*-*-irix6*)
12197 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012198 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12200 (eval $ac_compile) 2>&5
12201 ac_status=$?
12202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12203 test $ac_status = 0; }; then
12204 if test "$lt_cv_prog_gnu_ld" = yes; then
12205 case `/usr/bin/file conftest.$ac_objext` in
12206 *32-bit*)
12207 LD="${LD-ld} -melf32bsmip"
12208 ;;
12209 *N32*)
12210 LD="${LD-ld} -melf32bmipn32"
12211 ;;
12212 *64-bit*)
12213 LD="${LD-ld} -melf64bmip"
12214 ;;
12215 esac
12216 else
12217 case `/usr/bin/file conftest.$ac_objext` in
12218 *32-bit*)
12219 LD="${LD-ld} -32"
12220 ;;
12221 *N32*)
12222 LD="${LD-ld} -n32"
12223 ;;
12224 *64-bit*)
12225 LD="${LD-ld} -64"
12226 ;;
12227 esac
12228 fi
12229 fi
12230 rm -rf conftest*
12231 ;;
12232
12233x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12234s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12235 # Find out which ABI we are using.
12236 echo 'int i;' > conftest.$ac_ext
12237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12238 (eval $ac_compile) 2>&5
12239 ac_status=$?
12240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12241 test $ac_status = 0; }; then
12242 case `/usr/bin/file conftest.o` in
12243 *32-bit*)
12244 case $host in
12245 x86_64-*kfreebsd*-gnu)
12246 LD="${LD-ld} -m elf_i386_fbsd"
12247 ;;
12248 x86_64-*linux*)
12249 LD="${LD-ld} -m elf_i386"
12250 ;;
12251 ppc64-*linux*|powerpc64-*linux*)
12252 LD="${LD-ld} -m elf32ppclinux"
12253 ;;
12254 s390x-*linux*)
12255 LD="${LD-ld} -m elf_s390"
12256 ;;
12257 sparc64-*linux*)
12258 LD="${LD-ld} -m elf32_sparc"
12259 ;;
12260 esac
12261 ;;
12262 *64-bit*)
12263 case $host in
12264 x86_64-*kfreebsd*-gnu)
12265 LD="${LD-ld} -m elf_x86_64_fbsd"
12266 ;;
12267 x86_64-*linux*)
12268 LD="${LD-ld} -m elf_x86_64"
12269 ;;
12270 ppc*-*linux*|powerpc*-*linux*)
12271 LD="${LD-ld} -m elf64ppc"
12272 ;;
12273 s390*-*linux*|s390*-*tpf*)
12274 LD="${LD-ld} -m elf64_s390"
12275 ;;
12276 sparc*-*linux*)
12277 LD="${LD-ld} -m elf64_sparc"
12278 ;;
12279 esac
12280 ;;
12281 esac
12282 fi
12283 rm -rf conftest*
12284 ;;
12285
12286*-*-sco3.2v5*)
12287 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12288 SAVE_CFLAGS="$CFLAGS"
12289 CFLAGS="$CFLAGS -belf"
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12291$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012292if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012293 $as_echo_n "(cached) " >&6
12294else
12295 ac_ext=c
12296ac_cpp='$CPP $CPPFLAGS'
12297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12299ac_compiler_gnu=$ac_cv_c_compiler_gnu
12300
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302/* end confdefs.h. */
12303
12304int
12305main ()
12306{
12307
12308 ;
12309 return 0;
12310}
12311_ACEOF
12312if ac_fn_c_try_link "$LINENO"; then :
12313 lt_cv_cc_needs_belf=yes
12314else
12315 lt_cv_cc_needs_belf=no
12316fi
12317rm -f core conftest.err conftest.$ac_objext \
12318 conftest$ac_exeext conftest.$ac_ext
12319 ac_ext=c
12320ac_cpp='$CPP $CPPFLAGS'
12321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323ac_compiler_gnu=$ac_cv_c_compiler_gnu
12324
12325fi
12326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12327$as_echo "$lt_cv_cc_needs_belf" >&6; }
12328 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12329 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12330 CFLAGS="$SAVE_CFLAGS"
12331 fi
12332 ;;
cristy99bd5232011-12-07 14:38:20 +000012333*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012334 # Find out which ABI we are using.
12335 echo 'int i;' > conftest.$ac_ext
12336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12337 (eval $ac_compile) 2>&5
12338 ac_status=$?
12339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12340 test $ac_status = 0; }; then
12341 case `/usr/bin/file conftest.o` in
12342 *64-bit*)
12343 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012344 yes*)
12345 case $host in
12346 i?86-*-solaris*)
12347 LD="${LD-ld} -m elf_x86_64"
12348 ;;
12349 sparc*-*-solaris*)
12350 LD="${LD-ld} -m elf64_sparc"
12351 ;;
12352 esac
12353 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12354 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12355 LD="${LD-ld}_sol2"
12356 fi
12357 ;;
cristy73bd4a52010-10-05 11:24:23 +000012358 *)
12359 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12360 LD="${LD-ld} -64"
12361 fi
12362 ;;
12363 esac
12364 ;;
12365 esac
12366 fi
12367 rm -rf conftest*
12368 ;;
12369esac
12370
12371need_locks="$enable_libtool_lock"
12372
cristyda16f162011-02-19 23:52:17 +000012373if test -n "$ac_tool_prefix"; then
12374 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12375set dummy ${ac_tool_prefix}mt; ac_word=$2
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12377$as_echo_n "checking for $ac_word... " >&6; }
12378if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380else
12381 if test -n "$MANIFEST_TOOL"; then
12382 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12383else
12384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385for as_dir in $PATH
12386do
12387 IFS=$as_save_IFS
12388 test -z "$as_dir" && as_dir=.
12389 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012391 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12393 break 2
12394 fi
12395done
12396 done
12397IFS=$as_save_IFS
12398
12399fi
12400fi
12401MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12402if test -n "$MANIFEST_TOOL"; then
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12404$as_echo "$MANIFEST_TOOL" >&6; }
12405else
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407$as_echo "no" >&6; }
12408fi
12409
12410
12411fi
12412if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12413 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12414 # Extract the first word of "mt", so it can be a program name with args.
12415set dummy mt; ac_word=$2
12416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12417$as_echo_n "checking for $ac_word... " >&6; }
12418if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12419 $as_echo_n "(cached) " >&6
12420else
12421 if test -n "$ac_ct_MANIFEST_TOOL"; then
12422 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12423else
12424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12425for as_dir in $PATH
12426do
12427 IFS=$as_save_IFS
12428 test -z "$as_dir" && as_dir=.
12429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012431 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12433 break 2
12434 fi
12435done
12436 done
12437IFS=$as_save_IFS
12438
12439fi
12440fi
12441ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12442if test -n "$ac_ct_MANIFEST_TOOL"; then
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12444$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12445else
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447$as_echo "no" >&6; }
12448fi
12449
12450 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12451 MANIFEST_TOOL=":"
12452 else
12453 case $cross_compiling:$ac_tool_warned in
12454yes:)
12455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12457ac_tool_warned=yes ;;
12458esac
12459 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12460 fi
12461else
12462 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12463fi
12464
12465test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12467$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12468if ${lt_cv_path_mainfest_tool+:} false; then :
12469 $as_echo_n "(cached) " >&6
12470else
12471 lt_cv_path_mainfest_tool=no
12472 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12473 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12474 cat conftest.err >&5
12475 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12476 lt_cv_path_mainfest_tool=yes
12477 fi
12478 rm -f conftest*
12479fi
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12481$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12482if test "x$lt_cv_path_mainfest_tool" != xyes; then
12483 MANIFEST_TOOL=:
12484fi
12485
12486
12487
12488
12489
cristy73bd4a52010-10-05 11:24:23 +000012490
12491 case $host_os in
12492 rhapsody* | darwin*)
12493 if test -n "$ac_tool_prefix"; then
12494 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12495set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012498if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012499 $as_echo_n "(cached) " >&6
12500else
12501 if test -n "$DSYMUTIL"; then
12502 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12503else
12504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505for as_dir in $PATH
12506do
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012511 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12514 fi
12515done
12516 done
12517IFS=$as_save_IFS
12518
12519fi
12520fi
12521DSYMUTIL=$ac_cv_prog_DSYMUTIL
12522if test -n "$DSYMUTIL"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12524$as_echo "$DSYMUTIL" >&6; }
12525else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
12528fi
12529
12530
12531fi
12532if test -z "$ac_cv_prog_DSYMUTIL"; then
12533 ac_ct_DSYMUTIL=$DSYMUTIL
12534 # Extract the first word of "dsymutil", so it can be a program name with args.
12535set dummy dsymutil; ac_word=$2
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12537$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012538if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012539 $as_echo_n "(cached) " >&6
12540else
12541 if test -n "$ac_ct_DSYMUTIL"; then
12542 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12543else
12544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12545for as_dir in $PATH
12546do
12547 IFS=$as_save_IFS
12548 test -z "$as_dir" && as_dir=.
12549 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012551 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12553 break 2
12554 fi
12555done
12556 done
12557IFS=$as_save_IFS
12558
12559fi
12560fi
12561ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12562if test -n "$ac_ct_DSYMUTIL"; then
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12564$as_echo "$ac_ct_DSYMUTIL" >&6; }
12565else
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567$as_echo "no" >&6; }
12568fi
12569
12570 if test "x$ac_ct_DSYMUTIL" = x; then
12571 DSYMUTIL=":"
12572 else
12573 case $cross_compiling:$ac_tool_warned in
12574yes:)
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12577ac_tool_warned=yes ;;
12578esac
12579 DSYMUTIL=$ac_ct_DSYMUTIL
12580 fi
12581else
12582 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12583fi
12584
12585 if test -n "$ac_tool_prefix"; then
12586 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12587set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012590if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012591 $as_echo_n "(cached) " >&6
12592else
12593 if test -n "$NMEDIT"; then
12594 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12595else
12596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597for as_dir in $PATH
12598do
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012603 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605 break 2
12606 fi
12607done
12608 done
12609IFS=$as_save_IFS
12610
12611fi
12612fi
12613NMEDIT=$ac_cv_prog_NMEDIT
12614if test -n "$NMEDIT"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12616$as_echo "$NMEDIT" >&6; }
12617else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619$as_echo "no" >&6; }
12620fi
12621
12622
12623fi
12624if test -z "$ac_cv_prog_NMEDIT"; then
12625 ac_ct_NMEDIT=$NMEDIT
12626 # Extract the first word of "nmedit", so it can be a program name with args.
12627set dummy nmedit; ac_word=$2
12628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012630if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012631 $as_echo_n "(cached) " >&6
12632else
12633 if test -n "$ac_ct_NMEDIT"; then
12634 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12635else
12636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637for as_dir in $PATH
12638do
12639 IFS=$as_save_IFS
12640 test -z "$as_dir" && as_dir=.
12641 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012643 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645 break 2
12646 fi
12647done
12648 done
12649IFS=$as_save_IFS
12650
12651fi
12652fi
12653ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12654if test -n "$ac_ct_NMEDIT"; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12656$as_echo "$ac_ct_NMEDIT" >&6; }
12657else
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659$as_echo "no" >&6; }
12660fi
12661
12662 if test "x$ac_ct_NMEDIT" = x; then
12663 NMEDIT=":"
12664 else
12665 case $cross_compiling:$ac_tool_warned in
12666yes:)
12667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12669ac_tool_warned=yes ;;
12670esac
12671 NMEDIT=$ac_ct_NMEDIT
12672 fi
12673else
12674 NMEDIT="$ac_cv_prog_NMEDIT"
12675fi
12676
12677 if test -n "$ac_tool_prefix"; then
12678 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12679set dummy ${ac_tool_prefix}lipo; ac_word=$2
12680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12681$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012682if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012683 $as_echo_n "(cached) " >&6
12684else
12685 if test -n "$LIPO"; then
12686 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12687else
12688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12689for as_dir in $PATH
12690do
12691 IFS=$as_save_IFS
12692 test -z "$as_dir" && as_dir=.
12693 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012695 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12697 break 2
12698 fi
12699done
12700 done
12701IFS=$as_save_IFS
12702
12703fi
12704fi
12705LIPO=$ac_cv_prog_LIPO
12706if test -n "$LIPO"; then
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12708$as_echo "$LIPO" >&6; }
12709else
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711$as_echo "no" >&6; }
12712fi
12713
12714
12715fi
12716if test -z "$ac_cv_prog_LIPO"; then
12717 ac_ct_LIPO=$LIPO
12718 # Extract the first word of "lipo", so it can be a program name with args.
12719set dummy lipo; 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_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012723 $as_echo_n "(cached) " >&6
12724else
12725 if test -n "$ac_ct_LIPO"; then
12726 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_ac_ct_LIPO="lipo"
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
12745ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12746if test -n "$ac_ct_LIPO"; then
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12748$as_echo "$ac_ct_LIPO" >&6; }
12749else
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751$as_echo "no" >&6; }
12752fi
12753
12754 if test "x$ac_ct_LIPO" = x; then
12755 LIPO=":"
12756 else
12757 case $cross_compiling:$ac_tool_warned in
12758yes:)
12759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12761ac_tool_warned=yes ;;
12762esac
12763 LIPO=$ac_ct_LIPO
12764 fi
12765else
12766 LIPO="$ac_cv_prog_LIPO"
12767fi
12768
12769 if test -n "$ac_tool_prefix"; then
12770 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12771set dummy ${ac_tool_prefix}otool; ac_word=$2
12772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12773$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012774if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012775 $as_echo_n "(cached) " >&6
12776else
12777 if test -n "$OTOOL"; then
12778 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12779else
12780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12781for as_dir in $PATH
12782do
12783 IFS=$as_save_IFS
12784 test -z "$as_dir" && as_dir=.
12785 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012787 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12789 break 2
12790 fi
12791done
12792 done
12793IFS=$as_save_IFS
12794
12795fi
12796fi
12797OTOOL=$ac_cv_prog_OTOOL
12798if test -n "$OTOOL"; then
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12800$as_echo "$OTOOL" >&6; }
12801else
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803$as_echo "no" >&6; }
12804fi
12805
12806
12807fi
12808if test -z "$ac_cv_prog_OTOOL"; then
12809 ac_ct_OTOOL=$OTOOL
12810 # Extract the first word of "otool", so it can be a program name with args.
12811set dummy otool; 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_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012815 $as_echo_n "(cached) " >&6
12816else
12817 if test -n "$ac_ct_OTOOL"; then
12818 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_ac_ct_OTOOL="otool"
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
12837ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12838if test -n "$ac_ct_OTOOL"; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12840$as_echo "$ac_ct_OTOOL" >&6; }
12841else
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843$as_echo "no" >&6; }
12844fi
12845
12846 if test "x$ac_ct_OTOOL" = x; then
12847 OTOOL=":"
12848 else
12849 case $cross_compiling:$ac_tool_warned in
12850yes:)
12851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12853ac_tool_warned=yes ;;
12854esac
12855 OTOOL=$ac_ct_OTOOL
12856 fi
12857else
12858 OTOOL="$ac_cv_prog_OTOOL"
12859fi
12860
12861 if test -n "$ac_tool_prefix"; then
12862 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12863set dummy ${ac_tool_prefix}otool64; ac_word=$2
12864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012866if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012867 $as_echo_n "(cached) " >&6
12868else
12869 if test -n "$OTOOL64"; then
12870 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12871else
12872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12873for as_dir in $PATH
12874do
12875 IFS=$as_save_IFS
12876 test -z "$as_dir" && as_dir=.
12877 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012879 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12881 break 2
12882 fi
12883done
12884 done
12885IFS=$as_save_IFS
12886
12887fi
12888fi
12889OTOOL64=$ac_cv_prog_OTOOL64
12890if test -n "$OTOOL64"; then
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12892$as_echo "$OTOOL64" >&6; }
12893else
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895$as_echo "no" >&6; }
12896fi
12897
12898
12899fi
12900if test -z "$ac_cv_prog_OTOOL64"; then
12901 ac_ct_OTOOL64=$OTOOL64
12902 # Extract the first word of "otool64", so it can be a program name with args.
12903set dummy otool64; 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_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012907 $as_echo_n "(cached) " >&6
12908else
12909 if test -n "$ac_ct_OTOOL64"; then
12910 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_ac_ct_OTOOL64="otool64"
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
12929ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12930if test -n "$ac_ct_OTOOL64"; then
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12932$as_echo "$ac_ct_OTOOL64" >&6; }
12933else
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935$as_echo "no" >&6; }
12936fi
12937
12938 if test "x$ac_ct_OTOOL64" = x; then
12939 OTOOL64=":"
12940 else
12941 case $cross_compiling:$ac_tool_warned in
12942yes:)
12943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12945ac_tool_warned=yes ;;
12946esac
12947 OTOOL64=$ac_ct_OTOOL64
12948 fi
12949else
12950 OTOOL64="$ac_cv_prog_OTOOL64"
12951fi
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12980$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012981if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012982 $as_echo_n "(cached) " >&6
12983else
12984 lt_cv_apple_cc_single_mod=no
12985 if test -z "${LT_MULTI_MODULE}"; then
12986 # By default we will add the -single_module flag. You can override
12987 # by either setting the environment variable LT_MULTI_MODULE
12988 # non-empty at configure time, or by adding -multi_module to the
12989 # link flags.
12990 rm -rf libconftest.dylib*
12991 echo "int foo(void){return 1;}" > conftest.c
12992 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12993-dynamiclib -Wl,-single_module conftest.c" >&5
12994 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12995 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12996 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012997 # If there is a non-empty error log, and "single_module"
12998 # appears in it, assume the flag caused a linker warning
12999 if test -s conftest.err && $GREP single_module conftest.err; then
13000 cat conftest.err >&5
13001 # Otherwise, if the output was created with a 0 exit code from
13002 # the compiler, it worked.
13003 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013004 lt_cv_apple_cc_single_mod=yes
13005 else
13006 cat conftest.err >&5
13007 fi
13008 rm -rf libconftest.dylib*
13009 rm -f conftest.*
13010 fi
13011fi
13012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13013$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013014
cristy73bd4a52010-10-05 11:24:23 +000013015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13016$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013017if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013018 $as_echo_n "(cached) " >&6
13019else
13020 lt_cv_ld_exported_symbols_list=no
13021 save_LDFLAGS=$LDFLAGS
13022 echo "_main" > conftest.sym
13023 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025/* end confdefs.h. */
13026
13027int
13028main ()
13029{
13030
13031 ;
13032 return 0;
13033}
13034_ACEOF
13035if ac_fn_c_try_link "$LINENO"; then :
13036 lt_cv_ld_exported_symbols_list=yes
13037else
13038 lt_cv_ld_exported_symbols_list=no
13039fi
13040rm -f core conftest.err conftest.$ac_objext \
13041 conftest$ac_exeext conftest.$ac_ext
13042 LDFLAGS="$save_LDFLAGS"
13043
13044fi
13045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13046$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013047
cristy0c60a692010-11-04 01:09:47 +000013048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13049$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013050if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013051 $as_echo_n "(cached) " >&6
13052else
13053 lt_cv_ld_force_load=no
13054 cat > conftest.c << _LT_EOF
13055int forced_loaded() { return 2;}
13056_LT_EOF
13057 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13058 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13059 echo "$AR cru libconftest.a conftest.o" >&5
13060 $AR cru libconftest.a conftest.o 2>&5
13061 echo "$RANLIB libconftest.a" >&5
13062 $RANLIB libconftest.a 2>&5
13063 cat > conftest.c << _LT_EOF
13064int main() { return 0;}
13065_LT_EOF
13066 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13067 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13068 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013069 if test -s conftest.err && $GREP force_load conftest.err; then
13070 cat conftest.err >&5
13071 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013072 lt_cv_ld_force_load=yes
13073 else
13074 cat conftest.err >&5
13075 fi
13076 rm -f conftest.err libconftest.a conftest conftest.c
13077 rm -rf conftest.dSYM
13078
13079fi
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13081$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013082 case $host_os in
13083 rhapsody* | darwin1.[012])
13084 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13085 darwin1.*)
13086 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13087 darwin*) # darwin 5.x on
13088 # if running on 10.5 or later, the deployment target defaults
13089 # to the OS version, if on x86, and 10.4, the deployment
13090 # target defaults to 10.4. Don't you love it?
13091 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13092 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13093 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13094 10.[012]*)
13095 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13096 10.*)
13097 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13098 esac
13099 ;;
13100 esac
13101 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13102 _lt_dar_single_mod='$single_module'
13103 fi
13104 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13105 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13106 else
13107 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13108 fi
cristy0c60a692010-11-04 01:09:47 +000013109 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013110 _lt_dsymutil='~$DSYMUTIL $lib || :'
13111 else
13112 _lt_dsymutil=
13113 fi
13114 ;;
13115 esac
13116
13117for ac_header in dlfcn.h
13118do :
13119 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13120"
cristyda16f162011-02-19 23:52:17 +000013121if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013122 cat >>confdefs.h <<_ACEOF
13123#define HAVE_DLFCN_H 1
13124_ACEOF
13125
13126fi
13127
13128done
13129
13130
13131
cristy73bd4a52010-10-05 11:24:23 +000013132
cristyda16f162011-02-19 23:52:17 +000013133func_stripname_cnf ()
13134{
13135 case ${2} in
13136 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13137 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13138 esac
13139} # func_stripname_cnf
13140
13141
13142
cristy73bd4a52010-10-05 11:24:23 +000013143
13144
13145# Set options
13146enable_win32_dll=yes
13147
13148case $host in
cristy0c60a692010-11-04 01:09:47 +000013149*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013150 if test -n "$ac_tool_prefix"; then
13151 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13152set dummy ${ac_tool_prefix}as; ac_word=$2
13153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13154$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013155if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013156 $as_echo_n "(cached) " >&6
13157else
13158 if test -n "$AS"; then
13159 ac_cv_prog_AS="$AS" # Let the user override the test.
13160else
13161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13162for as_dir in $PATH
13163do
13164 IFS=$as_save_IFS
13165 test -z "$as_dir" && as_dir=.
13166 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013168 ac_cv_prog_AS="${ac_tool_prefix}as"
13169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13170 break 2
13171 fi
13172done
13173 done
13174IFS=$as_save_IFS
13175
13176fi
13177fi
13178AS=$ac_cv_prog_AS
13179if test -n "$AS"; then
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13181$as_echo "$AS" >&6; }
13182else
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13184$as_echo "no" >&6; }
13185fi
13186
13187
13188fi
13189if test -z "$ac_cv_prog_AS"; then
13190 ac_ct_AS=$AS
13191 # Extract the first word of "as", so it can be a program name with args.
13192set dummy as; ac_word=$2
13193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13194$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013195if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013196 $as_echo_n "(cached) " >&6
13197else
13198 if test -n "$ac_ct_AS"; then
13199 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13200else
13201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202for as_dir in $PATH
13203do
13204 IFS=$as_save_IFS
13205 test -z "$as_dir" && as_dir=.
13206 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013208 ac_cv_prog_ac_ct_AS="as"
13209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13210 break 2
13211 fi
13212done
13213 done
13214IFS=$as_save_IFS
13215
13216fi
13217fi
13218ac_ct_AS=$ac_cv_prog_ac_ct_AS
13219if test -n "$ac_ct_AS"; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13221$as_echo "$ac_ct_AS" >&6; }
13222else
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224$as_echo "no" >&6; }
13225fi
13226
13227 if test "x$ac_ct_AS" = x; then
13228 AS="false"
13229 else
13230 case $cross_compiling:$ac_tool_warned in
13231yes:)
13232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13234ac_tool_warned=yes ;;
13235esac
13236 AS=$ac_ct_AS
13237 fi
13238else
13239 AS="$ac_cv_prog_AS"
13240fi
13241
13242 if test -n "$ac_tool_prefix"; then
13243 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13244set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13246$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013247if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013248 $as_echo_n "(cached) " >&6
13249else
13250 if test -n "$DLLTOOL"; then
13251 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13252else
13253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13254for as_dir in $PATH
13255do
13256 IFS=$as_save_IFS
13257 test -z "$as_dir" && as_dir=.
13258 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013260 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13262 break 2
13263 fi
13264done
13265 done
13266IFS=$as_save_IFS
13267
13268fi
13269fi
13270DLLTOOL=$ac_cv_prog_DLLTOOL
13271if test -n "$DLLTOOL"; then
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13273$as_echo "$DLLTOOL" >&6; }
13274else
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276$as_echo "no" >&6; }
13277fi
13278
13279
13280fi
13281if test -z "$ac_cv_prog_DLLTOOL"; then
13282 ac_ct_DLLTOOL=$DLLTOOL
13283 # Extract the first word of "dlltool", so it can be a program name with args.
13284set dummy dlltool; ac_word=$2
13285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13286$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013287if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013288 $as_echo_n "(cached) " >&6
13289else
13290 if test -n "$ac_ct_DLLTOOL"; then
13291 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13292else
13293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13294for as_dir in $PATH
13295do
13296 IFS=$as_save_IFS
13297 test -z "$as_dir" && as_dir=.
13298 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013300 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13302 break 2
13303 fi
13304done
13305 done
13306IFS=$as_save_IFS
13307
13308fi
13309fi
13310ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13311if test -n "$ac_ct_DLLTOOL"; then
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13313$as_echo "$ac_ct_DLLTOOL" >&6; }
13314else
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13316$as_echo "no" >&6; }
13317fi
13318
13319 if test "x$ac_ct_DLLTOOL" = x; then
13320 DLLTOOL="false"
13321 else
13322 case $cross_compiling:$ac_tool_warned in
13323yes:)
13324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13326ac_tool_warned=yes ;;
13327esac
13328 DLLTOOL=$ac_ct_DLLTOOL
13329 fi
13330else
13331 DLLTOOL="$ac_cv_prog_DLLTOOL"
13332fi
13333
13334 if test -n "$ac_tool_prefix"; then
13335 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13336set dummy ${ac_tool_prefix}objdump; ac_word=$2
13337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13338$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013339if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013340 $as_echo_n "(cached) " >&6
13341else
13342 if test -n "$OBJDUMP"; then
13343 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13344else
13345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13346for as_dir in $PATH
13347do
13348 IFS=$as_save_IFS
13349 test -z "$as_dir" && as_dir=.
13350 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013352 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13354 break 2
13355 fi
13356done
13357 done
13358IFS=$as_save_IFS
13359
13360fi
13361fi
13362OBJDUMP=$ac_cv_prog_OBJDUMP
13363if test -n "$OBJDUMP"; then
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13365$as_echo "$OBJDUMP" >&6; }
13366else
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368$as_echo "no" >&6; }
13369fi
13370
13371
13372fi
13373if test -z "$ac_cv_prog_OBJDUMP"; then
13374 ac_ct_OBJDUMP=$OBJDUMP
13375 # Extract the first word of "objdump", so it can be a program name with args.
13376set dummy objdump; 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_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013380 $as_echo_n "(cached) " >&6
13381else
13382 if test -n "$ac_ct_OBJDUMP"; then
13383 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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_ac_ct_OBJDUMP="objdump"
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
13402ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13403if test -n "$ac_ct_OBJDUMP"; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13405$as_echo "$ac_ct_OBJDUMP" >&6; }
13406else
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408$as_echo "no" >&6; }
13409fi
13410
13411 if test "x$ac_ct_OBJDUMP" = x; then
13412 OBJDUMP="false"
13413 else
13414 case $cross_compiling:$ac_tool_warned in
13415yes:)
13416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13418ac_tool_warned=yes ;;
13419esac
13420 OBJDUMP=$ac_ct_OBJDUMP
13421 fi
13422else
13423 OBJDUMP="$ac_cv_prog_OBJDUMP"
13424fi
13425
13426 ;;
13427esac
13428
13429test -z "$AS" && AS=as
13430
13431
13432
13433
13434
13435test -z "$DLLTOOL" && DLLTOOL=dlltool
13436
13437
13438
13439
13440
13441test -z "$OBJDUMP" && OBJDUMP=objdump
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451 # Check whether --enable-shared was given.
13452if test "${enable_shared+set}" = set; then :
13453 enableval=$enable_shared; p=${PACKAGE-default}
13454 case $enableval in
13455 yes) enable_shared=yes ;;
13456 no) enable_shared=no ;;
13457 *)
13458 enable_shared=no
13459 # Look at the argument we got. We use all the common list separators.
13460 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13461 for pkg in $enableval; do
13462 IFS="$lt_save_ifs"
13463 if test "X$pkg" = "X$p"; then
13464 enable_shared=yes
13465 fi
13466 done
13467 IFS="$lt_save_ifs"
13468 ;;
13469 esac
13470else
13471 enable_shared=yes
13472fi
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482 # Check whether --enable-static was given.
13483if test "${enable_static+set}" = set; then :
13484 enableval=$enable_static; p=${PACKAGE-default}
13485 case $enableval in
13486 yes) enable_static=yes ;;
13487 no) enable_static=no ;;
13488 *)
13489 enable_static=no
13490 # Look at the argument we got. We use all the common list separators.
13491 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13492 for pkg in $enableval; do
13493 IFS="$lt_save_ifs"
13494 if test "X$pkg" = "X$p"; then
13495 enable_static=yes
13496 fi
13497 done
13498 IFS="$lt_save_ifs"
13499 ;;
13500 esac
13501else
13502 enable_static=yes
13503fi
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514# Check whether --with-pic was given.
13515if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013516 withval=$with_pic; lt_p=${PACKAGE-default}
13517 case $withval in
13518 yes|no) pic_mode=$withval ;;
13519 *)
13520 pic_mode=default
13521 # Look at the argument we got. We use all the common list separators.
13522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13523 for lt_pkg in $withval; do
13524 IFS="$lt_save_ifs"
13525 if test "X$lt_pkg" = "X$lt_p"; then
13526 pic_mode=yes
13527 fi
13528 done
13529 IFS="$lt_save_ifs"
13530 ;;
13531 esac
cristy73bd4a52010-10-05 11:24:23 +000013532else
13533 pic_mode=default
13534fi
13535
13536
13537test -z "$pic_mode" && pic_mode=default
13538
13539
13540
13541
13542
13543
13544
13545 # Check whether --enable-fast-install was given.
13546if test "${enable_fast_install+set}" = set; then :
13547 enableval=$enable_fast_install; p=${PACKAGE-default}
13548 case $enableval in
13549 yes) enable_fast_install=yes ;;
13550 no) enable_fast_install=no ;;
13551 *)
13552 enable_fast_install=no
13553 # Look at the argument we got. We use all the common list separators.
13554 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13555 for pkg in $enableval; do
13556 IFS="$lt_save_ifs"
13557 if test "X$pkg" = "X$p"; then
13558 enable_fast_install=yes
13559 fi
13560 done
13561 IFS="$lt_save_ifs"
13562 ;;
13563 esac
13564else
13565 enable_fast_install=yes
13566fi
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578# This can be used to rebuild libtool when needed
13579LIBTOOL_DEPS="$ltmain"
13580
13581# Always use our own libtool.
13582LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
cristy0c60a692010-11-04 01:09:47 +000013608
cristy99bd5232011-12-07 14:38:20 +000013609
13610
13611
13612
cristy73bd4a52010-10-05 11:24:23 +000013613test -z "$LN_S" && LN_S="ln -s"
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628if test -n "${ZSH_VERSION+set}" ; then
13629 setopt NO_GLOB_SUBST
13630fi
13631
13632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13633$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013634if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013635 $as_echo_n "(cached) " >&6
13636else
13637 rm -f .libs 2>/dev/null
13638mkdir .libs 2>/dev/null
13639if test -d .libs; then
13640 lt_cv_objdir=.libs
13641else
13642 # MS-DOS does not allow filenames that begin with a dot.
13643 lt_cv_objdir=_libs
13644fi
13645rmdir .libs 2>/dev/null
13646fi
13647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13648$as_echo "$lt_cv_objdir" >&6; }
13649objdir=$lt_cv_objdir
13650
13651
13652
13653
13654
13655cat >>confdefs.h <<_ACEOF
13656#define LT_OBJDIR "$lt_cv_objdir/"
13657_ACEOF
13658
13659
13660
13661
cristy73bd4a52010-10-05 11:24:23 +000013662case $host_os in
13663aix3*)
13664 # AIX sometimes has problems with the GCC collect2 program. For some
13665 # reason, if we set the COLLECT_NAMES environment variable, the problems
13666 # vanish in a puff of smoke.
13667 if test "X${COLLECT_NAMES+set}" != Xset; then
13668 COLLECT_NAMES=
13669 export COLLECT_NAMES
13670 fi
13671 ;;
13672esac
13673
cristy73bd4a52010-10-05 11:24:23 +000013674# Global variables:
13675ofile=libtool
13676can_build_shared=yes
13677
13678# All known linkers require a `.a' archive for static linking (except MSVC,
13679# which needs '.lib').
13680libext=a
13681
13682with_gnu_ld="$lt_cv_prog_gnu_ld"
13683
13684old_CC="$CC"
13685old_CFLAGS="$CFLAGS"
13686
13687# Set sane defaults for various variables
13688test -z "$CC" && CC=cc
13689test -z "$LTCC" && LTCC=$CC
13690test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13691test -z "$LD" && LD=ld
13692test -z "$ac_objext" && ac_objext=o
13693
13694for cc_temp in $compiler""; do
13695 case $cc_temp in
13696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13698 \-*) ;;
13699 *) break;;
13700 esac
13701done
cristy0c60a692010-11-04 01:09:47 +000013702cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013703
13704
13705# Only perform the check for file, if the check method requires it
13706test -z "$MAGIC_CMD" && MAGIC_CMD=file
13707case $deplibs_check_method in
13708file_magic*)
13709 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13711$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013712if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013713 $as_echo_n "(cached) " >&6
13714else
13715 case $MAGIC_CMD in
13716[\\/*] | ?:[\\/]*)
13717 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13718 ;;
13719*)
13720 lt_save_MAGIC_CMD="$MAGIC_CMD"
13721 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13722 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13723 for ac_dir in $ac_dummy; do
13724 IFS="$lt_save_ifs"
13725 test -z "$ac_dir" && ac_dir=.
13726 if test -f $ac_dir/${ac_tool_prefix}file; then
13727 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13728 if test -n "$file_magic_test_file"; then
13729 case $deplibs_check_method in
13730 "file_magic "*)
13731 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13733 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13734 $EGREP "$file_magic_regex" > /dev/null; then
13735 :
13736 else
13737 cat <<_LT_EOF 1>&2
13738
13739*** Warning: the command libtool uses to detect shared libraries,
13740*** $file_magic_cmd, produces output that libtool cannot recognize.
13741*** The result is that libtool may fail to recognize shared libraries
13742*** as such. This will affect the creation of libtool libraries that
13743*** depend on shared libraries, but programs linked with such libtool
13744*** libraries will work regardless of this problem. Nevertheless, you
13745*** may want to report the problem to your system manager and/or to
13746*** bug-libtool@gnu.org
13747
13748_LT_EOF
13749 fi ;;
13750 esac
13751 fi
13752 break
13753 fi
13754 done
13755 IFS="$lt_save_ifs"
13756 MAGIC_CMD="$lt_save_MAGIC_CMD"
13757 ;;
13758esac
13759fi
13760
13761MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13762if test -n "$MAGIC_CMD"; then
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13764$as_echo "$MAGIC_CMD" >&6; }
13765else
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767$as_echo "no" >&6; }
13768fi
13769
13770
13771
13772
13773
13774if test -z "$lt_cv_path_MAGIC_CMD"; then
13775 if test -n "$ac_tool_prefix"; then
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13777$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013778if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013779 $as_echo_n "(cached) " >&6
13780else
13781 case $MAGIC_CMD in
13782[\\/*] | ?:[\\/]*)
13783 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13784 ;;
13785*)
13786 lt_save_MAGIC_CMD="$MAGIC_CMD"
13787 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13788 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13789 for ac_dir in $ac_dummy; do
13790 IFS="$lt_save_ifs"
13791 test -z "$ac_dir" && ac_dir=.
13792 if test -f $ac_dir/file; then
13793 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13794 if test -n "$file_magic_test_file"; then
13795 case $deplibs_check_method in
13796 "file_magic "*)
13797 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13798 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13799 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13800 $EGREP "$file_magic_regex" > /dev/null; then
13801 :
13802 else
13803 cat <<_LT_EOF 1>&2
13804
13805*** Warning: the command libtool uses to detect shared libraries,
13806*** $file_magic_cmd, produces output that libtool cannot recognize.
13807*** The result is that libtool may fail to recognize shared libraries
13808*** as such. This will affect the creation of libtool libraries that
13809*** depend on shared libraries, but programs linked with such libtool
13810*** libraries will work regardless of this problem. Nevertheless, you
13811*** may want to report the problem to your system manager and/or to
13812*** bug-libtool@gnu.org
13813
13814_LT_EOF
13815 fi ;;
13816 esac
13817 fi
13818 break
13819 fi
13820 done
13821 IFS="$lt_save_ifs"
13822 MAGIC_CMD="$lt_save_MAGIC_CMD"
13823 ;;
13824esac
13825fi
13826
13827MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13828if test -n "$MAGIC_CMD"; then
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13830$as_echo "$MAGIC_CMD" >&6; }
13831else
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833$as_echo "no" >&6; }
13834fi
13835
13836
13837 else
13838 MAGIC_CMD=:
13839 fi
13840fi
13841
13842 fi
13843 ;;
13844esac
13845
13846# Use C for the default configuration in the libtool script
13847
13848lt_save_CC="$CC"
13849ac_ext=c
13850ac_cpp='$CPP $CPPFLAGS'
13851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13853ac_compiler_gnu=$ac_cv_c_compiler_gnu
13854
13855
13856# Source file extension for C test sources.
13857ac_ext=c
13858
13859# Object file extension for compiled C test sources.
13860objext=o
13861objext=$objext
13862
13863# Code to be used in simple compile tests
13864lt_simple_compile_test_code="int some_variable = 0;"
13865
13866# Code to be used in simple link tests
13867lt_simple_link_test_code='int main(){return(0);}'
13868
13869
13870
13871
13872
13873
13874
13875# If no C compiler was specified, use CC.
13876LTCC=${LTCC-"$CC"}
13877
13878# If no C compiler flags were specified, use CFLAGS.
13879LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13880
13881# Allow CC to be a program name with arguments.
13882compiler=$CC
13883
13884# Save the default compiler, since it gets overwritten when the other
13885# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13886compiler_DEFAULT=$CC
13887
13888# save warnings/boilerplate of simple test code
13889ac_outfile=conftest.$ac_objext
13890echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13891eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13892_lt_compiler_boilerplate=`cat conftest.err`
13893$RM conftest*
13894
13895ac_outfile=conftest.$ac_objext
13896echo "$lt_simple_link_test_code" >conftest.$ac_ext
13897eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13898_lt_linker_boilerplate=`cat conftest.err`
13899$RM -r conftest*
13900
13901
13902## CAVEAT EMPTOR:
13903## There is no encapsulation within the following macros, do not change
13904## the running order or otherwise move them around unless you know exactly
13905## what you are doing...
13906if test -n "$compiler"; then
13907
13908lt_prog_compiler_no_builtin_flag=
13909
13910if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013911 case $cc_basename in
13912 nvcc*)
13913 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13914 *)
13915 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13916 esac
cristy73bd4a52010-10-05 11:24:23 +000013917
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13919$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013920if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013921 $as_echo_n "(cached) " >&6
13922else
13923 lt_cv_prog_compiler_rtti_exceptions=no
13924 ac_outfile=conftest.$ac_objext
13925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13926 lt_compiler_flag="-fno-rtti -fno-exceptions"
13927 # Insert the option either (1) after the last *FLAGS variable, or
13928 # (2) before a word containing "conftest.", or (3) at the end.
13929 # Note that $ac_compile itself does not contain backslashes and begins
13930 # with a dollar sign (not a hyphen), so the echo should work correctly.
13931 # The option is referenced via a variable to avoid confusing sed.
13932 lt_compile=`echo "$ac_compile" | $SED \
13933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13935 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013936 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013937 (eval "$lt_compile" 2>conftest.err)
13938 ac_status=$?
13939 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013941 if (exit $ac_status) && test -s "$ac_outfile"; then
13942 # The compiler can only warn and ignore the option if not recognized
13943 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013944 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13946 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13947 lt_cv_prog_compiler_rtti_exceptions=yes
13948 fi
13949 fi
13950 $RM conftest*
13951
13952fi
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13954$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13955
13956if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13957 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13958else
13959 :
13960fi
13961
13962fi
13963
13964
13965
13966
13967
13968
13969 lt_prog_compiler_wl=
13970lt_prog_compiler_pic=
13971lt_prog_compiler_static=
13972
cristy73bd4a52010-10-05 11:24:23 +000013973
13974 if test "$GCC" = yes; then
13975 lt_prog_compiler_wl='-Wl,'
13976 lt_prog_compiler_static='-static'
13977
13978 case $host_os in
13979 aix*)
13980 # All AIX code is PIC.
13981 if test "$host_cpu" = ia64; then
13982 # AIX 5 now supports IA64 processor
13983 lt_prog_compiler_static='-Bstatic'
13984 fi
13985 ;;
13986
13987 amigaos*)
13988 case $host_cpu in
13989 powerpc)
13990 # see comment about AmigaOS4 .so support
13991 lt_prog_compiler_pic='-fPIC'
13992 ;;
13993 m68k)
13994 # FIXME: we need at least 68020 code to build shared libraries, but
13995 # adding the `-m68020' flag to GCC prevents building anything better,
13996 # like `-m68040'.
13997 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13998 ;;
13999 esac
14000 ;;
14001
14002 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14003 # PIC is the default for these OSes.
14004 ;;
14005
14006 mingw* | cygwin* | pw32* | os2* | cegcc*)
14007 # This hack is so that the source file can tell whether it is being
14008 # built for inclusion in a dll (and should export symbols for example).
14009 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14010 # (--disable-auto-import) libraries
14011 lt_prog_compiler_pic='-DDLL_EXPORT'
14012 ;;
14013
14014 darwin* | rhapsody*)
14015 # PIC is the default on this platform
14016 # Common symbols not allowed in MH_DYLIB files
14017 lt_prog_compiler_pic='-fno-common'
14018 ;;
14019
cristy0c60a692010-11-04 01:09:47 +000014020 haiku*)
14021 # PIC is the default for Haiku.
14022 # The "-static" flag exists, but is broken.
14023 lt_prog_compiler_static=
14024 ;;
14025
cristy73bd4a52010-10-05 11:24:23 +000014026 hpux*)
14027 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14028 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14029 # sets the default TLS model and affects inlining.
14030 case $host_cpu in
14031 hppa*64*)
14032 # +Z the default
14033 ;;
14034 *)
14035 lt_prog_compiler_pic='-fPIC'
14036 ;;
14037 esac
14038 ;;
14039
14040 interix[3-9]*)
14041 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14042 # Instead, we relocate shared libraries at runtime.
14043 ;;
14044
14045 msdosdjgpp*)
14046 # Just because we use GCC doesn't mean we suddenly get shared libraries
14047 # on systems that don't support them.
14048 lt_prog_compiler_can_build_shared=no
14049 enable_shared=no
14050 ;;
14051
14052 *nto* | *qnx*)
14053 # QNX uses GNU C++, but need to define -shared option too, otherwise
14054 # it will coredump.
14055 lt_prog_compiler_pic='-fPIC -shared'
14056 ;;
14057
14058 sysv4*MP*)
14059 if test -d /usr/nec; then
14060 lt_prog_compiler_pic=-Kconform_pic
14061 fi
14062 ;;
14063
14064 *)
14065 lt_prog_compiler_pic='-fPIC'
14066 ;;
14067 esac
cristy0c60a692010-11-04 01:09:47 +000014068
14069 case $cc_basename in
14070 nvcc*) # Cuda Compiler Driver 2.2
14071 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014072 if test -n "$lt_prog_compiler_pic"; then
14073 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14074 fi
cristy0c60a692010-11-04 01:09:47 +000014075 ;;
14076 esac
cristy73bd4a52010-10-05 11:24:23 +000014077 else
14078 # PORTME Check for flag to pass linker flags through the system compiler.
14079 case $host_os in
14080 aix*)
14081 lt_prog_compiler_wl='-Wl,'
14082 if test "$host_cpu" = ia64; then
14083 # AIX 5 now supports IA64 processor
14084 lt_prog_compiler_static='-Bstatic'
14085 else
14086 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14087 fi
14088 ;;
14089
14090 mingw* | cygwin* | pw32* | os2* | cegcc*)
14091 # This hack is so that the source file can tell whether it is being
14092 # built for inclusion in a dll (and should export symbols for example).
14093 lt_prog_compiler_pic='-DDLL_EXPORT'
14094 ;;
14095
14096 hpux9* | hpux10* | hpux11*)
14097 lt_prog_compiler_wl='-Wl,'
14098 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14099 # not for PA HP-UX.
14100 case $host_cpu in
14101 hppa*64*|ia64*)
14102 # +Z the default
14103 ;;
14104 *)
14105 lt_prog_compiler_pic='+Z'
14106 ;;
14107 esac
14108 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14109 lt_prog_compiler_static='${wl}-a ${wl}archive'
14110 ;;
14111
14112 irix5* | irix6* | nonstopux*)
14113 lt_prog_compiler_wl='-Wl,'
14114 # PIC (with -KPIC) is the default.
14115 lt_prog_compiler_static='-non_shared'
14116 ;;
14117
cristy0c60a692010-11-04 01:09:47 +000014118 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014119 case $cc_basename in
14120 # old Intel for x86_64 which still supported -KPIC.
14121 ecc*)
14122 lt_prog_compiler_wl='-Wl,'
14123 lt_prog_compiler_pic='-KPIC'
14124 lt_prog_compiler_static='-static'
14125 ;;
14126 # icc used to be incompatible with GCC.
14127 # ICC 10 doesn't accept -KPIC any more.
14128 icc* | ifort*)
14129 lt_prog_compiler_wl='-Wl,'
14130 lt_prog_compiler_pic='-fPIC'
14131 lt_prog_compiler_static='-static'
14132 ;;
14133 # Lahey Fortran 8.1.
14134 lf95*)
14135 lt_prog_compiler_wl='-Wl,'
14136 lt_prog_compiler_pic='--shared'
14137 lt_prog_compiler_static='--static'
14138 ;;
cristyda16f162011-02-19 23:52:17 +000014139 nagfor*)
14140 # NAG Fortran compiler
14141 lt_prog_compiler_wl='-Wl,-Wl,,'
14142 lt_prog_compiler_pic='-PIC'
14143 lt_prog_compiler_static='-Bstatic'
14144 ;;
cristy0c60a692010-11-04 01:09:47 +000014145 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014146 # Portland Group compilers (*not* the Pentium gcc compiler,
14147 # which looks to be a dead project)
14148 lt_prog_compiler_wl='-Wl,'
14149 lt_prog_compiler_pic='-fpic'
14150 lt_prog_compiler_static='-Bstatic'
14151 ;;
14152 ccc*)
14153 lt_prog_compiler_wl='-Wl,'
14154 # All Alpha code is PIC.
14155 lt_prog_compiler_static='-non_shared'
14156 ;;
cristy0c60a692010-11-04 01:09:47 +000014157 xl* | bgxl* | bgf* | mpixl*)
14158 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014159 lt_prog_compiler_wl='-Wl,'
14160 lt_prog_compiler_pic='-qpic'
14161 lt_prog_compiler_static='-qstaticlink'
14162 ;;
14163 *)
14164 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014165 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014166 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14167 lt_prog_compiler_pic='-KPIC'
14168 lt_prog_compiler_static='-Bstatic'
14169 lt_prog_compiler_wl=''
14170 ;;
cristy99bd5232011-12-07 14:38:20 +000014171 *Sun\ F* | *Sun*Fortran*)
14172 lt_prog_compiler_pic='-KPIC'
14173 lt_prog_compiler_static='-Bstatic'
14174 lt_prog_compiler_wl='-Qoption ld '
14175 ;;
cristy73bd4a52010-10-05 11:24:23 +000014176 *Sun\ C*)
14177 # Sun C 5.9
14178 lt_prog_compiler_pic='-KPIC'
14179 lt_prog_compiler_static='-Bstatic'
14180 lt_prog_compiler_wl='-Wl,'
14181 ;;
cristy99bd5232011-12-07 14:38:20 +000014182 *Intel*\ [CF]*Compiler*)
14183 lt_prog_compiler_wl='-Wl,'
14184 lt_prog_compiler_pic='-fPIC'
14185 lt_prog_compiler_static='-static'
14186 ;;
14187 *Portland\ Group*)
14188 lt_prog_compiler_wl='-Wl,'
14189 lt_prog_compiler_pic='-fpic'
14190 lt_prog_compiler_static='-Bstatic'
14191 ;;
cristy73bd4a52010-10-05 11:24:23 +000014192 esac
14193 ;;
14194 esac
14195 ;;
14196
14197 newsos6)
14198 lt_prog_compiler_pic='-KPIC'
14199 lt_prog_compiler_static='-Bstatic'
14200 ;;
14201
14202 *nto* | *qnx*)
14203 # QNX uses GNU C++, but need to define -shared option too, otherwise
14204 # it will coredump.
14205 lt_prog_compiler_pic='-fPIC -shared'
14206 ;;
14207
14208 osf3* | osf4* | osf5*)
14209 lt_prog_compiler_wl='-Wl,'
14210 # All OSF/1 code is PIC.
14211 lt_prog_compiler_static='-non_shared'
14212 ;;
14213
14214 rdos*)
14215 lt_prog_compiler_static='-non_shared'
14216 ;;
14217
14218 solaris*)
14219 lt_prog_compiler_pic='-KPIC'
14220 lt_prog_compiler_static='-Bstatic'
14221 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014222 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014223 lt_prog_compiler_wl='-Qoption ld ';;
14224 *)
14225 lt_prog_compiler_wl='-Wl,';;
14226 esac
14227 ;;
14228
14229 sunos4*)
14230 lt_prog_compiler_wl='-Qoption ld '
14231 lt_prog_compiler_pic='-PIC'
14232 lt_prog_compiler_static='-Bstatic'
14233 ;;
14234
14235 sysv4 | sysv4.2uw2* | sysv4.3*)
14236 lt_prog_compiler_wl='-Wl,'
14237 lt_prog_compiler_pic='-KPIC'
14238 lt_prog_compiler_static='-Bstatic'
14239 ;;
14240
14241 sysv4*MP*)
14242 if test -d /usr/nec ;then
14243 lt_prog_compiler_pic='-Kconform_pic'
14244 lt_prog_compiler_static='-Bstatic'
14245 fi
14246 ;;
14247
14248 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14249 lt_prog_compiler_wl='-Wl,'
14250 lt_prog_compiler_pic='-KPIC'
14251 lt_prog_compiler_static='-Bstatic'
14252 ;;
14253
14254 unicos*)
14255 lt_prog_compiler_wl='-Wl,'
14256 lt_prog_compiler_can_build_shared=no
14257 ;;
14258
14259 uts4*)
14260 lt_prog_compiler_pic='-pic'
14261 lt_prog_compiler_static='-Bstatic'
14262 ;;
14263
14264 *)
14265 lt_prog_compiler_can_build_shared=no
14266 ;;
14267 esac
14268 fi
14269
14270case $host_os in
14271 # For platforms which do not support PIC, -DPIC is meaningless:
14272 *djgpp*)
14273 lt_prog_compiler_pic=
14274 ;;
14275 *)
14276 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14277 ;;
14278esac
cristy73bd4a52010-10-05 11:24:23 +000014279
cristyda16f162011-02-19 23:52:17 +000014280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14281$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14282if ${lt_cv_prog_compiler_pic+:} false; then :
14283 $as_echo_n "(cached) " >&6
14284else
14285 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14286fi
14287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14288$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14289lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014290
14291#
14292# Check to make sure the PIC flag actually works.
14293#
14294if test -n "$lt_prog_compiler_pic"; then
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14296$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014297if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014298 $as_echo_n "(cached) " >&6
14299else
14300 lt_cv_prog_compiler_pic_works=no
14301 ac_outfile=conftest.$ac_objext
14302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14303 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14304 # Insert the option either (1) after the last *FLAGS variable, or
14305 # (2) before a word containing "conftest.", or (3) at the end.
14306 # Note that $ac_compile itself does not contain backslashes and begins
14307 # with a dollar sign (not a hyphen), so the echo should work correctly.
14308 # The option is referenced via a variable to avoid confusing sed.
14309 lt_compile=`echo "$ac_compile" | $SED \
14310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14312 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014313 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014314 (eval "$lt_compile" 2>conftest.err)
14315 ac_status=$?
14316 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014318 if (exit $ac_status) && test -s "$ac_outfile"; then
14319 # The compiler can only warn and ignore the option if not recognized
14320 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014321 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014322 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14323 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14324 lt_cv_prog_compiler_pic_works=yes
14325 fi
14326 fi
14327 $RM conftest*
14328
14329fi
14330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14331$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14332
14333if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14334 case $lt_prog_compiler_pic in
14335 "" | " "*) ;;
14336 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14337 esac
14338else
14339 lt_prog_compiler_pic=
14340 lt_prog_compiler_can_build_shared=no
14341fi
14342
14343fi
14344
14345
14346
14347
14348
14349
cristyda16f162011-02-19 23:52:17 +000014350
14351
14352
14353
14354
cristy73bd4a52010-10-05 11:24:23 +000014355#
14356# Check to make sure the static flag actually works.
14357#
14358wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14360$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014361if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014362 $as_echo_n "(cached) " >&6
14363else
14364 lt_cv_prog_compiler_static_works=no
14365 save_LDFLAGS="$LDFLAGS"
14366 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14367 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14368 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14369 # The linker can only warn and ignore the option if not recognized
14370 # So say no if there are warnings
14371 if test -s conftest.err; then
14372 # Append any errors to the config.log.
14373 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014374 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14376 if diff conftest.exp conftest.er2 >/dev/null; then
14377 lt_cv_prog_compiler_static_works=yes
14378 fi
14379 else
14380 lt_cv_prog_compiler_static_works=yes
14381 fi
14382 fi
14383 $RM -r conftest*
14384 LDFLAGS="$save_LDFLAGS"
14385
14386fi
14387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14388$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14389
14390if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14391 :
14392else
14393 lt_prog_compiler_static=
14394fi
14395
14396
14397
14398
14399
14400
14401
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14403$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014404if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014405 $as_echo_n "(cached) " >&6
14406else
14407 lt_cv_prog_compiler_c_o=no
14408 $RM -r conftest 2>/dev/null
14409 mkdir conftest
14410 cd conftest
14411 mkdir out
14412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14413
14414 lt_compiler_flag="-o out/conftest2.$ac_objext"
14415 # Insert the option either (1) after the last *FLAGS variable, or
14416 # (2) before a word containing "conftest.", or (3) at the end.
14417 # Note that $ac_compile itself does not contain backslashes and begins
14418 # with a dollar sign (not a hyphen), so the echo should work correctly.
14419 lt_compile=`echo "$ac_compile" | $SED \
14420 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14422 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014423 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014424 (eval "$lt_compile" 2>out/conftest.err)
14425 ac_status=$?
14426 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014428 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14429 then
14430 # The compiler can only warn and ignore the option if not recognized
14431 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014432 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014433 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14434 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14435 lt_cv_prog_compiler_c_o=yes
14436 fi
14437 fi
14438 chmod u+w . 2>&5
14439 $RM conftest*
14440 # SGI C++ compiler will create directory out/ii_files/ for
14441 # template instantiation
14442 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14443 $RM out/* && rmdir out
14444 cd ..
14445 $RM -r conftest
14446 $RM conftest*
14447
14448fi
14449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14450$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14451
14452
14453
14454
14455
14456
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14458$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014459if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014460 $as_echo_n "(cached) " >&6
14461else
14462 lt_cv_prog_compiler_c_o=no
14463 $RM -r conftest 2>/dev/null
14464 mkdir conftest
14465 cd conftest
14466 mkdir out
14467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14468
14469 lt_compiler_flag="-o out/conftest2.$ac_objext"
14470 # Insert the option either (1) after the last *FLAGS variable, or
14471 # (2) before a word containing "conftest.", or (3) at the end.
14472 # Note that $ac_compile itself does not contain backslashes and begins
14473 # with a dollar sign (not a hyphen), so the echo should work correctly.
14474 lt_compile=`echo "$ac_compile" | $SED \
14475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14477 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014478 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014479 (eval "$lt_compile" 2>out/conftest.err)
14480 ac_status=$?
14481 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014483 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14484 then
14485 # The compiler can only warn and ignore the option if not recognized
14486 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014488 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14489 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14490 lt_cv_prog_compiler_c_o=yes
14491 fi
14492 fi
14493 chmod u+w . 2>&5
14494 $RM conftest*
14495 # SGI C++ compiler will create directory out/ii_files/ for
14496 # template instantiation
14497 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14498 $RM out/* && rmdir out
14499 cd ..
14500 $RM -r conftest
14501 $RM conftest*
14502
14503fi
14504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14505$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14506
14507
14508
14509
14510hard_links="nottested"
14511if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14512 # do not overwrite the value of need_locks provided by the user
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14514$as_echo_n "checking if we can lock with hard links... " >&6; }
14515 hard_links=yes
14516 $RM conftest*
14517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14518 touch conftest.a
14519 ln conftest.a conftest.b 2>&5 || hard_links=no
14520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14522$as_echo "$hard_links" >&6; }
14523 if test "$hard_links" = no; then
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14525$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14526 need_locks=warn
14527 fi
14528else
14529 need_locks=no
14530fi
14531
14532
14533
14534
14535
14536
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14538$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14539
14540 runpath_var=
14541 allow_undefined_flag=
14542 always_export_symbols=no
14543 archive_cmds=
14544 archive_expsym_cmds=
14545 compiler_needs_object=no
14546 enable_shared_with_static_runtimes=no
14547 export_dynamic_flag_spec=
14548 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14549 hardcode_automatic=no
14550 hardcode_direct=no
14551 hardcode_direct_absolute=no
14552 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014553 hardcode_libdir_separator=
14554 hardcode_minus_L=no
14555 hardcode_shlibpath_var=unsupported
14556 inherit_rpath=no
14557 link_all_deplibs=unknown
14558 module_cmds=
14559 module_expsym_cmds=
14560 old_archive_from_new_cmds=
14561 old_archive_from_expsyms_cmds=
14562 thread_safe_flag_spec=
14563 whole_archive_flag_spec=
14564 # include_expsyms should be a list of space-separated symbols to be *always*
14565 # included in the symbol list
14566 include_expsyms=
14567 # exclude_expsyms can be an extended regexp of symbols to exclude
14568 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14569 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14570 # as well as any symbol that contains `d'.
14571 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14572 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14573 # platforms (ab)use it in PIC code, but their linkers get confused if
14574 # the symbol is explicitly referenced. Since portable code cannot
14575 # rely on this symbol name, it's probably fine to never include it in
14576 # preloaded symbol tables.
14577 # Exclude shared library initialization/finalization symbols.
14578 extract_expsyms_cmds=
14579
14580 case $host_os in
14581 cygwin* | mingw* | pw32* | cegcc*)
14582 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14583 # When not using gcc, we currently assume that we are using
14584 # Microsoft Visual C++.
14585 if test "$GCC" != yes; then
14586 with_gnu_ld=no
14587 fi
14588 ;;
14589 interix*)
14590 # we just hope/assume this is gcc and not c89 (= MSVC++)
14591 with_gnu_ld=yes
14592 ;;
14593 openbsd*)
14594 with_gnu_ld=no
14595 ;;
14596 esac
14597
14598 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014599
14600 # On some targets, GNU ld is compatible enough with the native linker
14601 # that we're better off using the native interface for both.
14602 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014603 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014604 case $host_os in
14605 aix*)
14606 # The AIX port of GNU ld has always aspired to compatibility
14607 # with the native linker. However, as the warning in the GNU ld
14608 # block says, versions before 2.19.5* couldn't really create working
14609 # shared libraries, regardless of the interface used.
14610 case `$LD -v 2>&1` in
14611 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14612 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14613 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14614 *)
14615 lt_use_gnu_ld_interface=yes
14616 ;;
14617 esac
14618 ;;
14619 *)
14620 lt_use_gnu_ld_interface=yes
14621 ;;
14622 esac
14623 fi
14624
14625 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014626 # If archive_cmds runs LD, not CC, wlarc should be empty
14627 wlarc='${wl}'
14628
14629 # Set some defaults for GNU ld with shared library support. These
14630 # are reset later if shared libraries are not supported. Putting them
14631 # here allows them to be overridden if necessary.
14632 runpath_var=LD_RUN_PATH
14633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14634 export_dynamic_flag_spec='${wl}--export-dynamic'
14635 # ancient GNU ld didn't support --whole-archive et. al.
14636 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14637 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14638 else
14639 whole_archive_flag_spec=
14640 fi
14641 supports_anon_versioning=no
14642 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014643 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014644 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14645 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14646 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14647 *\ 2.11.*) ;; # other 2.11 versions
14648 *) supports_anon_versioning=yes ;;
14649 esac
14650
14651 # See if GNU ld supports shared libraries.
14652 case $host_os in
14653 aix[3-9]*)
14654 # On AIX/PPC, the GNU linker is very broken
14655 if test "$host_cpu" != ia64; then
14656 ld_shlibs=no
14657 cat <<_LT_EOF 1>&2
14658
cristy0c60a692010-11-04 01:09:47 +000014659*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014660*** to be unable to reliably create shared libraries on AIX.
14661*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014662*** really care for shared libraries, you may want to install binutils
14663*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14664*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014665
14666_LT_EOF
14667 fi
14668 ;;
14669
14670 amigaos*)
14671 case $host_cpu in
14672 powerpc)
14673 # see comment about AmigaOS4 .so support
14674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14675 archive_expsym_cmds=''
14676 ;;
14677 m68k)
14678 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)'
14679 hardcode_libdir_flag_spec='-L$libdir'
14680 hardcode_minus_L=yes
14681 ;;
14682 esac
14683 ;;
14684
14685 beos*)
14686 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14687 allow_undefined_flag=unsupported
14688 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14689 # support --undefined. This deserves some investigation. FIXME
14690 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14691 else
14692 ld_shlibs=no
14693 fi
14694 ;;
14695
14696 cygwin* | mingw* | pw32* | cegcc*)
14697 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14698 # as there is no search path for DLLs.
14699 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014700 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014701 allow_undefined_flag=unsupported
14702 always_export_symbols=no
14703 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014704 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'
14705 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 +000014706
14707 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14709 # If the export-symbols file already is a .def file (1st line
14710 # is EXPORTS), use it as is; otherwise, prepend...
14711 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14712 cp $export_symbols $output_objdir/$soname.def;
14713 else
14714 echo EXPORTS > $output_objdir/$soname.def;
14715 cat $export_symbols >> $output_objdir/$soname.def;
14716 fi~
14717 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14718 else
14719 ld_shlibs=no
14720 fi
14721 ;;
14722
cristy0c60a692010-11-04 01:09:47 +000014723 haiku*)
14724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14725 link_all_deplibs=yes
14726 ;;
14727
cristy73bd4a52010-10-05 11:24:23 +000014728 interix[3-9]*)
14729 hardcode_direct=no
14730 hardcode_shlibpath_var=no
14731 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14732 export_dynamic_flag_spec='${wl}-E'
14733 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14734 # Instead, shared libraries are loaded at an image base (0x10000000 by
14735 # default) and relocated if they conflict, which is a slow very memory
14736 # consuming and fragmenting process. To avoid this, we pick a random,
14737 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14738 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14739 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14740 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'
14741 ;;
14742
cristy0c60a692010-11-04 01:09:47 +000014743 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014744 tmp_diet=no
14745 if test "$host_os" = linux-dietlibc; then
14746 case $cc_basename in
14747 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14748 esac
14749 fi
14750 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14751 && test "$tmp_diet" = no
14752 then
cristyda16f162011-02-19 23:52:17 +000014753 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014754 tmp_sharedflag='-shared'
14755 case $cc_basename,$host_cpu in
14756 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014757 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 +000014758 tmp_addflag=' $pic_flag'
14759 ;;
cristy0c60a692010-11-04 01:09:47 +000014760 pgf77* | pgf90* | pgf95* | pgfortran*)
14761 # Portland Group f77 and f90 compilers
14762 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 +000014763 tmp_addflag=' $pic_flag -Mnomain' ;;
14764 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14765 tmp_addflag=' -i_dynamic' ;;
14766 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14767 tmp_addflag=' -i_dynamic -nofor_main' ;;
14768 ifc* | ifort*) # Intel Fortran compiler
14769 tmp_addflag=' -nofor_main' ;;
14770 lf95*) # Lahey Fortran 8.1
14771 whole_archive_flag_spec=
14772 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014773 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014774 tmp_sharedflag='-qmkshrobj'
14775 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014776 nvcc*) # Cuda Compiler Driver 2.2
14777 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'
14778 compiler_needs_object=yes
14779 ;;
cristy73bd4a52010-10-05 11:24:23 +000014780 esac
14781 case `$CC -V 2>&1 | sed 5q` in
14782 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014783 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 +000014784 compiler_needs_object=yes
14785 tmp_sharedflag='-G' ;;
14786 *Sun\ F*) # Sun Fortran 8.3
14787 tmp_sharedflag='-G' ;;
14788 esac
14789 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14790
14791 if test "x$supports_anon_versioning" = xyes; then
14792 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14793 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14794 echo "local: *; };" >> $output_objdir/$libname.ver~
14795 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14796 fi
14797
14798 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014799 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014800 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14801 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014803 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014804 if test "x$supports_anon_versioning" = xyes; then
14805 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14806 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14807 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014808 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014809 fi
14810 ;;
14811 esac
14812 else
14813 ld_shlibs=no
14814 fi
14815 ;;
14816
14817 netbsd*)
14818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14819 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14820 wlarc=
14821 else
cristyda16f162011-02-19 23:52:17 +000014822 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14823 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 +000014824 fi
14825 ;;
14826
14827 solaris*)
14828 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14829 ld_shlibs=no
14830 cat <<_LT_EOF 1>&2
14831
14832*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14833*** create shared libraries on Solaris systems. Therefore, libtool
14834*** is disabling shared libraries support. We urge you to upgrade GNU
14835*** binutils to release 2.9.1 or newer. Another option is to modify
14836*** your PATH or compiler configuration so that the native linker is
14837*** used, and then restart.
14838
14839_LT_EOF
14840 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014841 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14842 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 +000014843 else
14844 ld_shlibs=no
14845 fi
14846 ;;
14847
14848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14849 case `$LD -v 2>&1` in
14850 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14851 ld_shlibs=no
14852 cat <<_LT_EOF 1>&2
14853
14854*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14855*** reliably create shared libraries on SCO systems. Therefore, libtool
14856*** is disabling shared libraries support. We urge you to upgrade GNU
14857*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14858*** your PATH or compiler configuration so that the native linker is
14859*** used, and then restart.
14860
14861_LT_EOF
14862 ;;
14863 *)
14864 # For security reasons, it is highly recommended that you always
14865 # use absolute paths for naming shared libraries, and exclude the
14866 # DT_RUNPATH tag from executables and libraries. But doing so
14867 # requires that you compile everything twice, which is a pain.
14868 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14871 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14872 else
14873 ld_shlibs=no
14874 fi
14875 ;;
14876 esac
14877 ;;
14878
14879 sunos4*)
14880 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14881 wlarc=
14882 hardcode_direct=yes
14883 hardcode_shlibpath_var=no
14884 ;;
14885
14886 *)
14887 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014888 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14889 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 +000014890 else
14891 ld_shlibs=no
14892 fi
14893 ;;
14894 esac
14895
14896 if test "$ld_shlibs" = no; then
14897 runpath_var=
14898 hardcode_libdir_flag_spec=
14899 export_dynamic_flag_spec=
14900 whole_archive_flag_spec=
14901 fi
14902 else
14903 # PORTME fill in a description of your system's linker (not GNU ld)
14904 case $host_os in
14905 aix3*)
14906 allow_undefined_flag=unsupported
14907 always_export_symbols=yes
14908 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'
14909 # Note: this linker hardcodes the directories in LIBPATH if there
14910 # are no directories specified by -L.
14911 hardcode_minus_L=yes
14912 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14913 # Neither direct hardcoding nor static linking is supported with a
14914 # broken collect2.
14915 hardcode_direct=unsupported
14916 fi
14917 ;;
14918
14919 aix[4-9]*)
14920 if test "$host_cpu" = ia64; then
14921 # On IA64, the linker does run time linking by default, so we don't
14922 # have to do anything special.
14923 aix_use_runtimelinking=no
14924 exp_sym_flag='-Bexport'
14925 no_entry_flag=""
14926 else
14927 # If we're using GNU nm, then we don't want the "-C" option.
14928 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014929 # Also, AIX nm treats weak defined symbols like other global
14930 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014931 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014932 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 +000014933 else
14934 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'
14935 fi
14936 aix_use_runtimelinking=no
14937
14938 # Test if we are trying to use run time linking or normal
14939 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14940 # need to do runtime linking.
14941 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14942 for ld_flag in $LDFLAGS; do
14943 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14944 aix_use_runtimelinking=yes
14945 break
14946 fi
14947 done
14948 ;;
14949 esac
14950
14951 exp_sym_flag='-bexport'
14952 no_entry_flag='-bnoentry'
14953 fi
14954
14955 # When large executables or shared objects are built, AIX ld can
14956 # have problems creating the table of contents. If linking a library
14957 # or program results in "error TOC overflow" add -mminimal-toc to
14958 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14959 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14960
14961 archive_cmds=''
14962 hardcode_direct=yes
14963 hardcode_direct_absolute=yes
14964 hardcode_libdir_separator=':'
14965 link_all_deplibs=yes
14966 file_list_spec='${wl}-f,'
14967
14968 if test "$GCC" = yes; then
14969 case $host_os in aix4.[012]|aix4.[012].*)
14970 # We only want to do this on AIX 4.2 and lower, the check
14971 # below for broken collect2 doesn't work under 4.3+
14972 collect2name=`${CC} -print-prog-name=collect2`
14973 if test -f "$collect2name" &&
14974 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14975 then
14976 # We have reworked collect2
14977 :
14978 else
14979 # We have old collect2
14980 hardcode_direct=unsupported
14981 # It fails to find uninstalled libraries when the uninstalled
14982 # path is not listed in the libpath. Setting hardcode_minus_L
14983 # to unsupported forces relinking
14984 hardcode_minus_L=yes
14985 hardcode_libdir_flag_spec='-L$libdir'
14986 hardcode_libdir_separator=
14987 fi
14988 ;;
14989 esac
14990 shared_flag='-shared'
14991 if test "$aix_use_runtimelinking" = yes; then
14992 shared_flag="$shared_flag "'${wl}-G'
14993 fi
14994 else
14995 # not using gcc
14996 if test "$host_cpu" = ia64; then
14997 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14998 # chokes on -Wl,-G. The following line is correct:
14999 shared_flag='-G'
15000 else
15001 if test "$aix_use_runtimelinking" = yes; then
15002 shared_flag='${wl}-G'
15003 else
15004 shared_flag='${wl}-bM:SRE'
15005 fi
15006 fi
15007 fi
15008
15009 export_dynamic_flag_spec='${wl}-bexpall'
15010 # It seems that -bexpall does not export symbols beginning with
15011 # underscore (_), so it is better to generate a list of symbols to export.
15012 always_export_symbols=yes
15013 if test "$aix_use_runtimelinking" = yes; then
15014 # Warning - without using the other runtime loading flags (-brtl),
15015 # -berok will link without error, but may produce a broken library.
15016 allow_undefined_flag='-berok'
15017 # Determine the default libpath from the value encoded in an
15018 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015019 if test "${lt_cv_aix_libpath+set}" = set; then
15020 aix_libpath=$lt_cv_aix_libpath
15021else
15022 if ${lt_cv_aix_libpath_+:} false; then :
15023 $as_echo_n "(cached) " >&6
15024else
15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015026/* end confdefs.h. */
15027
15028int
15029main ()
15030{
15031
15032 ;
15033 return 0;
15034}
15035_ACEOF
15036if ac_fn_c_try_link "$LINENO"; then :
15037
cristyda16f162011-02-19 23:52:17 +000015038 lt_aix_libpath_sed='
15039 /Import File Strings/,/^$/ {
15040 /^0/ {
15041 s/^0 *\([^ ]*\) *$/\1/
15042 p
15043 }
15044 }'
15045 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15046 # Check for a 64-bit object if we didn't find anything.
15047 if test -z "$lt_cv_aix_libpath_"; then
15048 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15049 fi
cristy73bd4a52010-10-05 11:24:23 +000015050fi
15051rm -f core conftest.err conftest.$ac_objext \
15052 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015053 if test -z "$lt_cv_aix_libpath_"; then
15054 lt_cv_aix_libpath_="/usr/lib:/lib"
15055 fi
15056
15057fi
15058
15059 aix_libpath=$lt_cv_aix_libpath_
15060fi
cristy73bd4a52010-10-05 11:24:23 +000015061
15062 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015063 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 +000015064 else
15065 if test "$host_cpu" = ia64; then
15066 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15067 allow_undefined_flag="-z nodefs"
15068 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"
15069 else
15070 # Determine the default libpath from the value encoded in an
15071 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015072 if test "${lt_cv_aix_libpath+set}" = set; then
15073 aix_libpath=$lt_cv_aix_libpath
15074else
15075 if ${lt_cv_aix_libpath_+:} false; then :
15076 $as_echo_n "(cached) " >&6
15077else
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015079/* end confdefs.h. */
15080
15081int
15082main ()
15083{
15084
15085 ;
15086 return 0;
15087}
15088_ACEOF
15089if ac_fn_c_try_link "$LINENO"; then :
15090
cristyda16f162011-02-19 23:52:17 +000015091 lt_aix_libpath_sed='
15092 /Import File Strings/,/^$/ {
15093 /^0/ {
15094 s/^0 *\([^ ]*\) *$/\1/
15095 p
15096 }
15097 }'
15098 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15099 # Check for a 64-bit object if we didn't find anything.
15100 if test -z "$lt_cv_aix_libpath_"; then
15101 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15102 fi
cristy73bd4a52010-10-05 11:24:23 +000015103fi
15104rm -f core conftest.err conftest.$ac_objext \
15105 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015106 if test -z "$lt_cv_aix_libpath_"; then
15107 lt_cv_aix_libpath_="/usr/lib:/lib"
15108 fi
15109
15110fi
15111
15112 aix_libpath=$lt_cv_aix_libpath_
15113fi
cristy73bd4a52010-10-05 11:24:23 +000015114
15115 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15116 # Warning - without using the other run time loading flags,
15117 # -berok will link without error, but may produce a broken library.
15118 no_undefined_flag=' ${wl}-bernotok'
15119 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015120 if test "$with_gnu_ld" = yes; then
15121 # We only use this code for GNU lds that support --whole-archive.
15122 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15123 else
15124 # Exported symbols can be pulled into shared objects from archives
15125 whole_archive_flag_spec='$convenience'
15126 fi
cristy73bd4a52010-10-05 11:24:23 +000015127 archive_cmds_need_lc=yes
15128 # This is similar to how AIX traditionally builds its shared libraries.
15129 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'
15130 fi
15131 fi
15132 ;;
15133
15134 amigaos*)
15135 case $host_cpu in
15136 powerpc)
15137 # see comment about AmigaOS4 .so support
15138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15139 archive_expsym_cmds=''
15140 ;;
15141 m68k)
15142 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)'
15143 hardcode_libdir_flag_spec='-L$libdir'
15144 hardcode_minus_L=yes
15145 ;;
15146 esac
15147 ;;
15148
15149 bsdi[45]*)
15150 export_dynamic_flag_spec=-rdynamic
15151 ;;
15152
15153 cygwin* | mingw* | pw32* | cegcc*)
15154 # When not using gcc, we currently assume that we are using
15155 # Microsoft Visual C++.
15156 # hardcode_libdir_flag_spec is actually meaningless, as there is
15157 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015158 case $cc_basename in
15159 cl*)
15160 # Native MSVC
15161 hardcode_libdir_flag_spec=' '
15162 allow_undefined_flag=unsupported
15163 always_export_symbols=yes
15164 file_list_spec='@'
15165 # Tell ltmain to make .lib files, not .a files.
15166 libext=lib
15167 # Tell ltmain to make .dll files, not .so files.
15168 shrext_cmds=".dll"
15169 # FIXME: Setting linknames here is a bad hack.
15170 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15171 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15172 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15173 else
15174 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15175 fi~
15176 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15177 linknames='
15178 # The linker will not automatically build a static lib if we build a DLL.
15179 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15180 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015181 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015182 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15183 # Don't use ranlib
15184 old_postinstall_cmds='chmod 644 $oldlib'
15185 postlink_cmds='lt_outputfile="@OUTPUT@"~
15186 lt_tool_outputfile="@TOOL_OUTPUT@"~
15187 case $lt_outputfile in
15188 *.exe|*.EXE) ;;
15189 *)
15190 lt_outputfile="$lt_outputfile.exe"
15191 lt_tool_outputfile="$lt_tool_outputfile.exe"
15192 ;;
15193 esac~
15194 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15195 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15196 $RM "$lt_outputfile.manifest";
15197 fi'
15198 ;;
15199 *)
15200 # Assume MSVC wrapper
15201 hardcode_libdir_flag_spec=' '
15202 allow_undefined_flag=unsupported
15203 # Tell ltmain to make .lib files, not .a files.
15204 libext=lib
15205 # Tell ltmain to make .dll files, not .so files.
15206 shrext_cmds=".dll"
15207 # FIXME: Setting linknames here is a bad hack.
15208 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15209 # The linker will automatically build a .lib file if we build a DLL.
15210 old_archive_from_new_cmds='true'
15211 # FIXME: Should let the user specify the lib program.
15212 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15213 enable_shared_with_static_runtimes=yes
15214 ;;
15215 esac
cristy73bd4a52010-10-05 11:24:23 +000015216 ;;
15217
15218 darwin* | rhapsody*)
15219
15220
15221 archive_cmds_need_lc=no
15222 hardcode_direct=no
15223 hardcode_automatic=yes
15224 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015225 if test "$lt_cv_ld_force_load" = "yes"; then
15226 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 +000015227
cristy0c60a692010-11-04 01:09:47 +000015228 else
15229 whole_archive_flag_spec=''
15230 fi
cristy73bd4a52010-10-05 11:24:23 +000015231 link_all_deplibs=yes
15232 allow_undefined_flag="$_lt_dar_allow_undefined"
15233 case $cc_basename in
15234 ifort*) _lt_dar_can_shared=yes ;;
15235 *) _lt_dar_can_shared=$GCC ;;
15236 esac
15237 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015238 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015239 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15240 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15241 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}"
15242 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}"
15243
15244 else
15245 ld_shlibs=no
15246 fi
15247
15248 ;;
15249
15250 dgux*)
15251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15252 hardcode_libdir_flag_spec='-L$libdir'
15253 hardcode_shlibpath_var=no
15254 ;;
15255
cristy73bd4a52010-10-05 11:24:23 +000015256 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15257 # support. Future versions do this automatically, but an explicit c++rt0.o
15258 # does not break anything, and helps significantly (at the cost of a little
15259 # extra space).
15260 freebsd2.2*)
15261 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15262 hardcode_libdir_flag_spec='-R$libdir'
15263 hardcode_direct=yes
15264 hardcode_shlibpath_var=no
15265 ;;
15266
15267 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015268 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15270 hardcode_direct=yes
15271 hardcode_minus_L=yes
15272 hardcode_shlibpath_var=no
15273 ;;
15274
15275 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15276 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015278 hardcode_libdir_flag_spec='-R$libdir'
15279 hardcode_direct=yes
15280 hardcode_shlibpath_var=no
15281 ;;
15282
15283 hpux9*)
15284 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015285 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 +000015286 else
15287 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'
15288 fi
15289 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15290 hardcode_libdir_separator=:
15291 hardcode_direct=yes
15292
15293 # hardcode_minus_L: Not really in the search PATH,
15294 # but as the default location of the library.
15295 hardcode_minus_L=yes
15296 export_dynamic_flag_spec='${wl}-E'
15297 ;;
15298
15299 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015300 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015301 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 +000015302 else
15303 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15304 fi
15305 if test "$with_gnu_ld" = no; then
15306 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015307 hardcode_libdir_separator=:
15308 hardcode_direct=yes
15309 hardcode_direct_absolute=yes
15310 export_dynamic_flag_spec='${wl}-E'
15311 # hardcode_minus_L: Not really in the search PATH,
15312 # but as the default location of the library.
15313 hardcode_minus_L=yes
15314 fi
15315 ;;
15316
15317 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015318 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015319 case $host_cpu in
15320 hppa*64*)
15321 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15322 ;;
15323 ia64*)
cristyda16f162011-02-19 23:52:17 +000015324 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015325 ;;
15326 *)
cristyda16f162011-02-19 23:52:17 +000015327 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 +000015328 ;;
15329 esac
15330 else
15331 case $host_cpu in
15332 hppa*64*)
15333 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15334 ;;
15335 ia64*)
15336 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15337 ;;
15338 *)
cristy0c60a692010-11-04 01:09:47 +000015339
15340 # Older versions of the 11.00 compiler do not understand -b yet
15341 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15343$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015344if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015345 $as_echo_n "(cached) " >&6
15346else
15347 lt_cv_prog_compiler__b=no
15348 save_LDFLAGS="$LDFLAGS"
15349 LDFLAGS="$LDFLAGS -b"
15350 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15351 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15352 # The linker can only warn and ignore the option if not recognized
15353 # So say no if there are warnings
15354 if test -s conftest.err; then
15355 # Append any errors to the config.log.
15356 cat conftest.err 1>&5
15357 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15359 if diff conftest.exp conftest.er2 >/dev/null; then
15360 lt_cv_prog_compiler__b=yes
15361 fi
15362 else
15363 lt_cv_prog_compiler__b=yes
15364 fi
15365 fi
15366 $RM -r conftest*
15367 LDFLAGS="$save_LDFLAGS"
15368
15369fi
15370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15371$as_echo "$lt_cv_prog_compiler__b" >&6; }
15372
15373if test x"$lt_cv_prog_compiler__b" = xyes; then
15374 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15375else
15376 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15377fi
15378
cristy73bd4a52010-10-05 11:24:23 +000015379 ;;
15380 esac
15381 fi
15382 if test "$with_gnu_ld" = no; then
15383 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15384 hardcode_libdir_separator=:
15385
15386 case $host_cpu in
15387 hppa*64*|ia64*)
15388 hardcode_direct=no
15389 hardcode_shlibpath_var=no
15390 ;;
15391 *)
15392 hardcode_direct=yes
15393 hardcode_direct_absolute=yes
15394 export_dynamic_flag_spec='${wl}-E'
15395
15396 # hardcode_minus_L: Not really in the search PATH,
15397 # but as the default location of the library.
15398 hardcode_minus_L=yes
15399 ;;
15400 esac
15401 fi
15402 ;;
15403
15404 irix5* | irix6* | nonstopux*)
15405 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015406 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 +000015407 # Try to use the -exported_symbol ld option, if it does not
15408 # work, assume that -exports_file does not work either and
15409 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015410 # This should be the same for all languages, so no per-tag cache variable.
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15412$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15413if ${lt_cv_irix_exported_symbol+:} false; then :
15414 $as_echo_n "(cached) " >&6
15415else
15416 save_LDFLAGS="$LDFLAGS"
15417 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015419/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015420int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015421_ACEOF
15422if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015423 lt_cv_irix_exported_symbol=yes
15424else
15425 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015426fi
15427rm -f core conftest.err conftest.$ac_objext \
15428 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015429 LDFLAGS="$save_LDFLAGS"
15430fi
15431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15432$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15433 if test "$lt_cv_irix_exported_symbol" = yes; then
15434 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'
15435 fi
cristy73bd4a52010-10-05 11:24:23 +000015436 else
cristy0c60a692010-11-04 01:09:47 +000015437 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'
15438 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 +000015439 fi
15440 archive_cmds_need_lc='no'
15441 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15442 hardcode_libdir_separator=:
15443 inherit_rpath=yes
15444 link_all_deplibs=yes
15445 ;;
15446
15447 netbsd*)
15448 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15450 else
15451 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15452 fi
15453 hardcode_libdir_flag_spec='-R$libdir'
15454 hardcode_direct=yes
15455 hardcode_shlibpath_var=no
15456 ;;
15457
15458 newsos6)
15459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15460 hardcode_direct=yes
15461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15462 hardcode_libdir_separator=:
15463 hardcode_shlibpath_var=no
15464 ;;
15465
15466 *nto* | *qnx*)
15467 ;;
15468
15469 openbsd*)
15470 if test -f /usr/libexec/ld.so; then
15471 hardcode_direct=yes
15472 hardcode_shlibpath_var=no
15473 hardcode_direct_absolute=yes
15474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15475 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15476 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15477 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15478 export_dynamic_flag_spec='${wl}-E'
15479 else
15480 case $host_os in
15481 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15482 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15483 hardcode_libdir_flag_spec='-R$libdir'
15484 ;;
15485 *)
15486 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15487 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15488 ;;
15489 esac
15490 fi
15491 else
15492 ld_shlibs=no
15493 fi
15494 ;;
15495
15496 os2*)
15497 hardcode_libdir_flag_spec='-L$libdir'
15498 hardcode_minus_L=yes
15499 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015500 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 +000015501 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15502 ;;
15503
15504 osf3*)
15505 if test "$GCC" = yes; then
15506 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015507 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 +000015508 else
15509 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015510 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 +000015511 fi
15512 archive_cmds_need_lc='no'
15513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15514 hardcode_libdir_separator=:
15515 ;;
15516
15517 osf4* | osf5*) # as osf3* with the addition of -msym flag
15518 if test "$GCC" = yes; then
15519 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015520 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 +000015521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15522 else
15523 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015524 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 +000015525 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 +000015526 $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 +000015527
15528 # Both c and cxx compiler support -rpath directly
15529 hardcode_libdir_flag_spec='-rpath $libdir'
15530 fi
15531 archive_cmds_need_lc='no'
15532 hardcode_libdir_separator=:
15533 ;;
15534
15535 solaris*)
15536 no_undefined_flag=' -z defs'
15537 if test "$GCC" = yes; then
15538 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015539 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 +000015540 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 +000015541 $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 +000015542 else
15543 case `$CC -V 2>&1` in
15544 *"Compilers 5.0"*)
15545 wlarc=''
15546 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15547 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15548 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15549 ;;
15550 *)
15551 wlarc='${wl}'
15552 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15553 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15554 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15555 ;;
15556 esac
15557 fi
15558 hardcode_libdir_flag_spec='-R$libdir'
15559 hardcode_shlibpath_var=no
15560 case $host_os in
15561 solaris2.[0-5] | solaris2.[0-5].*) ;;
15562 *)
15563 # The compiler driver will combine and reorder linker options,
15564 # but understands `-z linker_flag'. GCC discards it without `$wl',
15565 # but is careful enough not to reorder.
15566 # Supported since Solaris 2.6 (maybe 2.5.1?)
15567 if test "$GCC" = yes; then
15568 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15569 else
15570 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15571 fi
15572 ;;
15573 esac
15574 link_all_deplibs=yes
15575 ;;
15576
15577 sunos4*)
15578 if test "x$host_vendor" = xsequent; then
15579 # Use $CC to link under sequent, because it throws in some extra .o
15580 # files that make .init and .fini sections work.
15581 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15582 else
15583 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15584 fi
15585 hardcode_libdir_flag_spec='-L$libdir'
15586 hardcode_direct=yes
15587 hardcode_minus_L=yes
15588 hardcode_shlibpath_var=no
15589 ;;
15590
15591 sysv4)
15592 case $host_vendor in
15593 sni)
15594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15595 hardcode_direct=yes # is this really true???
15596 ;;
15597 siemens)
15598 ## LD is ld it makes a PLAMLIB
15599 ## CC just makes a GrossModule.
15600 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15601 reload_cmds='$CC -r -o $output$reload_objs'
15602 hardcode_direct=no
15603 ;;
15604 motorola)
15605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15606 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15607 ;;
15608 esac
15609 runpath_var='LD_RUN_PATH'
15610 hardcode_shlibpath_var=no
15611 ;;
15612
15613 sysv4.3*)
15614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15615 hardcode_shlibpath_var=no
15616 export_dynamic_flag_spec='-Bexport'
15617 ;;
15618
15619 sysv4*MP*)
15620 if test -d /usr/nec; then
15621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15622 hardcode_shlibpath_var=no
15623 runpath_var=LD_RUN_PATH
15624 hardcode_runpath_var=yes
15625 ld_shlibs=yes
15626 fi
15627 ;;
15628
15629 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15630 no_undefined_flag='${wl}-z,text'
15631 archive_cmds_need_lc=no
15632 hardcode_shlibpath_var=no
15633 runpath_var='LD_RUN_PATH'
15634
15635 if test "$GCC" = yes; then
15636 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15637 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15638 else
15639 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15640 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15641 fi
15642 ;;
15643
15644 sysv5* | sco3.2v5* | sco5v6*)
15645 # Note: We can NOT use -z defs as we might desire, because we do not
15646 # link with -lc, and that would cause any symbols used from libc to
15647 # always be unresolved, which means just about no library would
15648 # ever link correctly. If we're not using GNU ld we use -z text
15649 # though, which does catch some bad symbols but isn't as heavy-handed
15650 # as -z defs.
15651 no_undefined_flag='${wl}-z,text'
15652 allow_undefined_flag='${wl}-z,nodefs'
15653 archive_cmds_need_lc=no
15654 hardcode_shlibpath_var=no
15655 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15656 hardcode_libdir_separator=':'
15657 link_all_deplibs=yes
15658 export_dynamic_flag_spec='${wl}-Bexport'
15659 runpath_var='LD_RUN_PATH'
15660
15661 if test "$GCC" = yes; then
15662 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15663 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15664 else
15665 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15666 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15667 fi
15668 ;;
15669
15670 uts4*)
15671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15672 hardcode_libdir_flag_spec='-L$libdir'
15673 hardcode_shlibpath_var=no
15674 ;;
15675
15676 *)
15677 ld_shlibs=no
15678 ;;
15679 esac
15680
15681 if test x$host_vendor = xsni; then
15682 case $host in
15683 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15684 export_dynamic_flag_spec='${wl}-Blargedynsym'
15685 ;;
15686 esac
15687 fi
15688 fi
15689
15690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15691$as_echo "$ld_shlibs" >&6; }
15692test "$ld_shlibs" = no && can_build_shared=no
15693
15694with_gnu_ld=$with_gnu_ld
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710#
15711# Do we need to explicitly link libc?
15712#
15713case "x$archive_cmds_need_lc" in
15714x|xyes)
15715 # Assume -lc should be added
15716 archive_cmds_need_lc=yes
15717
15718 if test "$enable_shared" = yes && test "$GCC" = yes; then
15719 case $archive_cmds in
15720 *'~'*)
15721 # FIXME: we may have to deal with multi-command sequences.
15722 ;;
15723 '$CC '*)
15724 # Test whether the compiler implicitly links with -lc since on some
15725 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15726 # to ld, don't add -lc before -lgcc.
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15728$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015729if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015730 $as_echo_n "(cached) " >&6
15731else
15732 $RM conftest*
15733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015734
cristy0c60a692010-11-04 01:09:47 +000015735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015736 (eval $ac_compile) 2>&5
15737 ac_status=$?
15738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15739 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015740 soname=conftest
15741 lib=conftest
15742 libobjs=conftest.$ac_objext
15743 deplibs=
15744 wl=$lt_prog_compiler_wl
15745 pic_flag=$lt_prog_compiler_pic
15746 compiler_flags=-v
15747 linker_flags=-v
15748 verstring=
15749 output_objdir=.
15750 libname=conftest
15751 lt_save_allow_undefined_flag=$allow_undefined_flag
15752 allow_undefined_flag=
15753 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 +000015754 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15755 ac_status=$?
15756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15757 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015758 then
15759 lt_cv_archive_cmds_need_lc=no
15760 else
15761 lt_cv_archive_cmds_need_lc=yes
15762 fi
15763 allow_undefined_flag=$lt_save_allow_undefined_flag
15764 else
15765 cat conftest.err 1>&5
15766 fi
15767 $RM conftest*
15768
15769fi
15770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15771$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15772 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015773 ;;
15774 esac
15775 fi
15776 ;;
15777esac
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
cristy73bd4a52010-10-05 11:24:23 +000015930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15931$as_echo_n "checking dynamic linker characteristics... " >&6; }
15932
15933if test "$GCC" = yes; then
15934 case $host_os in
15935 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15936 *) lt_awk_arg="/^libraries:/" ;;
15937 esac
cristy0c60a692010-11-04 01:09:47 +000015938 case $host_os in
15939 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15940 *) lt_sed_strip_eq="s,=/,/,g" ;;
15941 esac
15942 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15943 case $lt_search_path_spec in
15944 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015945 # if the path contains ";" then we assume it to be the separator
15946 # otherwise default to the standard path separator (i.e. ":") - it is
15947 # assumed that no part of a normal pathname contains ";" but that should
15948 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015949 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15950 ;;
15951 *)
15952 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15953 ;;
15954 esac
cristy73bd4a52010-10-05 11:24:23 +000015955 # Ok, now we have the path, separated by spaces, we can step through it
15956 # and add multilib dir if necessary.
15957 lt_tmp_lt_search_path_spec=
15958 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15959 for lt_sys_path in $lt_search_path_spec; do
15960 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15961 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15962 else
15963 test -d "$lt_sys_path" && \
15964 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15965 fi
15966 done
cristy0c60a692010-11-04 01:09:47 +000015967 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015968BEGIN {RS=" "; FS="/|\n";} {
15969 lt_foo="";
15970 lt_count=0;
15971 for (lt_i = NF; lt_i > 0; lt_i--) {
15972 if ($lt_i != "" && $lt_i != ".") {
15973 if ($lt_i == "..") {
15974 lt_count++;
15975 } else {
15976 if (lt_count == 0) {
15977 lt_foo="/" $lt_i lt_foo;
15978 } else {
15979 lt_count--;
15980 }
15981 }
15982 }
15983 }
15984 if (lt_foo != "") { lt_freq[lt_foo]++; }
15985 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15986}'`
cristy0c60a692010-11-04 01:09:47 +000015987 # AWK program above erroneously prepends '/' to C:/dos/paths
15988 # for these hosts.
15989 case $host_os in
15990 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15991 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15992 esac
15993 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015994else
15995 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15996fi
15997library_names_spec=
15998libname_spec='lib$name'
15999soname_spec=
16000shrext_cmds=".so"
16001postinstall_cmds=
16002postuninstall_cmds=
16003finish_cmds=
16004finish_eval=
16005shlibpath_var=
16006shlibpath_overrides_runpath=unknown
16007version_type=none
16008dynamic_linker="$host_os ld.so"
16009sys_lib_dlsearch_path_spec="/lib /usr/lib"
16010need_lib_prefix=unknown
16011hardcode_into_libs=no
16012
16013# when you set need_version to no, make sure it does not cause -set_version
16014# flags to be left without arguments
16015need_version=unknown
16016
16017case $host_os in
16018aix3*)
cristy99bd5232011-12-07 14:38:20 +000016019 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16021 shlibpath_var=LIBPATH
16022
16023 # AIX 3 has no versioning support, so we append a major version to the name.
16024 soname_spec='${libname}${release}${shared_ext}$major'
16025 ;;
16026
16027aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016028 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016029 need_lib_prefix=no
16030 need_version=no
16031 hardcode_into_libs=yes
16032 if test "$host_cpu" = ia64; then
16033 # AIX 5 supports IA64
16034 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16035 shlibpath_var=LD_LIBRARY_PATH
16036 else
16037 # With GCC up to 2.95.x, collect2 would create an import file
16038 # for dependence libraries. The import file would start with
16039 # the line `#! .'. This would cause the generated library to
16040 # depend on `.', always an invalid library. This was fixed in
16041 # development snapshots of GCC prior to 3.0.
16042 case $host_os in
16043 aix4 | aix4.[01] | aix4.[01].*)
16044 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16045 echo ' yes '
16046 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16047 :
16048 else
16049 can_build_shared=no
16050 fi
16051 ;;
16052 esac
16053 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16054 # soname into executable. Probably we can add versioning support to
16055 # collect2, so additional links can be useful in future.
16056 if test "$aix_use_runtimelinking" = yes; then
16057 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16058 # instead of lib<name>.a to let people know that these are not
16059 # typical AIX shared libraries.
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061 else
16062 # We preserve .a as extension for shared libraries through AIX4.2
16063 # and later when we are not doing run time linking.
16064 library_names_spec='${libname}${release}.a $libname.a'
16065 soname_spec='${libname}${release}${shared_ext}$major'
16066 fi
16067 shlibpath_var=LIBPATH
16068 fi
16069 ;;
16070
16071amigaos*)
16072 case $host_cpu in
16073 powerpc)
16074 # Since July 2007 AmigaOS4 officially supports .so libraries.
16075 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077 ;;
16078 m68k)
16079 library_names_spec='$libname.ixlibrary $libname.a'
16080 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016081 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 +000016082 ;;
16083 esac
16084 ;;
16085
16086beos*)
16087 library_names_spec='${libname}${shared_ext}'
16088 dynamic_linker="$host_os ld.so"
16089 shlibpath_var=LIBRARY_PATH
16090 ;;
16091
16092bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016093 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016094 need_version=no
16095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16096 soname_spec='${libname}${release}${shared_ext}$major'
16097 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16098 shlibpath_var=LD_LIBRARY_PATH
16099 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16100 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16101 # the default ld.so.conf also contains /usr/contrib/lib and
16102 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16103 # libtool to hard-code these into programs
16104 ;;
16105
16106cygwin* | mingw* | pw32* | cegcc*)
16107 version_type=windows
16108 shrext_cmds=".dll"
16109 need_version=no
16110 need_lib_prefix=no
16111
cristyda16f162011-02-19 23:52:17 +000016112 case $GCC,$cc_basename in
16113 yes,*)
16114 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016115 library_names_spec='$libname.dll.a'
16116 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16117 postinstall_cmds='base_file=`basename \${file}`~
16118 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16119 dldir=$destdir/`dirname \$dlpath`~
16120 test -d \$dldir || mkdir -p \$dldir~
16121 $install_prog $dir/$dlname \$dldir/$dlname~
16122 chmod a+x \$dldir/$dlname~
16123 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16124 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16125 fi'
16126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16127 dlpath=$dir/\$dldll~
16128 $RM \$dlpath'
16129 shlibpath_overrides_runpath=yes
16130
16131 case $host_os in
16132 cygwin*)
16133 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16134 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016135
16136 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016137 ;;
16138 mingw* | cegcc*)
16139 # MinGW DLLs use traditional 'lib' prefix
16140 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016141 ;;
16142 pw32*)
16143 # pw32 DLLs use 'pw' prefix rather than 'lib'
16144 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16145 ;;
16146 esac
cristyda16f162011-02-19 23:52:17 +000016147 dynamic_linker='Win32 ld.exe'
16148 ;;
16149
16150 *,cl*)
16151 # Native MSVC
16152 libname_spec='$name'
16153 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16154 library_names_spec='${libname}.dll.lib'
16155
16156 case $build_os in
16157 mingw*)
16158 sys_lib_search_path_spec=
16159 lt_save_ifs=$IFS
16160 IFS=';'
16161 for lt_path in $LIB
16162 do
16163 IFS=$lt_save_ifs
16164 # Let DOS variable expansion print the short 8.3 style file name.
16165 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16166 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16167 done
16168 IFS=$lt_save_ifs
16169 # Convert to MSYS style.
16170 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16171 ;;
16172 cygwin*)
16173 # Convert to unix form, then to dos form, then back to unix form
16174 # but this time dos style (no spaces!) so that the unix form looks
16175 # like /cygdrive/c/PROGRA~1:/cygdr...
16176 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16177 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16178 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16179 ;;
16180 *)
16181 sys_lib_search_path_spec="$LIB"
16182 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16183 # It is most probably a Windows format PATH.
16184 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16185 else
16186 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16187 fi
16188 # FIXME: find the short name or the path components, as spaces are
16189 # common. (e.g. "Program Files" -> "PROGRA~1")
16190 ;;
16191 esac
16192
16193 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16194 postinstall_cmds='base_file=`basename \${file}`~
16195 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16196 dldir=$destdir/`dirname \$dlpath`~
16197 test -d \$dldir || mkdir -p \$dldir~
16198 $install_prog $dir/$dlname \$dldir/$dlname'
16199 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16200 dlpath=$dir/\$dldll~
16201 $RM \$dlpath'
16202 shlibpath_overrides_runpath=yes
16203 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016204 ;;
16205
16206 *)
cristyda16f162011-02-19 23:52:17 +000016207 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016208 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016209 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016210 ;;
16211 esac
cristy73bd4a52010-10-05 11:24:23 +000016212 # FIXME: first we should search . and the directory the executable is in
16213 shlibpath_var=PATH
16214 ;;
16215
16216darwin* | rhapsody*)
16217 dynamic_linker="$host_os dyld"
16218 version_type=darwin
16219 need_lib_prefix=no
16220 need_version=no
16221 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16222 soname_spec='${libname}${release}${major}$shared_ext'
16223 shlibpath_overrides_runpath=yes
16224 shlibpath_var=DYLD_LIBRARY_PATH
16225 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16226
16227 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16228 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16229 ;;
16230
16231dgux*)
cristy99bd5232011-12-07 14:38:20 +000016232 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016233 need_lib_prefix=no
16234 need_version=no
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16236 soname_spec='${libname}${release}${shared_ext}$major'
16237 shlibpath_var=LD_LIBRARY_PATH
16238 ;;
16239
cristy73bd4a52010-10-05 11:24:23 +000016240freebsd* | dragonfly*)
16241 # DragonFly does not have aout. When/if they implement a new
16242 # versioning mechanism, adjust this.
16243 if test -x /usr/bin/objformat; then
16244 objformat=`/usr/bin/objformat`
16245 else
16246 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016247 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016248 *) objformat=elf ;;
16249 esac
16250 fi
16251 version_type=freebsd-$objformat
16252 case $version_type in
16253 freebsd-elf*)
16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16255 need_version=no
16256 need_lib_prefix=no
16257 ;;
16258 freebsd-*)
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16260 need_version=yes
16261 ;;
16262 esac
16263 shlibpath_var=LD_LIBRARY_PATH
16264 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016265 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016266 shlibpath_overrides_runpath=yes
16267 ;;
16268 freebsd3.[01]* | freebsdelf3.[01]*)
16269 shlibpath_overrides_runpath=yes
16270 hardcode_into_libs=yes
16271 ;;
16272 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16273 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16274 shlibpath_overrides_runpath=no
16275 hardcode_into_libs=yes
16276 ;;
16277 *) # from 4.6 on, and DragonFly
16278 shlibpath_overrides_runpath=yes
16279 hardcode_into_libs=yes
16280 ;;
16281 esac
16282 ;;
16283
16284gnu*)
cristy99bd5232011-12-07 14:38:20 +000016285 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016286 need_lib_prefix=no
16287 need_version=no
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16290 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016291 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016292 hardcode_into_libs=yes
16293 ;;
16294
cristy0c60a692010-11-04 01:09:47 +000016295haiku*)
cristy99bd5232011-12-07 14:38:20 +000016296 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016297 need_lib_prefix=no
16298 need_version=no
16299 dynamic_linker="$host_os runtime_loader"
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16301 soname_spec='${libname}${release}${shared_ext}$major'
16302 shlibpath_var=LIBRARY_PATH
16303 shlibpath_overrides_runpath=yes
16304 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16305 hardcode_into_libs=yes
16306 ;;
16307
cristy73bd4a52010-10-05 11:24:23 +000016308hpux9* | hpux10* | hpux11*)
16309 # Give a soname corresponding to the major version so that dld.sl refuses to
16310 # link against other versions.
16311 version_type=sunos
16312 need_lib_prefix=no
16313 need_version=no
16314 case $host_cpu in
16315 ia64*)
16316 shrext_cmds='.so'
16317 hardcode_into_libs=yes
16318 dynamic_linker="$host_os dld.so"
16319 shlibpath_var=LD_LIBRARY_PATH
16320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 if test "X$HPUX_IA64_MODE" = X32; then
16324 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16325 else
16326 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16327 fi
16328 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16329 ;;
16330 hppa*64*)
16331 shrext_cmds='.sl'
16332 hardcode_into_libs=yes
16333 dynamic_linker="$host_os dld.sl"
16334 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16337 soname_spec='${libname}${release}${shared_ext}$major'
16338 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16340 ;;
16341 *)
16342 shrext_cmds='.sl'
16343 dynamic_linker="$host_os dld.sl"
16344 shlibpath_var=SHLIB_PATH
16345 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 ;;
16349 esac
cristy0c60a692010-11-04 01:09:47 +000016350 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016351 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016352 # or fails outright, so override atomically:
16353 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016354 ;;
16355
16356interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016357 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016358 need_lib_prefix=no
16359 need_version=no
16360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16361 soname_spec='${libname}${release}${shared_ext}$major'
16362 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16363 shlibpath_var=LD_LIBRARY_PATH
16364 shlibpath_overrides_runpath=no
16365 hardcode_into_libs=yes
16366 ;;
16367
16368irix5* | irix6* | nonstopux*)
16369 case $host_os in
16370 nonstopux*) version_type=nonstopux ;;
16371 *)
16372 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016373 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016374 else
16375 version_type=irix
16376 fi ;;
16377 esac
16378 need_lib_prefix=no
16379 need_version=no
16380 soname_spec='${libname}${release}${shared_ext}$major'
16381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16382 case $host_os in
16383 irix5* | nonstopux*)
16384 libsuff= shlibsuff=
16385 ;;
16386 *)
16387 case $LD in # libtool.m4 will add one of these switches to LD
16388 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16389 libsuff= shlibsuff= libmagic=32-bit;;
16390 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16391 libsuff=32 shlibsuff=N32 libmagic=N32;;
16392 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16393 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16394 *) libsuff= shlibsuff= libmagic=never-match;;
16395 esac
16396 ;;
16397 esac
16398 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16399 shlibpath_overrides_runpath=no
16400 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16401 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16402 hardcode_into_libs=yes
16403 ;;
16404
16405# No shared lib support for Linux oldld, aout, or coff.
16406linux*oldld* | linux*aout* | linux*coff*)
16407 dynamic_linker=no
16408 ;;
16409
cristy99bd5232011-12-07 14:38:20 +000016410# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016411linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016412 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016413 need_lib_prefix=no
16414 need_version=no
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416 soname_spec='${libname}${release}${shared_ext}$major'
16417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16418 shlibpath_var=LD_LIBRARY_PATH
16419 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016420
cristy73bd4a52010-10-05 11:24:23 +000016421 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016422 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016423 $as_echo_n "(cached) " >&6
16424else
16425 lt_cv_shlibpath_overrides_runpath=no
16426 save_LDFLAGS=$LDFLAGS
16427 save_libdir=$libdir
16428 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16429 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016431/* end confdefs.h. */
16432
16433int
16434main ()
16435{
16436
16437 ;
16438 return 0;
16439}
16440_ACEOF
16441if ac_fn_c_try_link "$LINENO"; then :
16442 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016443 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016444fi
16445fi
16446rm -f core conftest.err conftest.$ac_objext \
16447 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016448 LDFLAGS=$save_LDFLAGS
16449 libdir=$save_libdir
16450
16451fi
16452
16453 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016454
16455 # This implies no fast_install, which is unacceptable.
16456 # Some rework will be needed to allow for fast_install
16457 # before this can be enabled.
16458 hardcode_into_libs=yes
16459
16460 # Add ABI-specific directories to the system library path.
16461 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16462
16463 # Append ld.so.conf contents to the search path
16464 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016465 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 +000016466 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016467
cristy73bd4a52010-10-05 11:24:23 +000016468 fi
16469
16470 # We used to test for /lib/ld.so.1 and disable shared libraries on
16471 # powerpc, because MkLinux only supported shared libraries with the
16472 # GNU dynamic linker. Since this was broken with cross compilers,
16473 # most powerpc-linux boxes support dynamic linking these days and
16474 # people can always --disable-shared, the test was removed, and we
16475 # assume the GNU/Linux dynamic linker is in use.
16476 dynamic_linker='GNU/Linux ld.so'
16477 ;;
16478
16479netbsd*)
16480 version_type=sunos
16481 need_lib_prefix=no
16482 need_version=no
16483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16486 dynamic_linker='NetBSD (a.out) ld.so'
16487 else
16488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16489 soname_spec='${libname}${release}${shared_ext}$major'
16490 dynamic_linker='NetBSD ld.elf_so'
16491 fi
16492 shlibpath_var=LD_LIBRARY_PATH
16493 shlibpath_overrides_runpath=yes
16494 hardcode_into_libs=yes
16495 ;;
16496
16497newsos6)
cristy99bd5232011-12-07 14:38:20 +000016498 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 shlibpath_overrides_runpath=yes
16502 ;;
16503
16504*nto* | *qnx*)
16505 version_type=qnx
16506 need_lib_prefix=no
16507 need_version=no
16508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16509 soname_spec='${libname}${release}${shared_ext}$major'
16510 shlibpath_var=LD_LIBRARY_PATH
16511 shlibpath_overrides_runpath=no
16512 hardcode_into_libs=yes
16513 dynamic_linker='ldqnx.so'
16514 ;;
16515
16516openbsd*)
16517 version_type=sunos
16518 sys_lib_dlsearch_path_spec="/usr/lib"
16519 need_lib_prefix=no
16520 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16521 case $host_os in
16522 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16523 *) need_version=no ;;
16524 esac
16525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16527 shlibpath_var=LD_LIBRARY_PATH
16528 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16529 case $host_os in
16530 openbsd2.[89] | openbsd2.[89].*)
16531 shlibpath_overrides_runpath=no
16532 ;;
16533 *)
16534 shlibpath_overrides_runpath=yes
16535 ;;
16536 esac
16537 else
16538 shlibpath_overrides_runpath=yes
16539 fi
16540 ;;
16541
16542os2*)
16543 libname_spec='$name'
16544 shrext_cmds=".dll"
16545 need_lib_prefix=no
16546 library_names_spec='$libname${shared_ext} $libname.a'
16547 dynamic_linker='OS/2 ld.exe'
16548 shlibpath_var=LIBPATH
16549 ;;
16550
16551osf3* | osf4* | osf5*)
16552 version_type=osf
16553 need_lib_prefix=no
16554 need_version=no
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16557 shlibpath_var=LD_LIBRARY_PATH
16558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16560 ;;
16561
16562rdos*)
16563 dynamic_linker=no
16564 ;;
16565
16566solaris*)
cristy99bd5232011-12-07 14:38:20 +000016567 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016568 need_lib_prefix=no
16569 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
16573 shlibpath_overrides_runpath=yes
16574 hardcode_into_libs=yes
16575 # ldd complains unless libraries are executable
16576 postinstall_cmds='chmod +x $lib'
16577 ;;
16578
16579sunos4*)
16580 version_type=sunos
16581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16582 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16583 shlibpath_var=LD_LIBRARY_PATH
16584 shlibpath_overrides_runpath=yes
16585 if test "$with_gnu_ld" = yes; then
16586 need_lib_prefix=no
16587 fi
16588 need_version=yes
16589 ;;
16590
16591sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016592 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16594 soname_spec='${libname}${release}${shared_ext}$major'
16595 shlibpath_var=LD_LIBRARY_PATH
16596 case $host_vendor in
16597 sni)
16598 shlibpath_overrides_runpath=no
16599 need_lib_prefix=no
16600 runpath_var=LD_RUN_PATH
16601 ;;
16602 siemens)
16603 need_lib_prefix=no
16604 ;;
16605 motorola)
16606 need_lib_prefix=no
16607 need_version=no
16608 shlibpath_overrides_runpath=no
16609 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16610 ;;
16611 esac
16612 ;;
16613
16614sysv4*MP*)
16615 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016616 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016617 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16618 soname_spec='$libname${shared_ext}.$major'
16619 shlibpath_var=LD_LIBRARY_PATH
16620 fi
16621 ;;
16622
16623sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16624 version_type=freebsd-elf
16625 need_lib_prefix=no
16626 need_version=no
16627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16628 soname_spec='${libname}${release}${shared_ext}$major'
16629 shlibpath_var=LD_LIBRARY_PATH
16630 shlibpath_overrides_runpath=yes
16631 hardcode_into_libs=yes
16632 if test "$with_gnu_ld" = yes; then
16633 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16634 else
16635 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16636 case $host_os in
16637 sco3.2v5*)
16638 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16639 ;;
16640 esac
16641 fi
16642 sys_lib_dlsearch_path_spec='/usr/lib'
16643 ;;
16644
16645tpf*)
16646 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016647 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016648 need_lib_prefix=no
16649 need_version=no
16650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16651 shlibpath_var=LD_LIBRARY_PATH
16652 shlibpath_overrides_runpath=no
16653 hardcode_into_libs=yes
16654 ;;
16655
16656uts4*)
cristy99bd5232011-12-07 14:38:20 +000016657 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16659 soname_spec='${libname}${release}${shared_ext}$major'
16660 shlibpath_var=LD_LIBRARY_PATH
16661 ;;
16662
16663*)
16664 dynamic_linker=no
16665 ;;
16666esac
16667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16668$as_echo "$dynamic_linker" >&6; }
16669test "$dynamic_linker" = no && can_build_shared=no
16670
16671variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16672if test "$GCC" = yes; then
16673 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16674fi
16675
16676if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16677 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16678fi
16679if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16680 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16681fi
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
cristy0c60a692010-11-04 01:09:47 +000016769
16770
16771
16772
16773
cristy73bd4a52010-10-05 11:24:23 +000016774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16775$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16776hardcode_action=
16777if test -n "$hardcode_libdir_flag_spec" ||
16778 test -n "$runpath_var" ||
16779 test "X$hardcode_automatic" = "Xyes" ; then
16780
16781 # We can hardcode non-existent directories.
16782 if test "$hardcode_direct" != no &&
16783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16784 # have to relink, otherwise we might link with an installed library
16785 # when we should be linking with a yet-to-be-installed one
16786 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16787 test "$hardcode_minus_L" != no; then
16788 # Linking always hardcodes the temporary library directory.
16789 hardcode_action=relink
16790 else
16791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16792 hardcode_action=immediate
16793 fi
16794else
16795 # We cannot hardcode anything, or else we can only hardcode existing
16796 # directories.
16797 hardcode_action=unsupported
16798fi
16799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16800$as_echo "$hardcode_action" >&6; }
16801
16802if test "$hardcode_action" = relink ||
16803 test "$inherit_rpath" = yes; then
16804 # Fast installation is not supported
16805 enable_fast_install=no
16806elif test "$shlibpath_overrides_runpath" = yes ||
16807 test "$enable_shared" = no; then
16808 # Fast installation is not necessary
16809 enable_fast_install=needless
16810fi
16811
16812
16813
16814
16815
16816
16817 if test "x$enable_dlopen" != xyes; then
16818 enable_dlopen=unknown
16819 enable_dlopen_self=unknown
16820 enable_dlopen_self_static=unknown
16821else
16822 lt_cv_dlopen=no
16823 lt_cv_dlopen_libs=
16824
16825 case $host_os in
16826 beos*)
16827 lt_cv_dlopen="load_add_on"
16828 lt_cv_dlopen_libs=
16829 lt_cv_dlopen_self=yes
16830 ;;
16831
16832 mingw* | pw32* | cegcc*)
16833 lt_cv_dlopen="LoadLibrary"
16834 lt_cv_dlopen_libs=
16835 ;;
16836
16837 cygwin*)
16838 lt_cv_dlopen="dlopen"
16839 lt_cv_dlopen_libs=
16840 ;;
16841
16842 darwin*)
16843 # if libdl is installed we need to link against it
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16845$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016846if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016847 $as_echo_n "(cached) " >&6
16848else
16849 ac_check_lib_save_LIBS=$LIBS
16850LIBS="-ldl $LIBS"
16851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16852/* end confdefs.h. */
16853
16854/* Override any GCC internal prototype to avoid an error.
16855 Use char because int might match the return type of a GCC
16856 builtin and then its argument prototype would still apply. */
16857#ifdef __cplusplus
16858extern "C"
16859#endif
16860char dlopen ();
16861int
16862main ()
16863{
16864return dlopen ();
16865 ;
16866 return 0;
16867}
16868_ACEOF
16869if ac_fn_c_try_link "$LINENO"; then :
16870 ac_cv_lib_dl_dlopen=yes
16871else
16872 ac_cv_lib_dl_dlopen=no
16873fi
16874rm -f core conftest.err conftest.$ac_objext \
16875 conftest$ac_exeext conftest.$ac_ext
16876LIBS=$ac_check_lib_save_LIBS
16877fi
16878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16879$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016880if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16882else
16883
16884 lt_cv_dlopen="dyld"
16885 lt_cv_dlopen_libs=
16886 lt_cv_dlopen_self=yes
16887
16888fi
16889
16890 ;;
16891
16892 *)
16893 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016894if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016895 lt_cv_dlopen="shl_load"
16896else
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16898$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016899if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016900 $as_echo_n "(cached) " >&6
16901else
16902 ac_check_lib_save_LIBS=$LIBS
16903LIBS="-ldld $LIBS"
16904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16905/* end confdefs.h. */
16906
16907/* Override any GCC internal prototype to avoid an error.
16908 Use char because int might match the return type of a GCC
16909 builtin and then its argument prototype would still apply. */
16910#ifdef __cplusplus
16911extern "C"
16912#endif
16913char shl_load ();
16914int
16915main ()
16916{
16917return shl_load ();
16918 ;
16919 return 0;
16920}
16921_ACEOF
16922if ac_fn_c_try_link "$LINENO"; then :
16923 ac_cv_lib_dld_shl_load=yes
16924else
16925 ac_cv_lib_dld_shl_load=no
16926fi
16927rm -f core conftest.err conftest.$ac_objext \
16928 conftest$ac_exeext conftest.$ac_ext
16929LIBS=$ac_check_lib_save_LIBS
16930fi
16931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16932$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016933if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016934 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16935else
16936 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016937if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016938 lt_cv_dlopen="dlopen"
16939else
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16941$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016942if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016943 $as_echo_n "(cached) " >&6
16944else
16945 ac_check_lib_save_LIBS=$LIBS
16946LIBS="-ldl $LIBS"
16947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16948/* end confdefs.h. */
16949
16950/* Override any GCC internal prototype to avoid an error.
16951 Use char because int might match the return type of a GCC
16952 builtin and then its argument prototype would still apply. */
16953#ifdef __cplusplus
16954extern "C"
16955#endif
16956char dlopen ();
16957int
16958main ()
16959{
16960return dlopen ();
16961 ;
16962 return 0;
16963}
16964_ACEOF
16965if ac_fn_c_try_link "$LINENO"; then :
16966 ac_cv_lib_dl_dlopen=yes
16967else
16968 ac_cv_lib_dl_dlopen=no
16969fi
16970rm -f core conftest.err conftest.$ac_objext \
16971 conftest$ac_exeext conftest.$ac_ext
16972LIBS=$ac_check_lib_save_LIBS
16973fi
16974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16975$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016976if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016977 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16978else
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16980$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016981if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016982 $as_echo_n "(cached) " >&6
16983else
16984 ac_check_lib_save_LIBS=$LIBS
16985LIBS="-lsvld $LIBS"
16986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987/* end confdefs.h. */
16988
16989/* Override any GCC internal prototype to avoid an error.
16990 Use char because int might match the return type of a GCC
16991 builtin and then its argument prototype would still apply. */
16992#ifdef __cplusplus
16993extern "C"
16994#endif
16995char dlopen ();
16996int
16997main ()
16998{
16999return dlopen ();
17000 ;
17001 return 0;
17002}
17003_ACEOF
17004if ac_fn_c_try_link "$LINENO"; then :
17005 ac_cv_lib_svld_dlopen=yes
17006else
17007 ac_cv_lib_svld_dlopen=no
17008fi
17009rm -f core conftest.err conftest.$ac_objext \
17010 conftest$ac_exeext conftest.$ac_ext
17011LIBS=$ac_check_lib_save_LIBS
17012fi
17013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17014$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017015if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17017else
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17019$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017020if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017021 $as_echo_n "(cached) " >&6
17022else
17023 ac_check_lib_save_LIBS=$LIBS
17024LIBS="-ldld $LIBS"
17025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026/* end confdefs.h. */
17027
17028/* Override any GCC internal prototype to avoid an error.
17029 Use char because int might match the return type of a GCC
17030 builtin and then its argument prototype would still apply. */
17031#ifdef __cplusplus
17032extern "C"
17033#endif
17034char dld_link ();
17035int
17036main ()
17037{
17038return dld_link ();
17039 ;
17040 return 0;
17041}
17042_ACEOF
17043if ac_fn_c_try_link "$LINENO"; then :
17044 ac_cv_lib_dld_dld_link=yes
17045else
17046 ac_cv_lib_dld_dld_link=no
17047fi
17048rm -f core conftest.err conftest.$ac_objext \
17049 conftest$ac_exeext conftest.$ac_ext
17050LIBS=$ac_check_lib_save_LIBS
17051fi
17052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17053$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017054if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017055 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17056fi
17057
17058
17059fi
17060
17061
17062fi
17063
17064
17065fi
17066
17067
17068fi
17069
17070
17071fi
17072
17073 ;;
17074 esac
17075
17076 if test "x$lt_cv_dlopen" != xno; then
17077 enable_dlopen=yes
17078 else
17079 enable_dlopen=no
17080 fi
17081
17082 case $lt_cv_dlopen in
17083 dlopen)
17084 save_CPPFLAGS="$CPPFLAGS"
17085 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17086
17087 save_LDFLAGS="$LDFLAGS"
17088 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17089
17090 save_LIBS="$LIBS"
17091 LIBS="$lt_cv_dlopen_libs $LIBS"
17092
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17094$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017095if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017096 $as_echo_n "(cached) " >&6
17097else
17098 if test "$cross_compiling" = yes; then :
17099 lt_cv_dlopen_self=cross
17100else
17101 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17102 lt_status=$lt_dlunknown
17103 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017104#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017105#include "confdefs.h"
17106
17107#if HAVE_DLFCN_H
17108#include <dlfcn.h>
17109#endif
17110
17111#include <stdio.h>
17112
17113#ifdef RTLD_GLOBAL
17114# define LT_DLGLOBAL RTLD_GLOBAL
17115#else
17116# ifdef DL_GLOBAL
17117# define LT_DLGLOBAL DL_GLOBAL
17118# else
17119# define LT_DLGLOBAL 0
17120# endif
17121#endif
17122
17123/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17124 find out it does not work in some platform. */
17125#ifndef LT_DLLAZY_OR_NOW
17126# ifdef RTLD_LAZY
17127# define LT_DLLAZY_OR_NOW RTLD_LAZY
17128# else
17129# ifdef DL_LAZY
17130# define LT_DLLAZY_OR_NOW DL_LAZY
17131# else
17132# ifdef RTLD_NOW
17133# define LT_DLLAZY_OR_NOW RTLD_NOW
17134# else
17135# ifdef DL_NOW
17136# define LT_DLLAZY_OR_NOW DL_NOW
17137# else
17138# define LT_DLLAZY_OR_NOW 0
17139# endif
17140# endif
17141# endif
17142# endif
17143#endif
17144
cristy0c60a692010-11-04 01:09:47 +000017145/* When -fvisbility=hidden is used, assume the code has been annotated
17146 correspondingly for the symbols needed. */
17147#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017148int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017149#endif
17150
cristyda16f162011-02-19 23:52:17 +000017151int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017152int main ()
17153{
17154 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17155 int status = $lt_dlunknown;
17156
17157 if (self)
17158 {
17159 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017160 else
17161 {
17162 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17163 else puts (dlerror ());
17164 }
cristy73bd4a52010-10-05 11:24:23 +000017165 /* dlclose (self); */
17166 }
17167 else
17168 puts (dlerror ());
17169
17170 return status;
17171}
17172_LT_EOF
17173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17174 (eval $ac_link) 2>&5
17175 ac_status=$?
17176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17177 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17178 (./conftest; exit; ) >&5 2>/dev/null
17179 lt_status=$?
17180 case x$lt_status in
17181 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17182 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17183 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17184 esac
17185 else :
17186 # compilation failed
17187 lt_cv_dlopen_self=no
17188 fi
17189fi
17190rm -fr conftest*
17191
17192
17193fi
17194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17195$as_echo "$lt_cv_dlopen_self" >&6; }
17196
17197 if test "x$lt_cv_dlopen_self" = xyes; then
17198 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17200$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017201if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017202 $as_echo_n "(cached) " >&6
17203else
17204 if test "$cross_compiling" = yes; then :
17205 lt_cv_dlopen_self_static=cross
17206else
17207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17208 lt_status=$lt_dlunknown
17209 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017210#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017211#include "confdefs.h"
17212
17213#if HAVE_DLFCN_H
17214#include <dlfcn.h>
17215#endif
17216
17217#include <stdio.h>
17218
17219#ifdef RTLD_GLOBAL
17220# define LT_DLGLOBAL RTLD_GLOBAL
17221#else
17222# ifdef DL_GLOBAL
17223# define LT_DLGLOBAL DL_GLOBAL
17224# else
17225# define LT_DLGLOBAL 0
17226# endif
17227#endif
17228
17229/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17230 find out it does not work in some platform. */
17231#ifndef LT_DLLAZY_OR_NOW
17232# ifdef RTLD_LAZY
17233# define LT_DLLAZY_OR_NOW RTLD_LAZY
17234# else
17235# ifdef DL_LAZY
17236# define LT_DLLAZY_OR_NOW DL_LAZY
17237# else
17238# ifdef RTLD_NOW
17239# define LT_DLLAZY_OR_NOW RTLD_NOW
17240# else
17241# ifdef DL_NOW
17242# define LT_DLLAZY_OR_NOW DL_NOW
17243# else
17244# define LT_DLLAZY_OR_NOW 0
17245# endif
17246# endif
17247# endif
17248# endif
17249#endif
17250
cristy0c60a692010-11-04 01:09:47 +000017251/* When -fvisbility=hidden is used, assume the code has been annotated
17252 correspondingly for the symbols needed. */
17253#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017254int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017255#endif
17256
cristyda16f162011-02-19 23:52:17 +000017257int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017258int main ()
17259{
17260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17261 int status = $lt_dlunknown;
17262
17263 if (self)
17264 {
17265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017266 else
17267 {
17268 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17269 else puts (dlerror ());
17270 }
cristy73bd4a52010-10-05 11:24:23 +000017271 /* dlclose (self); */
17272 }
17273 else
17274 puts (dlerror ());
17275
17276 return status;
17277}
17278_LT_EOF
17279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17280 (eval $ac_link) 2>&5
17281 ac_status=$?
17282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17283 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17284 (./conftest; exit; ) >&5 2>/dev/null
17285 lt_status=$?
17286 case x$lt_status in
17287 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17288 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17289 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17290 esac
17291 else :
17292 # compilation failed
17293 lt_cv_dlopen_self_static=no
17294 fi
17295fi
17296rm -fr conftest*
17297
17298
17299fi
17300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17301$as_echo "$lt_cv_dlopen_self_static" >&6; }
17302 fi
17303
17304 CPPFLAGS="$save_CPPFLAGS"
17305 LDFLAGS="$save_LDFLAGS"
17306 LIBS="$save_LIBS"
17307 ;;
17308 esac
17309
17310 case $lt_cv_dlopen_self in
17311 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17312 *) enable_dlopen_self=unknown ;;
17313 esac
17314
17315 case $lt_cv_dlopen_self_static in
17316 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17317 *) enable_dlopen_self_static=unknown ;;
17318 esac
17319fi
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337striplib=
17338old_striplib=
17339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17340$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17341if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17342 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17343 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17345$as_echo "yes" >&6; }
17346else
17347# FIXME - insert some real tests, host_os isn't really good enough
17348 case $host_os in
17349 darwin*)
17350 if test -n "$STRIP" ; then
17351 striplib="$STRIP -x"
17352 old_striplib="$STRIP -S"
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17354$as_echo "yes" >&6; }
17355 else
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17357$as_echo "no" >&6; }
17358 fi
17359 ;;
17360 *)
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17362$as_echo "no" >&6; }
17363 ;;
17364 esac
17365fi
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378 # Report which library types will actually be built
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17380$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17382$as_echo "$can_build_shared" >&6; }
17383
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17385$as_echo_n "checking whether to build shared libraries... " >&6; }
17386 test "$can_build_shared" = "no" && enable_shared=no
17387
17388 # On AIX, shared libraries and static libraries use the same namespace, and
17389 # are all built from PIC.
17390 case $host_os in
17391 aix3*)
17392 test "$enable_shared" = yes && enable_static=no
17393 if test -n "$RANLIB"; then
17394 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17395 postinstall_cmds='$RANLIB $lib'
17396 fi
17397 ;;
17398
17399 aix[4-9]*)
17400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17401 test "$enable_shared" = yes && enable_static=no
17402 fi
17403 ;;
17404 esac
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17406$as_echo "$enable_shared" >&6; }
17407
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17409$as_echo_n "checking whether to build static libraries... " >&6; }
17410 # Make sure either enable_shared or enable_static is yes.
17411 test "$enable_shared" = yes || enable_static=yes
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17413$as_echo "$enable_static" >&6; }
17414
17415
17416
17417
17418fi
17419ac_ext=c
17420ac_cpp='$CPP $CPPFLAGS'
17421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17423ac_compiler_gnu=$ac_cv_c_compiler_gnu
17424
17425CC="$lt_save_CC"
17426
cristy0c60a692010-11-04 01:09:47 +000017427 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17428 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17429 (test "X$CXX" != "Xg++"))) ; then
17430 ac_ext=cpp
17431ac_cpp='$CXXCPP $CPPFLAGS'
17432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17436$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17437if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017438 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017439 $as_echo_n "(cached) " >&6
17440else
17441 # Double quotes because CXXCPP needs to be expanded
17442 for CXXCPP in "$CXX -E" "/lib/cpp"
17443 do
17444 ac_preproc_ok=false
17445for ac_cxx_preproc_warn_flag in '' yes
17446do
17447 # Use a header file that comes with gcc, so configuring glibc
17448 # with a fresh cross-compiler works.
17449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17450 # <limits.h> exists even on freestanding compilers.
17451 # On the NeXT, cc -E runs the code through the compiler's parser,
17452 # not just through cpp. "Syntax error" is here to catch this case.
17453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17454/* end confdefs.h. */
17455#ifdef __STDC__
17456# include <limits.h>
17457#else
17458# include <assert.h>
17459#endif
17460 Syntax error
17461_ACEOF
17462if ac_fn_cxx_try_cpp "$LINENO"; then :
17463
17464else
17465 # Broken: fails on valid input.
17466continue
17467fi
cristyda16f162011-02-19 23:52:17 +000017468rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017469
17470 # OK, works on sane cases. Now check whether nonexistent headers
17471 # can be detected and how.
17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473/* end confdefs.h. */
17474#include <ac_nonexistent.h>
17475_ACEOF
17476if ac_fn_cxx_try_cpp "$LINENO"; then :
17477 # Broken: success on invalid input.
17478continue
17479else
17480 # Passes both tests.
17481ac_preproc_ok=:
17482break
17483fi
cristyda16f162011-02-19 23:52:17 +000017484rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017485
17486done
17487# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017488rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017489if $ac_preproc_ok; then :
17490 break
17491fi
17492
17493 done
17494 ac_cv_prog_CXXCPP=$CXXCPP
17495
17496fi
17497 CXXCPP=$ac_cv_prog_CXXCPP
17498else
17499 ac_cv_prog_CXXCPP=$CXXCPP
17500fi
17501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17502$as_echo "$CXXCPP" >&6; }
17503ac_preproc_ok=false
17504for ac_cxx_preproc_warn_flag in '' yes
17505do
17506 # Use a header file that comes with gcc, so configuring glibc
17507 # with a fresh cross-compiler works.
17508 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17509 # <limits.h> exists even on freestanding compilers.
17510 # On the NeXT, cc -E runs the code through the compiler's parser,
17511 # not just through cpp. "Syntax error" is here to catch this case.
17512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513/* end confdefs.h. */
17514#ifdef __STDC__
17515# include <limits.h>
17516#else
17517# include <assert.h>
17518#endif
17519 Syntax error
17520_ACEOF
17521if ac_fn_cxx_try_cpp "$LINENO"; then :
17522
17523else
17524 # Broken: fails on valid input.
17525continue
17526fi
cristyda16f162011-02-19 23:52:17 +000017527rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017528
17529 # OK, works on sane cases. Now check whether nonexistent headers
17530 # can be detected and how.
17531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17532/* end confdefs.h. */
17533#include <ac_nonexistent.h>
17534_ACEOF
17535if ac_fn_cxx_try_cpp "$LINENO"; then :
17536 # Broken: success on invalid input.
17537continue
17538else
17539 # Passes both tests.
17540ac_preproc_ok=:
17541break
17542fi
cristyda16f162011-02-19 23:52:17 +000017543rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017544
17545done
17546# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017547rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017548if $ac_preproc_ok; then :
17549
17550else
17551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17553as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17554See \`config.log' for more details" "$LINENO" 5; }
17555fi
17556
17557ac_ext=c
17558ac_cpp='$CPP $CPPFLAGS'
17559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17561ac_compiler_gnu=$ac_cv_c_compiler_gnu
17562
17563else
17564 _lt_caught_CXX_error=yes
17565fi
cristy73bd4a52010-10-05 11:24:23 +000017566
17567ac_ext=cpp
17568ac_cpp='$CXXCPP $CPPFLAGS'
17569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17572
17573archive_cmds_need_lc_CXX=no
17574allow_undefined_flag_CXX=
17575always_export_symbols_CXX=no
17576archive_expsym_cmds_CXX=
17577compiler_needs_object_CXX=no
17578export_dynamic_flag_spec_CXX=
17579hardcode_direct_CXX=no
17580hardcode_direct_absolute_CXX=no
17581hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017582hardcode_libdir_separator_CXX=
17583hardcode_minus_L_CXX=no
17584hardcode_shlibpath_var_CXX=unsupported
17585hardcode_automatic_CXX=no
17586inherit_rpath_CXX=no
17587module_cmds_CXX=
17588module_expsym_cmds_CXX=
17589link_all_deplibs_CXX=unknown
17590old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017591reload_flag_CXX=$reload_flag
17592reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017593no_undefined_flag_CXX=
17594whole_archive_flag_spec_CXX=
17595enable_shared_with_static_runtimes_CXX=no
17596
17597# Source file extension for C++ test sources.
17598ac_ext=cpp
17599
17600# Object file extension for compiled C++ test sources.
17601objext=o
17602objext_CXX=$objext
17603
17604# No sense in running all these tests if we already determined that
17605# the CXX compiler isn't working. Some variables (like enable_shared)
17606# are currently assumed to apply to all compilers on this platform,
17607# and will be corrupted by setting them based on a non-working compiler.
17608if test "$_lt_caught_CXX_error" != yes; then
17609 # Code to be used in simple compile tests
17610 lt_simple_compile_test_code="int some_variable = 0;"
17611
17612 # Code to be used in simple link tests
17613 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17614
17615 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17616
17617
17618
17619
17620
17621
17622# If no C compiler was specified, use CC.
17623LTCC=${LTCC-"$CC"}
17624
17625# If no C compiler flags were specified, use CFLAGS.
17626LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17627
17628# Allow CC to be a program name with arguments.
17629compiler=$CC
17630
17631
17632 # save warnings/boilerplate of simple test code
17633 ac_outfile=conftest.$ac_objext
17634echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17635eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17636_lt_compiler_boilerplate=`cat conftest.err`
17637$RM conftest*
17638
17639 ac_outfile=conftest.$ac_objext
17640echo "$lt_simple_link_test_code" >conftest.$ac_ext
17641eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17642_lt_linker_boilerplate=`cat conftest.err`
17643$RM -r conftest*
17644
17645
17646 # Allow CC to be a program name with arguments.
17647 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017648 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017649 lt_save_LD=$LD
17650 lt_save_GCC=$GCC
17651 GCC=$GXX
17652 lt_save_with_gnu_ld=$with_gnu_ld
17653 lt_save_path_LD=$lt_cv_path_LD
17654 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17655 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17656 else
17657 $as_unset lt_cv_prog_gnu_ld
17658 fi
17659 if test -n "${lt_cv_path_LDCXX+set}"; then
17660 lt_cv_path_LD=$lt_cv_path_LDCXX
17661 else
17662 $as_unset lt_cv_path_LD
17663 fi
17664 test -z "${LDCXX+set}" || LD=$LDCXX
17665 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017666 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017667 compiler=$CC
17668 compiler_CXX=$CC
17669 for cc_temp in $compiler""; do
17670 case $cc_temp in
17671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17673 \-*) ;;
17674 *) break;;
17675 esac
17676done
cristy0c60a692010-11-04 01:09:47 +000017677cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017678
17679
17680 if test -n "$compiler"; then
17681 # We don't want -fno-exception when compiling C++ code, so set the
17682 # no_builtin_flag separately
17683 if test "$GXX" = yes; then
17684 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17685 else
17686 lt_prog_compiler_no_builtin_flag_CXX=
17687 fi
17688
17689 if test "$GXX" = yes; then
17690 # Set up default GNU C++ configuration
17691
17692
17693
17694# Check whether --with-gnu-ld was given.
17695if test "${with_gnu_ld+set}" = set; then :
17696 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17697else
17698 with_gnu_ld=no
17699fi
17700
17701ac_prog=ld
17702if test "$GCC" = yes; then
17703 # Check if gcc -print-prog-name=ld gives a path.
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17705$as_echo_n "checking for ld used by $CC... " >&6; }
17706 case $host in
17707 *-*-mingw*)
17708 # gcc leaves a trailing carriage return which upsets mingw
17709 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17710 *)
17711 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17712 esac
17713 case $ac_prog in
17714 # Accept absolute paths.
17715 [\\/]* | ?:[\\/]*)
17716 re_direlt='/[^/][^/]*/\.\./'
17717 # Canonicalize the pathname of ld
17718 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17719 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17720 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17721 done
17722 test -z "$LD" && LD="$ac_prog"
17723 ;;
17724 "")
17725 # If it fails, then pretend we aren't using GCC.
17726 ac_prog=ld
17727 ;;
17728 *)
17729 # If it is relative, then search for the first ld in PATH.
17730 with_gnu_ld=unknown
17731 ;;
17732 esac
17733elif test "$with_gnu_ld" = yes; then
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17735$as_echo_n "checking for GNU ld... " >&6; }
17736else
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17738$as_echo_n "checking for non-GNU ld... " >&6; }
17739fi
cristyda16f162011-02-19 23:52:17 +000017740if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017741 $as_echo_n "(cached) " >&6
17742else
17743 if test -z "$LD"; then
17744 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17745 for ac_dir in $PATH; do
17746 IFS="$lt_save_ifs"
17747 test -z "$ac_dir" && ac_dir=.
17748 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17749 lt_cv_path_LD="$ac_dir/$ac_prog"
17750 # Check to see if the program is GNU ld. I'd rather use --version,
17751 # but apparently some variants of GNU ld only accept -v.
17752 # Break only if it was the GNU/non-GNU ld that we prefer.
17753 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17754 *GNU* | *'with BFD'*)
17755 test "$with_gnu_ld" != no && break
17756 ;;
17757 *)
17758 test "$with_gnu_ld" != yes && break
17759 ;;
17760 esac
17761 fi
17762 done
17763 IFS="$lt_save_ifs"
17764else
17765 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17766fi
17767fi
17768
17769LD="$lt_cv_path_LD"
17770if test -n "$LD"; then
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17772$as_echo "$LD" >&6; }
17773else
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17775$as_echo "no" >&6; }
17776fi
cristy98dddb52010-11-04 00:30:15 +000017777test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17779$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017780if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017781 $as_echo_n "(cached) " >&6
17782else
17783 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17784case `$LD -v 2>&1 </dev/null` in
17785*GNU* | *'with BFD'*)
17786 lt_cv_prog_gnu_ld=yes
17787 ;;
17788*)
17789 lt_cv_prog_gnu_ld=no
17790 ;;
17791esac
17792fi
17793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17794$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17795with_gnu_ld=$lt_cv_prog_gnu_ld
17796
17797
17798
17799
17800
17801
17802
17803 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17804 # archiving commands below assume that GNU ld is being used.
17805 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017806 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17807 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 +000017808
17809 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17810 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17811
17812 # If archive_cmds runs LD, not CC, wlarc should be empty
17813 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17814 # investigate it a little bit more. (MM)
17815 wlarc='${wl}'
17816
17817 # ancient GNU ld didn't support --whole-archive et. al.
17818 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17819 $GREP 'no-whole-archive' > /dev/null; then
17820 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17821 else
17822 whole_archive_flag_spec_CXX=
17823 fi
17824 else
17825 with_gnu_ld=no
17826 wlarc=
17827
17828 # A generic and very simple default shared library creation
17829 # command for GNU C++ for the case where it uses the native
17830 # linker, instead of GNU ld. If possible, this setting should
17831 # overridden to take advantage of the native linker features on
17832 # the platform it is being used on.
17833 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17834 fi
17835
17836 # Commands to make compiler produce verbose output that lists
17837 # what "hidden" libraries, object files and flags are used when
17838 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017839 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017840
17841 else
17842 GXX=no
17843 with_gnu_ld=no
17844 wlarc=
17845 fi
17846
17847 # PORTME: fill in a description of your system's C++ link characteristics
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17849$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17850 ld_shlibs_CXX=yes
17851 case $host_os in
17852 aix3*)
17853 # FIXME: insert proper C++ library support
17854 ld_shlibs_CXX=no
17855 ;;
17856 aix[4-9]*)
17857 if test "$host_cpu" = ia64; then
17858 # On IA64, the linker does run time linking by default, so we don't
17859 # have to do anything special.
17860 aix_use_runtimelinking=no
17861 exp_sym_flag='-Bexport'
17862 no_entry_flag=""
17863 else
17864 aix_use_runtimelinking=no
17865
17866 # Test if we are trying to use run time linking or normal
17867 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17868 # need to do runtime linking.
17869 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17870 for ld_flag in $LDFLAGS; do
17871 case $ld_flag in
17872 *-brtl*)
17873 aix_use_runtimelinking=yes
17874 break
17875 ;;
17876 esac
17877 done
17878 ;;
17879 esac
17880
17881 exp_sym_flag='-bexport'
17882 no_entry_flag='-bnoentry'
17883 fi
17884
17885 # When large executables or shared objects are built, AIX ld can
17886 # have problems creating the table of contents. If linking a library
17887 # or program results in "error TOC overflow" add -mminimal-toc to
17888 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17889 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17890
17891 archive_cmds_CXX=''
17892 hardcode_direct_CXX=yes
17893 hardcode_direct_absolute_CXX=yes
17894 hardcode_libdir_separator_CXX=':'
17895 link_all_deplibs_CXX=yes
17896 file_list_spec_CXX='${wl}-f,'
17897
17898 if test "$GXX" = yes; then
17899 case $host_os in aix4.[012]|aix4.[012].*)
17900 # We only want to do this on AIX 4.2 and lower, the check
17901 # below for broken collect2 doesn't work under 4.3+
17902 collect2name=`${CC} -print-prog-name=collect2`
17903 if test -f "$collect2name" &&
17904 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17905 then
17906 # We have reworked collect2
17907 :
17908 else
17909 # We have old collect2
17910 hardcode_direct_CXX=unsupported
17911 # It fails to find uninstalled libraries when the uninstalled
17912 # path is not listed in the libpath. Setting hardcode_minus_L
17913 # to unsupported forces relinking
17914 hardcode_minus_L_CXX=yes
17915 hardcode_libdir_flag_spec_CXX='-L$libdir'
17916 hardcode_libdir_separator_CXX=
17917 fi
17918 esac
17919 shared_flag='-shared'
17920 if test "$aix_use_runtimelinking" = yes; then
17921 shared_flag="$shared_flag "'${wl}-G'
17922 fi
17923 else
17924 # not using gcc
17925 if test "$host_cpu" = ia64; then
17926 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17927 # chokes on -Wl,-G. The following line is correct:
17928 shared_flag='-G'
17929 else
17930 if test "$aix_use_runtimelinking" = yes; then
17931 shared_flag='${wl}-G'
17932 else
17933 shared_flag='${wl}-bM:SRE'
17934 fi
17935 fi
17936 fi
17937
17938 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17939 # It seems that -bexpall does not export symbols beginning with
17940 # underscore (_), so it is better to generate a list of symbols to
17941 # export.
17942 always_export_symbols_CXX=yes
17943 if test "$aix_use_runtimelinking" = yes; then
17944 # Warning - without using the other runtime loading flags (-brtl),
17945 # -berok will link without error, but may produce a broken library.
17946 allow_undefined_flag_CXX='-berok'
17947 # Determine the default libpath from the value encoded in an empty
17948 # executable.
cristyda16f162011-02-19 23:52:17 +000017949 if test "${lt_cv_aix_libpath+set}" = set; then
17950 aix_libpath=$lt_cv_aix_libpath
17951else
17952 if ${lt_cv_aix_libpath__CXX+:} false; then :
17953 $as_echo_n "(cached) " >&6
17954else
17955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017956/* end confdefs.h. */
17957
17958int
17959main ()
17960{
17961
17962 ;
17963 return 0;
17964}
17965_ACEOF
17966if ac_fn_cxx_try_link "$LINENO"; then :
17967
cristyda16f162011-02-19 23:52:17 +000017968 lt_aix_libpath_sed='
17969 /Import File Strings/,/^$/ {
17970 /^0/ {
17971 s/^0 *\([^ ]*\) *$/\1/
17972 p
17973 }
17974 }'
17975 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17976 # Check for a 64-bit object if we didn't find anything.
17977 if test -z "$lt_cv_aix_libpath__CXX"; then
17978 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17979 fi
cristy73bd4a52010-10-05 11:24:23 +000017980fi
17981rm -f core conftest.err conftest.$ac_objext \
17982 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017983 if test -z "$lt_cv_aix_libpath__CXX"; then
17984 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17985 fi
17986
17987fi
17988
17989 aix_libpath=$lt_cv_aix_libpath__CXX
17990fi
cristy73bd4a52010-10-05 11:24:23 +000017991
17992 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17993
cristy0c60a692010-11-04 01:09:47 +000017994 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 +000017995 else
17996 if test "$host_cpu" = ia64; then
17997 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17998 allow_undefined_flag_CXX="-z nodefs"
17999 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"
18000 else
18001 # Determine the default libpath from the value encoded in an
18002 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018003 if test "${lt_cv_aix_libpath+set}" = set; then
18004 aix_libpath=$lt_cv_aix_libpath
18005else
18006 if ${lt_cv_aix_libpath__CXX+:} false; then :
18007 $as_echo_n "(cached) " >&6
18008else
18009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018010/* end confdefs.h. */
18011
18012int
18013main ()
18014{
18015
18016 ;
18017 return 0;
18018}
18019_ACEOF
18020if ac_fn_cxx_try_link "$LINENO"; then :
18021
cristyda16f162011-02-19 23:52:17 +000018022 lt_aix_libpath_sed='
18023 /Import File Strings/,/^$/ {
18024 /^0/ {
18025 s/^0 *\([^ ]*\) *$/\1/
18026 p
18027 }
18028 }'
18029 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18030 # Check for a 64-bit object if we didn't find anything.
18031 if test -z "$lt_cv_aix_libpath__CXX"; then
18032 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18033 fi
cristy73bd4a52010-10-05 11:24:23 +000018034fi
18035rm -f core conftest.err conftest.$ac_objext \
18036 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018037 if test -z "$lt_cv_aix_libpath__CXX"; then
18038 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18039 fi
18040
18041fi
18042
18043 aix_libpath=$lt_cv_aix_libpath__CXX
18044fi
cristy73bd4a52010-10-05 11:24:23 +000018045
18046 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18047 # Warning - without using the other run time loading flags,
18048 # -berok will link without error, but may produce a broken library.
18049 no_undefined_flag_CXX=' ${wl}-bernotok'
18050 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018051 if test "$with_gnu_ld" = yes; then
18052 # We only use this code for GNU lds that support --whole-archive.
18053 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18054 else
18055 # Exported symbols can be pulled into shared objects from archives
18056 whole_archive_flag_spec_CXX='$convenience'
18057 fi
cristy73bd4a52010-10-05 11:24:23 +000018058 archive_cmds_need_lc_CXX=yes
18059 # This is similar to how AIX traditionally builds its shared
18060 # libraries.
18061 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'
18062 fi
18063 fi
18064 ;;
18065
18066 beos*)
18067 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18068 allow_undefined_flag_CXX=unsupported
18069 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18070 # support --undefined. This deserves some investigation. FIXME
18071 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18072 else
18073 ld_shlibs_CXX=no
18074 fi
18075 ;;
18076
18077 chorus*)
18078 case $cc_basename in
18079 *)
18080 # FIXME: insert proper C++ library support
18081 ld_shlibs_CXX=no
18082 ;;
18083 esac
18084 ;;
18085
18086 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018087 case $GXX,$cc_basename in
18088 ,cl* | no,cl*)
18089 # Native MSVC
18090 # hardcode_libdir_flag_spec is actually meaningless, as there is
18091 # no search path for DLLs.
18092 hardcode_libdir_flag_spec_CXX=' '
18093 allow_undefined_flag_CXX=unsupported
18094 always_export_symbols_CXX=yes
18095 file_list_spec_CXX='@'
18096 # Tell ltmain to make .lib files, not .a files.
18097 libext=lib
18098 # Tell ltmain to make .dll files, not .so files.
18099 shrext_cmds=".dll"
18100 # FIXME: Setting linknames here is a bad hack.
18101 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18102 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18103 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18104 else
18105 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18106 fi~
18107 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18108 linknames='
18109 # The linker will not automatically build a static lib if we build a DLL.
18110 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18111 enable_shared_with_static_runtimes_CXX=yes
18112 # Don't use ranlib
18113 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18114 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18115 lt_tool_outputfile="@TOOL_OUTPUT@"~
18116 case $lt_outputfile in
18117 *.exe|*.EXE) ;;
18118 *)
18119 lt_outputfile="$lt_outputfile.exe"
18120 lt_tool_outputfile="$lt_tool_outputfile.exe"
18121 ;;
18122 esac~
18123 func_to_tool_file "$lt_outputfile"~
18124 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18125 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18126 $RM "$lt_outputfile.manifest";
18127 fi'
18128 ;;
18129 *)
18130 # g++
18131 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18132 # as there is no search path for DLLs.
18133 hardcode_libdir_flag_spec_CXX='-L$libdir'
18134 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18135 allow_undefined_flag_CXX=unsupported
18136 always_export_symbols_CXX=no
18137 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018138
cristyda16f162011-02-19 23:52:17 +000018139 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18140 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'
18141 # If the export-symbols file already is a .def file (1st line
18142 # is EXPORTS), use it as is; otherwise, prepend...
18143 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18144 cp $export_symbols $output_objdir/$soname.def;
18145 else
18146 echo EXPORTS > $output_objdir/$soname.def;
18147 cat $export_symbols >> $output_objdir/$soname.def;
18148 fi~
18149 $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'
18150 else
18151 ld_shlibs_CXX=no
18152 fi
18153 ;;
18154 esac
18155 ;;
cristy73bd4a52010-10-05 11:24:23 +000018156 darwin* | rhapsody*)
18157
18158
18159 archive_cmds_need_lc_CXX=no
18160 hardcode_direct_CXX=no
18161 hardcode_automatic_CXX=yes
18162 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018163 if test "$lt_cv_ld_force_load" = "yes"; then
18164 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 +000018165
cristy0c60a692010-11-04 01:09:47 +000018166 else
18167 whole_archive_flag_spec_CXX=''
18168 fi
cristy73bd4a52010-10-05 11:24:23 +000018169 link_all_deplibs_CXX=yes
18170 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18171 case $cc_basename in
18172 ifort*) _lt_dar_can_shared=yes ;;
18173 *) _lt_dar_can_shared=$GCC ;;
18174 esac
18175 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018176 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018177 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}"
18178 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18179 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}"
18180 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}"
18181 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18182 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}"
18183 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}"
18184 fi
18185
18186 else
18187 ld_shlibs_CXX=no
18188 fi
18189
18190 ;;
18191
18192 dgux*)
18193 case $cc_basename in
18194 ec++*)
18195 # FIXME: insert proper C++ library support
18196 ld_shlibs_CXX=no
18197 ;;
18198 ghcx*)
18199 # Green Hills C++ Compiler
18200 # FIXME: insert proper C++ library support
18201 ld_shlibs_CXX=no
18202 ;;
18203 *)
18204 # FIXME: insert proper C++ library support
18205 ld_shlibs_CXX=no
18206 ;;
18207 esac
18208 ;;
18209
cristy99bd5232011-12-07 14:38:20 +000018210 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018211 # C++ shared libraries reported to be fairly broken before
18212 # switch to ELF
18213 ld_shlibs_CXX=no
18214 ;;
18215
18216 freebsd-elf*)
18217 archive_cmds_need_lc_CXX=no
18218 ;;
18219
18220 freebsd* | dragonfly*)
18221 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18222 # conventions
18223 ld_shlibs_CXX=yes
18224 ;;
18225
18226 gnu*)
18227 ;;
18228
cristy0c60a692010-11-04 01:09:47 +000018229 haiku*)
18230 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18231 link_all_deplibs_CXX=yes
18232 ;;
18233
cristy73bd4a52010-10-05 11:24:23 +000018234 hpux9*)
18235 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18236 hardcode_libdir_separator_CXX=:
18237 export_dynamic_flag_spec_CXX='${wl}-E'
18238 hardcode_direct_CXX=yes
18239 hardcode_minus_L_CXX=yes # Not in the search PATH,
18240 # but as the default
18241 # location of the library.
18242
18243 case $cc_basename in
18244 CC*)
18245 # FIXME: insert proper C++ library support
18246 ld_shlibs_CXX=no
18247 ;;
18248 aCC*)
18249 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'
18250 # Commands to make compiler produce verbose output that lists
18251 # what "hidden" libraries, object files and flags are used when
18252 # linking a shared library.
18253 #
18254 # There doesn't appear to be a way to prevent this compiler from
18255 # explicitly linking system object files so we need to strip them
18256 # from the output so that they don't get included in the library
18257 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018258 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 +000018259 ;;
18260 *)
18261 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018262 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 +000018263 else
18264 # FIXME: insert proper C++ library support
18265 ld_shlibs_CXX=no
18266 fi
18267 ;;
18268 esac
18269 ;;
18270
18271 hpux10*|hpux11*)
18272 if test $with_gnu_ld = no; then
18273 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18274 hardcode_libdir_separator_CXX=:
18275
18276 case $host_cpu in
18277 hppa*64*|ia64*)
18278 ;;
18279 *)
18280 export_dynamic_flag_spec_CXX='${wl}-E'
18281 ;;
18282 esac
18283 fi
18284 case $host_cpu in
18285 hppa*64*|ia64*)
18286 hardcode_direct_CXX=no
18287 hardcode_shlibpath_var_CXX=no
18288 ;;
18289 *)
18290 hardcode_direct_CXX=yes
18291 hardcode_direct_absolute_CXX=yes
18292 hardcode_minus_L_CXX=yes # Not in the search PATH,
18293 # but as the default
18294 # location of the library.
18295 ;;
18296 esac
18297
18298 case $cc_basename in
18299 CC*)
18300 # FIXME: insert proper C++ library support
18301 ld_shlibs_CXX=no
18302 ;;
18303 aCC*)
18304 case $host_cpu in
18305 hppa*64*)
18306 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18307 ;;
18308 ia64*)
18309 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18310 ;;
18311 *)
18312 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18313 ;;
18314 esac
18315 # Commands to make compiler produce verbose output that lists
18316 # what "hidden" libraries, object files and flags are used when
18317 # linking a shared library.
18318 #
18319 # There doesn't appear to be a way to prevent this compiler from
18320 # explicitly linking system object files so we need to strip them
18321 # from the output so that they don't get included in the library
18322 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018323 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 +000018324 ;;
18325 *)
18326 if test "$GXX" = yes; then
18327 if test $with_gnu_ld = no; then
18328 case $host_cpu in
18329 hppa*64*)
18330 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18331 ;;
18332 ia64*)
cristyda16f162011-02-19 23:52:17 +000018333 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 +000018334 ;;
18335 *)
cristyda16f162011-02-19 23:52:17 +000018336 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 +000018337 ;;
18338 esac
18339 fi
18340 else
18341 # FIXME: insert proper C++ library support
18342 ld_shlibs_CXX=no
18343 fi
18344 ;;
18345 esac
18346 ;;
18347
18348 interix[3-9]*)
18349 hardcode_direct_CXX=no
18350 hardcode_shlibpath_var_CXX=no
18351 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18352 export_dynamic_flag_spec_CXX='${wl}-E'
18353 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18354 # Instead, shared libraries are loaded at an image base (0x10000000 by
18355 # default) and relocated if they conflict, which is a slow very memory
18356 # consuming and fragmenting process. To avoid this, we pick a random,
18357 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18358 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18359 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'
18360 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'
18361 ;;
18362 irix5* | irix6*)
18363 case $cc_basename in
18364 CC*)
18365 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018366 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 +000018367
18368 # Archives containing C++ object files must be created using
18369 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18370 # necessary to make sure instantiated templates are included
18371 # in the archive.
18372 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18373 ;;
18374 *)
18375 if test "$GXX" = yes; then
18376 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018377 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 +000018378 else
cristyda16f162011-02-19 23:52:17 +000018379 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 +000018380 fi
18381 fi
18382 link_all_deplibs_CXX=yes
18383 ;;
18384 esac
18385 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18386 hardcode_libdir_separator_CXX=:
18387 inherit_rpath_CXX=yes
18388 ;;
18389
cristy0c60a692010-11-04 01:09:47 +000018390 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018391 case $cc_basename in
18392 KCC*)
18393 # Kuck and Associates, Inc. (KAI) C++ Compiler
18394
18395 # KCC will only create a shared library if the output file
18396 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18397 # to its proper name (with version) after linking.
18398 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'
18399 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'
18400 # Commands to make compiler produce verbose output that lists
18401 # what "hidden" libraries, object files and flags are used when
18402 # linking a shared library.
18403 #
18404 # There doesn't appear to be a way to prevent this compiler from
18405 # explicitly linking system object files so we need to strip them
18406 # from the output so that they don't get included in the library
18407 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018408 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 +000018409
18410 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18411 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18412
18413 # Archives containing C++ object files must be created using
18414 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18415 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18416 ;;
18417 icpc* | ecpc* )
18418 # Intel C++
18419 with_gnu_ld=yes
18420 # version 8.0 and above of icpc choke on multiply defined symbols
18421 # if we add $predep_objects and $postdep_objects, however 7.1 and
18422 # earlier do not add the objects themselves.
18423 case `$CC -V 2>&1` in
18424 *"Version 7."*)
18425 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18426 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'
18427 ;;
18428 *) # Version 8.0 or newer
18429 tmp_idyn=
18430 case $host_cpu in
18431 ia64*) tmp_idyn=' -i_dynamic';;
18432 esac
18433 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18434 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'
18435 ;;
18436 esac
18437 archive_cmds_need_lc_CXX=no
18438 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18439 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18440 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18441 ;;
18442 pgCC* | pgcpp*)
18443 # Portland Group C++ compiler
18444 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018445 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018446 prelink_cmds_CXX='tpldir=Template.dir~
18447 rm -rf $tpldir~
18448 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018449 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018450 old_archive_cmds_CXX='tpldir=Template.dir~
18451 rm -rf $tpldir~
18452 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018453 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018454 $RANLIB $oldlib'
18455 archive_cmds_CXX='tpldir=Template.dir~
18456 rm -rf $tpldir~
18457 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018458 $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 +000018459 archive_expsym_cmds_CXX='tpldir=Template.dir~
18460 rm -rf $tpldir~
18461 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018462 $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 +000018463 ;;
cristy0c60a692010-11-04 01:09:47 +000018464 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018465 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18466 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'
18467 ;;
18468 esac
18469
18470 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18471 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018472 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 +000018473 ;;
18474 cxx*)
18475 # Compaq C++
18476 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18477 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'
18478
18479 runpath_var=LD_RUN_PATH
18480 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18481 hardcode_libdir_separator_CXX=:
18482
18483 # Commands to make compiler produce verbose output that lists
18484 # what "hidden" libraries, object files and flags are used when
18485 # linking a shared library.
18486 #
18487 # There doesn't appear to be a way to prevent this compiler from
18488 # explicitly linking system object files so we need to strip them
18489 # from the output so that they don't get included in the library
18490 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018491 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 +000018492 ;;
cristy0c60a692010-11-04 01:09:47 +000018493 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018494 # IBM XL 8.0 on PPC, with GNU ld
18495 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18496 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18497 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18498 if test "x$supports_anon_versioning" = xyes; then
18499 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18500 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18501 echo "local: *; };" >> $output_objdir/$libname.ver~
18502 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18503 fi
18504 ;;
18505 *)
18506 case `$CC -V 2>&1 | sed 5q` in
18507 *Sun\ C*)
18508 # Sun C++ 5.9
18509 no_undefined_flag_CXX=' -zdefs'
18510 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18511 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'
18512 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018513 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 +000018514 compiler_needs_object_CXX=yes
18515
18516 # Not sure whether something based on
18517 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18518 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018519 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018520
18521 # Archives containing C++ object files must be created using
18522 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18523 # necessary to make sure instantiated templates are included
18524 # in the archive.
18525 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18526 ;;
18527 esac
18528 ;;
18529 esac
18530 ;;
18531
18532 lynxos*)
18533 # FIXME: insert proper C++ library support
18534 ld_shlibs_CXX=no
18535 ;;
18536
18537 m88k*)
18538 # FIXME: insert proper C++ library support
18539 ld_shlibs_CXX=no
18540 ;;
18541
18542 mvs*)
18543 case $cc_basename in
18544 cxx*)
18545 # FIXME: insert proper C++ library support
18546 ld_shlibs_CXX=no
18547 ;;
18548 *)
18549 # FIXME: insert proper C++ library support
18550 ld_shlibs_CXX=no
18551 ;;
18552 esac
18553 ;;
18554
18555 netbsd*)
18556 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18557 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18558 wlarc=
18559 hardcode_libdir_flag_spec_CXX='-R$libdir'
18560 hardcode_direct_CXX=yes
18561 hardcode_shlibpath_var_CXX=no
18562 fi
18563 # Workaround some broken pre-1.5 toolchains
18564 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18565 ;;
18566
18567 *nto* | *qnx*)
18568 ld_shlibs_CXX=yes
18569 ;;
18570
18571 openbsd2*)
18572 # C++ shared libraries are fairly broken
18573 ld_shlibs_CXX=no
18574 ;;
18575
18576 openbsd*)
18577 if test -f /usr/libexec/ld.so; then
18578 hardcode_direct_CXX=yes
18579 hardcode_shlibpath_var_CXX=no
18580 hardcode_direct_absolute_CXX=yes
18581 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18584 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18585 export_dynamic_flag_spec_CXX='${wl}-E'
18586 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18587 fi
cristy0c60a692010-11-04 01:09:47 +000018588 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018589 else
18590 ld_shlibs_CXX=no
18591 fi
18592 ;;
18593
18594 osf3* | osf4* | osf5*)
18595 case $cc_basename in
18596 KCC*)
18597 # Kuck and Associates, Inc. (KAI) C++ Compiler
18598
18599 # KCC will only create a shared library if the output file
18600 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18601 # to its proper name (with version) after linking.
18602 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'
18603
18604 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18605 hardcode_libdir_separator_CXX=:
18606
18607 # Archives containing C++ object files must be created using
18608 # the KAI C++ compiler.
18609 case $host in
18610 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18611 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18612 esac
18613 ;;
18614 RCC*)
18615 # Rational C++ 2.4.1
18616 # FIXME: insert proper C++ library support
18617 ld_shlibs_CXX=no
18618 ;;
18619 cxx*)
18620 case $host in
18621 osf3*)
18622 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018623 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 +000018624 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18625 ;;
18626 *)
18627 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018628 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 +000018629 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18630 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018631 $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 +000018632 $RM $lib.exp'
18633 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18634 ;;
18635 esac
18636
18637 hardcode_libdir_separator_CXX=:
18638
18639 # Commands to make compiler produce verbose output that lists
18640 # what "hidden" libraries, object files and flags are used when
18641 # linking a shared library.
18642 #
18643 # There doesn't appear to be a way to prevent this compiler from
18644 # explicitly linking system object files so we need to strip them
18645 # from the output so that they don't get included in the library
18646 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018647 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 +000018648 ;;
18649 *)
18650 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18651 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18652 case $host in
18653 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018654 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 +000018655 ;;
18656 *)
cristyda16f162011-02-19 23:52:17 +000018657 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 +000018658 ;;
18659 esac
18660
18661 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18662 hardcode_libdir_separator_CXX=:
18663
18664 # Commands to make compiler produce verbose output that lists
18665 # what "hidden" libraries, object files and flags are used when
18666 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018667 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018668
18669 else
18670 # FIXME: insert proper C++ library support
18671 ld_shlibs_CXX=no
18672 fi
18673 ;;
18674 esac
18675 ;;
18676
18677 psos*)
18678 # FIXME: insert proper C++ library support
18679 ld_shlibs_CXX=no
18680 ;;
18681
18682 sunos4*)
18683 case $cc_basename in
18684 CC*)
18685 # Sun C++ 4.x
18686 # FIXME: insert proper C++ library support
18687 ld_shlibs_CXX=no
18688 ;;
18689 lcc*)
18690 # Lucid
18691 # FIXME: insert proper C++ library support
18692 ld_shlibs_CXX=no
18693 ;;
18694 *)
18695 # FIXME: insert proper C++ library support
18696 ld_shlibs_CXX=no
18697 ;;
18698 esac
18699 ;;
18700
18701 solaris*)
18702 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018703 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018704 # Sun C++ 4.2, 5.x and Centerline C++
18705 archive_cmds_need_lc_CXX=yes
18706 no_undefined_flag_CXX=' -zdefs'
18707 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18708 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18709 $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'
18710
18711 hardcode_libdir_flag_spec_CXX='-R$libdir'
18712 hardcode_shlibpath_var_CXX=no
18713 case $host_os in
18714 solaris2.[0-5] | solaris2.[0-5].*) ;;
18715 *)
18716 # The compiler driver will combine and reorder linker options,
18717 # but understands `-z linker_flag'.
18718 # Supported since Solaris 2.6 (maybe 2.5.1?)
18719 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18720 ;;
18721 esac
18722 link_all_deplibs_CXX=yes
18723
cristy0c60a692010-11-04 01:09:47 +000018724 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018725
18726 # Archives containing C++ object files must be created using
18727 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18728 # necessary to make sure instantiated templates are included
18729 # in the archive.
18730 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18731 ;;
18732 gcx*)
18733 # Green Hills C++ Compiler
18734 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18735
18736 # The C++ compiler must be used to create the archive.
18737 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18738 ;;
18739 *)
18740 # GNU C++ compiler with Solaris linker
18741 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18742 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18743 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018744 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 +000018745 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 +000018746 $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 +000018747
18748 # Commands to make compiler produce verbose output that lists
18749 # what "hidden" libraries, object files and flags are used when
18750 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018751 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018752 else
18753 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18754 # platform.
18755 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18756 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18757 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18758
18759 # Commands to make compiler produce verbose output that lists
18760 # what "hidden" libraries, object files and flags are used when
18761 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018762 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018763 fi
18764
18765 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18766 case $host_os in
18767 solaris2.[0-5] | solaris2.[0-5].*) ;;
18768 *)
18769 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18770 ;;
18771 esac
18772 fi
18773 ;;
18774 esac
18775 ;;
18776
18777 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18778 no_undefined_flag_CXX='${wl}-z,text'
18779 archive_cmds_need_lc_CXX=no
18780 hardcode_shlibpath_var_CXX=no
18781 runpath_var='LD_RUN_PATH'
18782
18783 case $cc_basename in
18784 CC*)
18785 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18786 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18787 ;;
18788 *)
18789 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18790 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18791 ;;
18792 esac
18793 ;;
18794
18795 sysv5* | sco3.2v5* | sco5v6*)
18796 # Note: We can NOT use -z defs as we might desire, because we do not
18797 # link with -lc, and that would cause any symbols used from libc to
18798 # always be unresolved, which means just about no library would
18799 # ever link correctly. If we're not using GNU ld we use -z text
18800 # though, which does catch some bad symbols but isn't as heavy-handed
18801 # as -z defs.
18802 no_undefined_flag_CXX='${wl}-z,text'
18803 allow_undefined_flag_CXX='${wl}-z,nodefs'
18804 archive_cmds_need_lc_CXX=no
18805 hardcode_shlibpath_var_CXX=no
18806 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18807 hardcode_libdir_separator_CXX=':'
18808 link_all_deplibs_CXX=yes
18809 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18810 runpath_var='LD_RUN_PATH'
18811
18812 case $cc_basename in
18813 CC*)
18814 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18815 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 +000018816 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18817 '"$old_archive_cmds_CXX"
18818 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18819 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018820 ;;
18821 *)
18822 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18823 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18824 ;;
18825 esac
18826 ;;
18827
18828 tandem*)
18829 case $cc_basename in
18830 NCC*)
18831 # NonStop-UX NCC 3.20
18832 # FIXME: insert proper C++ library support
18833 ld_shlibs_CXX=no
18834 ;;
18835 *)
18836 # FIXME: insert proper C++ library support
18837 ld_shlibs_CXX=no
18838 ;;
18839 esac
18840 ;;
18841
18842 vxworks*)
18843 # FIXME: insert proper C++ library support
18844 ld_shlibs_CXX=no
18845 ;;
18846
18847 *)
18848 # FIXME: insert proper C++ library support
18849 ld_shlibs_CXX=no
18850 ;;
18851 esac
18852
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18854$as_echo "$ld_shlibs_CXX" >&6; }
18855 test "$ld_shlibs_CXX" = no && can_build_shared=no
18856
18857 GCC_CXX="$GXX"
18858 LD_CXX="$LD"
18859
18860 ## CAVEAT EMPTOR:
18861 ## There is no encapsulation within the following macros, do not change
18862 ## the running order or otherwise move them around unless you know exactly
18863 ## what you are doing...
18864 # Dependencies to place before and after the object being linked:
18865predep_objects_CXX=
18866postdep_objects_CXX=
18867predeps_CXX=
18868postdeps_CXX=
18869compiler_lib_search_path_CXX=
18870
18871cat > conftest.$ac_ext <<_LT_EOF
18872class Foo
18873{
18874public:
18875 Foo (void) { a = 0; }
18876private:
18877 int a;
18878};
18879_LT_EOF
18880
cristyda16f162011-02-19 23:52:17 +000018881
18882_lt_libdeps_save_CFLAGS=$CFLAGS
18883case "$CC $CFLAGS " in #(
18884*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18885*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018886*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018887esac
18888
cristy73bd4a52010-10-05 11:24:23 +000018889if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18890 (eval $ac_compile) 2>&5
18891 ac_status=$?
18892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18893 test $ac_status = 0; }; then
18894 # Parse the compiler output and extract the necessary
18895 # objects, libraries and library flags.
18896
18897 # Sentinel used to keep track of whether or not we are before
18898 # the conftest object file.
18899 pre_test_object_deps_done=no
18900
18901 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018902 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018903
18904 -L* | -R* | -l*)
18905 # Some compilers place space between "-{L,R}" and the path.
18906 # Remove the space.
18907 if test $p = "-L" ||
18908 test $p = "-R"; then
18909 prev=$p
18910 continue
cristy73bd4a52010-10-05 11:24:23 +000018911 fi
18912
cristyda16f162011-02-19 23:52:17 +000018913 # Expand the sysroot to ease extracting the directories later.
18914 if test -z "$prev"; then
18915 case $p in
18916 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18917 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18918 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18919 esac
18920 fi
18921 case $p in
18922 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18923 esac
cristy73bd4a52010-10-05 11:24:23 +000018924 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018925 case ${prev} in
18926 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018927 # Internal compiler library paths should come after those
18928 # provided the user. The postdeps already come after the
18929 # user supplied libs so there is no need to process them.
18930 if test -z "$compiler_lib_search_path_CXX"; then
18931 compiler_lib_search_path_CXX="${prev}${p}"
18932 else
18933 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18934 fi
18935 ;;
18936 # The "-l" case would never come before the object being
18937 # linked, so don't bother handling this case.
18938 esac
18939 else
18940 if test -z "$postdeps_CXX"; then
18941 postdeps_CXX="${prev}${p}"
18942 else
18943 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18944 fi
18945 fi
cristyda16f162011-02-19 23:52:17 +000018946 prev=
cristy73bd4a52010-10-05 11:24:23 +000018947 ;;
18948
cristyda16f162011-02-19 23:52:17 +000018949 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018950 *.$objext)
18951 # This assumes that the test object file only shows up
18952 # once in the compiler output.
18953 if test "$p" = "conftest.$objext"; then
18954 pre_test_object_deps_done=yes
18955 continue
18956 fi
18957
18958 if test "$pre_test_object_deps_done" = no; then
18959 if test -z "$predep_objects_CXX"; then
18960 predep_objects_CXX="$p"
18961 else
18962 predep_objects_CXX="$predep_objects_CXX $p"
18963 fi
18964 else
18965 if test -z "$postdep_objects_CXX"; then
18966 postdep_objects_CXX="$p"
18967 else
18968 postdep_objects_CXX="$postdep_objects_CXX $p"
18969 fi
18970 fi
18971 ;;
18972
18973 *) ;; # Ignore the rest.
18974
18975 esac
18976 done
18977
18978 # Clean up.
18979 rm -f a.out a.exe
18980else
18981 echo "libtool.m4: error: problem compiling CXX test program"
18982fi
18983
18984$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018985CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018986
18987# PORTME: override above test on systems where it is broken
18988case $host_os in
18989interix[3-9]*)
18990 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18991 # hack all around it, let's just trust "g++" to DTRT.
18992 predep_objects_CXX=
18993 postdep_objects_CXX=
18994 postdeps_CXX=
18995 ;;
18996
18997linux*)
18998 case `$CC -V 2>&1 | sed 5q` in
18999 *Sun\ C*)
19000 # Sun C++ 5.9
19001
19002 # The more standards-conforming stlport4 library is
19003 # incompatible with the Cstd library. Avoid specifying
19004 # it if it's in CXXFLAGS. Ignore libCrun as
19005 # -library=stlport4 depends on it.
19006 case " $CXX $CXXFLAGS " in
19007 *" -library=stlport4 "*)
19008 solaris_use_stlport4=yes
19009 ;;
19010 esac
19011
19012 if test "$solaris_use_stlport4" != yes; then
19013 postdeps_CXX='-library=Cstd -library=Crun'
19014 fi
19015 ;;
19016 esac
19017 ;;
19018
19019solaris*)
19020 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019021 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019022 # The more standards-conforming stlport4 library is
19023 # incompatible with the Cstd library. Avoid specifying
19024 # it if it's in CXXFLAGS. Ignore libCrun as
19025 # -library=stlport4 depends on it.
19026 case " $CXX $CXXFLAGS " in
19027 *" -library=stlport4 "*)
19028 solaris_use_stlport4=yes
19029 ;;
19030 esac
19031
19032 # Adding this requires a known-good setup of shared libraries for
19033 # Sun compiler versions before 5.6, else PIC objects from an old
19034 # archive will be linked into the output, leading to subtle bugs.
19035 if test "$solaris_use_stlport4" != yes; then
19036 postdeps_CXX='-library=Cstd -library=Crun'
19037 fi
19038 ;;
19039 esac
19040 ;;
19041esac
19042
19043
19044case " $postdeps_CXX " in
19045*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19046esac
19047 compiler_lib_search_dirs_CXX=
19048if test -n "${compiler_lib_search_path_CXX}"; then
19049 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19050fi
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082 lt_prog_compiler_wl_CXX=
19083lt_prog_compiler_pic_CXX=
19084lt_prog_compiler_static_CXX=
19085
cristy73bd4a52010-10-05 11:24:23 +000019086
19087 # C++ specific cases for pic, static, wl, etc.
19088 if test "$GXX" = yes; then
19089 lt_prog_compiler_wl_CXX='-Wl,'
19090 lt_prog_compiler_static_CXX='-static'
19091
19092 case $host_os in
19093 aix*)
19094 # All AIX code is PIC.
19095 if test "$host_cpu" = ia64; then
19096 # AIX 5 now supports IA64 processor
19097 lt_prog_compiler_static_CXX='-Bstatic'
19098 fi
19099 ;;
19100
19101 amigaos*)
19102 case $host_cpu in
19103 powerpc)
19104 # see comment about AmigaOS4 .so support
19105 lt_prog_compiler_pic_CXX='-fPIC'
19106 ;;
19107 m68k)
19108 # FIXME: we need at least 68020 code to build shared libraries, but
19109 # adding the `-m68020' flag to GCC prevents building anything better,
19110 # like `-m68040'.
19111 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19112 ;;
19113 esac
19114 ;;
19115
19116 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19117 # PIC is the default for these OSes.
19118 ;;
19119 mingw* | cygwin* | os2* | pw32* | cegcc*)
19120 # This hack is so that the source file can tell whether it is being
19121 # built for inclusion in a dll (and should export symbols for example).
19122 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19123 # (--disable-auto-import) libraries
19124 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19125 ;;
19126 darwin* | rhapsody*)
19127 # PIC is the default on this platform
19128 # Common symbols not allowed in MH_DYLIB files
19129 lt_prog_compiler_pic_CXX='-fno-common'
19130 ;;
19131 *djgpp*)
19132 # DJGPP does not support shared libraries at all
19133 lt_prog_compiler_pic_CXX=
19134 ;;
cristy0c60a692010-11-04 01:09:47 +000019135 haiku*)
19136 # PIC is the default for Haiku.
19137 # The "-static" flag exists, but is broken.
19138 lt_prog_compiler_static_CXX=
19139 ;;
cristy73bd4a52010-10-05 11:24:23 +000019140 interix[3-9]*)
19141 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19142 # Instead, we relocate shared libraries at runtime.
19143 ;;
19144 sysv4*MP*)
19145 if test -d /usr/nec; then
19146 lt_prog_compiler_pic_CXX=-Kconform_pic
19147 fi
19148 ;;
19149 hpux*)
19150 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19151 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19152 # sets the default TLS model and affects inlining.
19153 case $host_cpu in
19154 hppa*64*)
19155 ;;
19156 *)
19157 lt_prog_compiler_pic_CXX='-fPIC'
19158 ;;
19159 esac
19160 ;;
19161 *qnx* | *nto*)
19162 # QNX uses GNU C++, but need to define -shared option too, otherwise
19163 # it will coredump.
19164 lt_prog_compiler_pic_CXX='-fPIC -shared'
19165 ;;
19166 *)
19167 lt_prog_compiler_pic_CXX='-fPIC'
19168 ;;
19169 esac
19170 else
19171 case $host_os in
19172 aix[4-9]*)
19173 # All AIX code is PIC.
19174 if test "$host_cpu" = ia64; then
19175 # AIX 5 now supports IA64 processor
19176 lt_prog_compiler_static_CXX='-Bstatic'
19177 else
19178 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19179 fi
19180 ;;
19181 chorus*)
19182 case $cc_basename in
19183 cxch68*)
19184 # Green Hills C++ Compiler
19185 # _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"
19186 ;;
19187 esac
19188 ;;
cristyda16f162011-02-19 23:52:17 +000019189 mingw* | cygwin* | os2* | pw32* | cegcc*)
19190 # This hack is so that the source file can tell whether it is being
19191 # built for inclusion in a dll (and should export symbols for example).
19192 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19193 ;;
cristy73bd4a52010-10-05 11:24:23 +000019194 dgux*)
19195 case $cc_basename in
19196 ec++*)
19197 lt_prog_compiler_pic_CXX='-KPIC'
19198 ;;
19199 ghcx*)
19200 # Green Hills C++ Compiler
19201 lt_prog_compiler_pic_CXX='-pic'
19202 ;;
19203 *)
19204 ;;
19205 esac
19206 ;;
19207 freebsd* | dragonfly*)
19208 # FreeBSD uses GNU C++
19209 ;;
19210 hpux9* | hpux10* | hpux11*)
19211 case $cc_basename in
19212 CC*)
19213 lt_prog_compiler_wl_CXX='-Wl,'
19214 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19215 if test "$host_cpu" != ia64; then
19216 lt_prog_compiler_pic_CXX='+Z'
19217 fi
19218 ;;
19219 aCC*)
19220 lt_prog_compiler_wl_CXX='-Wl,'
19221 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19222 case $host_cpu in
19223 hppa*64*|ia64*)
19224 # +Z the default
19225 ;;
19226 *)
19227 lt_prog_compiler_pic_CXX='+Z'
19228 ;;
19229 esac
19230 ;;
19231 *)
19232 ;;
19233 esac
19234 ;;
19235 interix*)
19236 # This is c89, which is MS Visual C++ (no shared libs)
19237 # Anyone wants to do a port?
19238 ;;
19239 irix5* | irix6* | nonstopux*)
19240 case $cc_basename in
19241 CC*)
19242 lt_prog_compiler_wl_CXX='-Wl,'
19243 lt_prog_compiler_static_CXX='-non_shared'
19244 # CC pic flag -KPIC is the default.
19245 ;;
19246 *)
19247 ;;
19248 esac
19249 ;;
cristy0c60a692010-11-04 01:09:47 +000019250 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019251 case $cc_basename in
19252 KCC*)
19253 # KAI C++ Compiler
19254 lt_prog_compiler_wl_CXX='--backend -Wl,'
19255 lt_prog_compiler_pic_CXX='-fPIC'
19256 ;;
19257 ecpc* )
19258 # old Intel C++ for x86_64 which still supported -KPIC.
19259 lt_prog_compiler_wl_CXX='-Wl,'
19260 lt_prog_compiler_pic_CXX='-KPIC'
19261 lt_prog_compiler_static_CXX='-static'
19262 ;;
19263 icpc* )
19264 # Intel C++, used to be incompatible with GCC.
19265 # ICC 10 doesn't accept -KPIC any more.
19266 lt_prog_compiler_wl_CXX='-Wl,'
19267 lt_prog_compiler_pic_CXX='-fPIC'
19268 lt_prog_compiler_static_CXX='-static'
19269 ;;
19270 pgCC* | pgcpp*)
19271 # Portland Group C++ compiler
19272 lt_prog_compiler_wl_CXX='-Wl,'
19273 lt_prog_compiler_pic_CXX='-fpic'
19274 lt_prog_compiler_static_CXX='-Bstatic'
19275 ;;
19276 cxx*)
19277 # Compaq C++
19278 # Make sure the PIC flag is empty. It appears that all Alpha
19279 # Linux and Compaq Tru64 Unix objects are PIC.
19280 lt_prog_compiler_pic_CXX=
19281 lt_prog_compiler_static_CXX='-non_shared'
19282 ;;
cristy0c60a692010-11-04 01:09:47 +000019283 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19284 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019285 lt_prog_compiler_wl_CXX='-Wl,'
19286 lt_prog_compiler_pic_CXX='-qpic'
19287 lt_prog_compiler_static_CXX='-qstaticlink'
19288 ;;
19289 *)
19290 case `$CC -V 2>&1 | sed 5q` in
19291 *Sun\ C*)
19292 # Sun C++ 5.9
19293 lt_prog_compiler_pic_CXX='-KPIC'
19294 lt_prog_compiler_static_CXX='-Bstatic'
19295 lt_prog_compiler_wl_CXX='-Qoption ld '
19296 ;;
19297 esac
19298 ;;
19299 esac
19300 ;;
19301 lynxos*)
19302 ;;
19303 m88k*)
19304 ;;
19305 mvs*)
19306 case $cc_basename in
19307 cxx*)
19308 lt_prog_compiler_pic_CXX='-W c,exportall'
19309 ;;
19310 *)
19311 ;;
19312 esac
19313 ;;
19314 netbsd*)
19315 ;;
19316 *qnx* | *nto*)
19317 # QNX uses GNU C++, but need to define -shared option too, otherwise
19318 # it will coredump.
19319 lt_prog_compiler_pic_CXX='-fPIC -shared'
19320 ;;
19321 osf3* | osf4* | osf5*)
19322 case $cc_basename in
19323 KCC*)
19324 lt_prog_compiler_wl_CXX='--backend -Wl,'
19325 ;;
19326 RCC*)
19327 # Rational C++ 2.4.1
19328 lt_prog_compiler_pic_CXX='-pic'
19329 ;;
19330 cxx*)
19331 # Digital/Compaq C++
19332 lt_prog_compiler_wl_CXX='-Wl,'
19333 # Make sure the PIC flag is empty. It appears that all Alpha
19334 # Linux and Compaq Tru64 Unix objects are PIC.
19335 lt_prog_compiler_pic_CXX=
19336 lt_prog_compiler_static_CXX='-non_shared'
19337 ;;
19338 *)
19339 ;;
19340 esac
19341 ;;
19342 psos*)
19343 ;;
19344 solaris*)
19345 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019346 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019347 # Sun C++ 4.2, 5.x and Centerline C++
19348 lt_prog_compiler_pic_CXX='-KPIC'
19349 lt_prog_compiler_static_CXX='-Bstatic'
19350 lt_prog_compiler_wl_CXX='-Qoption ld '
19351 ;;
19352 gcx*)
19353 # Green Hills C++ Compiler
19354 lt_prog_compiler_pic_CXX='-PIC'
19355 ;;
19356 *)
19357 ;;
19358 esac
19359 ;;
19360 sunos4*)
19361 case $cc_basename in
19362 CC*)
19363 # Sun C++ 4.x
19364 lt_prog_compiler_pic_CXX='-pic'
19365 lt_prog_compiler_static_CXX='-Bstatic'
19366 ;;
19367 lcc*)
19368 # Lucid
19369 lt_prog_compiler_pic_CXX='-pic'
19370 ;;
19371 *)
19372 ;;
19373 esac
19374 ;;
19375 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19376 case $cc_basename in
19377 CC*)
19378 lt_prog_compiler_wl_CXX='-Wl,'
19379 lt_prog_compiler_pic_CXX='-KPIC'
19380 lt_prog_compiler_static_CXX='-Bstatic'
19381 ;;
19382 esac
19383 ;;
19384 tandem*)
19385 case $cc_basename in
19386 NCC*)
19387 # NonStop-UX NCC 3.20
19388 lt_prog_compiler_pic_CXX='-KPIC'
19389 ;;
19390 *)
19391 ;;
19392 esac
19393 ;;
19394 vxworks*)
19395 ;;
19396 *)
19397 lt_prog_compiler_can_build_shared_CXX=no
19398 ;;
19399 esac
19400 fi
19401
19402case $host_os in
19403 # For platforms which do not support PIC, -DPIC is meaningless:
19404 *djgpp*)
19405 lt_prog_compiler_pic_CXX=
19406 ;;
19407 *)
19408 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19409 ;;
19410esac
cristy73bd4a52010-10-05 11:24:23 +000019411
cristyda16f162011-02-19 23:52:17 +000019412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19413$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19414if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19415 $as_echo_n "(cached) " >&6
19416else
19417 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19418fi
19419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19420$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19421lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019422
19423#
19424# Check to make sure the PIC flag actually works.
19425#
19426if test -n "$lt_prog_compiler_pic_CXX"; then
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19428$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019429if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019430 $as_echo_n "(cached) " >&6
19431else
19432 lt_cv_prog_compiler_pic_works_CXX=no
19433 ac_outfile=conftest.$ac_objext
19434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19435 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19436 # Insert the option either (1) after the last *FLAGS variable, or
19437 # (2) before a word containing "conftest.", or (3) at the end.
19438 # Note that $ac_compile itself does not contain backslashes and begins
19439 # with a dollar sign (not a hyphen), so the echo should work correctly.
19440 # The option is referenced via a variable to avoid confusing sed.
19441 lt_compile=`echo "$ac_compile" | $SED \
19442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19444 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019446 (eval "$lt_compile" 2>conftest.err)
19447 ac_status=$?
19448 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019450 if (exit $ac_status) && test -s "$ac_outfile"; then
19451 # The compiler can only warn and ignore the option if not recognized
19452 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19456 lt_cv_prog_compiler_pic_works_CXX=yes
19457 fi
19458 fi
19459 $RM conftest*
19460
19461fi
19462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19463$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19464
19465if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19466 case $lt_prog_compiler_pic_CXX in
19467 "" | " "*) ;;
19468 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19469 esac
19470else
19471 lt_prog_compiler_pic_CXX=
19472 lt_prog_compiler_can_build_shared_CXX=no
19473fi
19474
19475fi
19476
19477
19478
cristyda16f162011-02-19 23:52:17 +000019479
19480
cristy73bd4a52010-10-05 11:24:23 +000019481#
19482# Check to make sure the static flag actually works.
19483#
19484wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19486$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019487if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019488 $as_echo_n "(cached) " >&6
19489else
19490 lt_cv_prog_compiler_static_works_CXX=no
19491 save_LDFLAGS="$LDFLAGS"
19492 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19493 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19494 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19495 # The linker can only warn and ignore the option if not recognized
19496 # So say no if there are warnings
19497 if test -s conftest.err; then
19498 # Append any errors to the config.log.
19499 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019500 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19502 if diff conftest.exp conftest.er2 >/dev/null; then
19503 lt_cv_prog_compiler_static_works_CXX=yes
19504 fi
19505 else
19506 lt_cv_prog_compiler_static_works_CXX=yes
19507 fi
19508 fi
19509 $RM -r conftest*
19510 LDFLAGS="$save_LDFLAGS"
19511
19512fi
19513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19514$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19515
19516if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19517 :
19518else
19519 lt_prog_compiler_static_CXX=
19520fi
19521
19522
19523
19524
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19526$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019527if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019528 $as_echo_n "(cached) " >&6
19529else
19530 lt_cv_prog_compiler_c_o_CXX=no
19531 $RM -r conftest 2>/dev/null
19532 mkdir conftest
19533 cd conftest
19534 mkdir out
19535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19536
19537 lt_compiler_flag="-o out/conftest2.$ac_objext"
19538 # Insert the option either (1) after the last *FLAGS variable, or
19539 # (2) before a word containing "conftest.", or (3) at the end.
19540 # Note that $ac_compile itself does not contain backslashes and begins
19541 # with a dollar sign (not a hyphen), so the echo should work correctly.
19542 lt_compile=`echo "$ac_compile" | $SED \
19543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19545 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019547 (eval "$lt_compile" 2>out/conftest.err)
19548 ac_status=$?
19549 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019551 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19552 then
19553 # The compiler can only warn and ignore the option if not recognized
19554 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019555 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019556 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19557 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19558 lt_cv_prog_compiler_c_o_CXX=yes
19559 fi
19560 fi
19561 chmod u+w . 2>&5
19562 $RM conftest*
19563 # SGI C++ compiler will create directory out/ii_files/ for
19564 # template instantiation
19565 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19566 $RM out/* && rmdir out
19567 cd ..
19568 $RM -r conftest
19569 $RM conftest*
19570
19571fi
19572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19573$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19574
19575
19576
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19578$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019579if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019580 $as_echo_n "(cached) " >&6
19581else
19582 lt_cv_prog_compiler_c_o_CXX=no
19583 $RM -r conftest 2>/dev/null
19584 mkdir conftest
19585 cd conftest
19586 mkdir out
19587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19588
19589 lt_compiler_flag="-o out/conftest2.$ac_objext"
19590 # Insert the option either (1) after the last *FLAGS variable, or
19591 # (2) before a word containing "conftest.", or (3) at the end.
19592 # Note that $ac_compile itself does not contain backslashes and begins
19593 # with a dollar sign (not a hyphen), so the echo should work correctly.
19594 lt_compile=`echo "$ac_compile" | $SED \
19595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19597 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019599 (eval "$lt_compile" 2>out/conftest.err)
19600 ac_status=$?
19601 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019603 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19604 then
19605 # The compiler can only warn and ignore the option if not recognized
19606 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19610 lt_cv_prog_compiler_c_o_CXX=yes
19611 fi
19612 fi
19613 chmod u+w . 2>&5
19614 $RM conftest*
19615 # SGI C++ compiler will create directory out/ii_files/ for
19616 # template instantiation
19617 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19618 $RM out/* && rmdir out
19619 cd ..
19620 $RM -r conftest
19621 $RM conftest*
19622
19623fi
19624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19625$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19626
19627
19628
19629
19630hard_links="nottested"
19631if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19632 # do not overwrite the value of need_locks provided by the user
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19634$as_echo_n "checking if we can lock with hard links... " >&6; }
19635 hard_links=yes
19636 $RM conftest*
19637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19638 touch conftest.a
19639 ln conftest.a conftest.b 2>&5 || hard_links=no
19640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19642$as_echo "$hard_links" >&6; }
19643 if test "$hard_links" = no; then
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19645$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19646 need_locks=warn
19647 fi
19648else
19649 need_locks=no
19650fi
19651
19652
19653
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19655$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19656
19657 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019658 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019659 case $host_os in
19660 aix[4-9]*)
19661 # If we're using GNU nm, then we don't want the "-C" option.
19662 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019663 # Also, AIX nm treats weak defined symbols like other global defined
19664 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019665 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019666 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 +000019667 else
19668 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'
19669 fi
19670 ;;
19671 pw32*)
19672 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019673 ;;
cristy73bd4a52010-10-05 11:24:23 +000019674 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019675 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019676 cl*)
19677 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19678 ;;
cristyda16f162011-02-19 23:52:17 +000019679 *)
19680 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'
19681 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19682 ;;
19683 esac
19684 ;;
cristy73bd4a52010-10-05 11:24:23 +000019685 *)
19686 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019687 ;;
cristy73bd4a52010-10-05 11:24:23 +000019688 esac
cristy73bd4a52010-10-05 11:24:23 +000019689
19690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19691$as_echo "$ld_shlibs_CXX" >&6; }
19692test "$ld_shlibs_CXX" = no && can_build_shared=no
19693
19694with_gnu_ld_CXX=$with_gnu_ld
19695
19696
19697
19698
19699
19700
19701#
19702# Do we need to explicitly link libc?
19703#
19704case "x$archive_cmds_need_lc_CXX" in
19705x|xyes)
19706 # Assume -lc should be added
19707 archive_cmds_need_lc_CXX=yes
19708
19709 if test "$enable_shared" = yes && test "$GCC" = yes; then
19710 case $archive_cmds_CXX in
19711 *'~'*)
19712 # FIXME: we may have to deal with multi-command sequences.
19713 ;;
19714 '$CC '*)
19715 # Test whether the compiler implicitly links with -lc since on some
19716 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19717 # to ld, don't add -lc before -lgcc.
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19719$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019720if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019721 $as_echo_n "(cached) " >&6
19722else
19723 $RM conftest*
19724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019725
cristy0c60a692010-11-04 01:09:47 +000019726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019727 (eval $ac_compile) 2>&5
19728 ac_status=$?
19729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19730 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019731 soname=conftest
19732 lib=conftest
19733 libobjs=conftest.$ac_objext
19734 deplibs=
19735 wl=$lt_prog_compiler_wl_CXX
19736 pic_flag=$lt_prog_compiler_pic_CXX
19737 compiler_flags=-v
19738 linker_flags=-v
19739 verstring=
19740 output_objdir=.
19741 libname=conftest
19742 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19743 allow_undefined_flag_CXX=
19744 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 +000019745 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19746 ac_status=$?
19747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19748 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019749 then
19750 lt_cv_archive_cmds_need_lc_CXX=no
19751 else
19752 lt_cv_archive_cmds_need_lc_CXX=yes
19753 fi
19754 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19755 else
19756 cat conftest.err 1>&5
19757 fi
19758 $RM conftest*
19759
19760fi
19761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19762$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19763 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019764 ;;
19765 esac
19766 fi
19767 ;;
19768esac
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
cristy73bd4a52010-10-05 11:24:23 +000019831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19832$as_echo_n "checking dynamic linker characteristics... " >&6; }
19833
19834library_names_spec=
19835libname_spec='lib$name'
19836soname_spec=
19837shrext_cmds=".so"
19838postinstall_cmds=
19839postuninstall_cmds=
19840finish_cmds=
19841finish_eval=
19842shlibpath_var=
19843shlibpath_overrides_runpath=unknown
19844version_type=none
19845dynamic_linker="$host_os ld.so"
19846sys_lib_dlsearch_path_spec="/lib /usr/lib"
19847need_lib_prefix=unknown
19848hardcode_into_libs=no
19849
19850# when you set need_version to no, make sure it does not cause -set_version
19851# flags to be left without arguments
19852need_version=unknown
19853
19854case $host_os in
19855aix3*)
cristy99bd5232011-12-07 14:38:20 +000019856 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19858 shlibpath_var=LIBPATH
19859
19860 # AIX 3 has no versioning support, so we append a major version to the name.
19861 soname_spec='${libname}${release}${shared_ext}$major'
19862 ;;
19863
19864aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019865 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019866 need_lib_prefix=no
19867 need_version=no
19868 hardcode_into_libs=yes
19869 if test "$host_cpu" = ia64; then
19870 # AIX 5 supports IA64
19871 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19872 shlibpath_var=LD_LIBRARY_PATH
19873 else
19874 # With GCC up to 2.95.x, collect2 would create an import file
19875 # for dependence libraries. The import file would start with
19876 # the line `#! .'. This would cause the generated library to
19877 # depend on `.', always an invalid library. This was fixed in
19878 # development snapshots of GCC prior to 3.0.
19879 case $host_os in
19880 aix4 | aix4.[01] | aix4.[01].*)
19881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19882 echo ' yes '
19883 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19884 :
19885 else
19886 can_build_shared=no
19887 fi
19888 ;;
19889 esac
19890 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19891 # soname into executable. Probably we can add versioning support to
19892 # collect2, so additional links can be useful in future.
19893 if test "$aix_use_runtimelinking" = yes; then
19894 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19895 # instead of lib<name>.a to let people know that these are not
19896 # typical AIX shared libraries.
19897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19898 else
19899 # We preserve .a as extension for shared libraries through AIX4.2
19900 # and later when we are not doing run time linking.
19901 library_names_spec='${libname}${release}.a $libname.a'
19902 soname_spec='${libname}${release}${shared_ext}$major'
19903 fi
19904 shlibpath_var=LIBPATH
19905 fi
19906 ;;
19907
19908amigaos*)
19909 case $host_cpu in
19910 powerpc)
19911 # Since July 2007 AmigaOS4 officially supports .so libraries.
19912 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19914 ;;
19915 m68k)
19916 library_names_spec='$libname.ixlibrary $libname.a'
19917 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019918 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 +000019919 ;;
19920 esac
19921 ;;
19922
19923beos*)
19924 library_names_spec='${libname}${shared_ext}'
19925 dynamic_linker="$host_os ld.so"
19926 shlibpath_var=LIBRARY_PATH
19927 ;;
19928
19929bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019930 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019931 need_version=no
19932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19933 soname_spec='${libname}${release}${shared_ext}$major'
19934 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19935 shlibpath_var=LD_LIBRARY_PATH
19936 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19937 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19938 # the default ld.so.conf also contains /usr/contrib/lib and
19939 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19940 # libtool to hard-code these into programs
19941 ;;
19942
19943cygwin* | mingw* | pw32* | cegcc*)
19944 version_type=windows
19945 shrext_cmds=".dll"
19946 need_version=no
19947 need_lib_prefix=no
19948
cristyda16f162011-02-19 23:52:17 +000019949 case $GCC,$cc_basename in
19950 yes,*)
19951 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019952 library_names_spec='$libname.dll.a'
19953 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19954 postinstall_cmds='base_file=`basename \${file}`~
19955 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19956 dldir=$destdir/`dirname \$dlpath`~
19957 test -d \$dldir || mkdir -p \$dldir~
19958 $install_prog $dir/$dlname \$dldir/$dlname~
19959 chmod a+x \$dldir/$dlname~
19960 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19961 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19962 fi'
19963 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19964 dlpath=$dir/\$dldll~
19965 $RM \$dlpath'
19966 shlibpath_overrides_runpath=yes
19967
19968 case $host_os in
19969 cygwin*)
19970 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19971 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019972
cristy73bd4a52010-10-05 11:24:23 +000019973 ;;
19974 mingw* | cegcc*)
19975 # MinGW DLLs use traditional 'lib' prefix
19976 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019977 ;;
19978 pw32*)
19979 # pw32 DLLs use 'pw' prefix rather than 'lib'
19980 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19981 ;;
19982 esac
cristyda16f162011-02-19 23:52:17 +000019983 dynamic_linker='Win32 ld.exe'
19984 ;;
19985
19986 *,cl*)
19987 # Native MSVC
19988 libname_spec='$name'
19989 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19990 library_names_spec='${libname}.dll.lib'
19991
19992 case $build_os in
19993 mingw*)
19994 sys_lib_search_path_spec=
19995 lt_save_ifs=$IFS
19996 IFS=';'
19997 for lt_path in $LIB
19998 do
19999 IFS=$lt_save_ifs
20000 # Let DOS variable expansion print the short 8.3 style file name.
20001 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20002 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20003 done
20004 IFS=$lt_save_ifs
20005 # Convert to MSYS style.
20006 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20007 ;;
20008 cygwin*)
20009 # Convert to unix form, then to dos form, then back to unix form
20010 # but this time dos style (no spaces!) so that the unix form looks
20011 # like /cygdrive/c/PROGRA~1:/cygdr...
20012 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20013 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20014 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20015 ;;
20016 *)
20017 sys_lib_search_path_spec="$LIB"
20018 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20019 # It is most probably a Windows format PATH.
20020 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20021 else
20022 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20023 fi
20024 # FIXME: find the short name or the path components, as spaces are
20025 # common. (e.g. "Program Files" -> "PROGRA~1")
20026 ;;
20027 esac
20028
20029 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20030 postinstall_cmds='base_file=`basename \${file}`~
20031 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20032 dldir=$destdir/`dirname \$dlpath`~
20033 test -d \$dldir || mkdir -p \$dldir~
20034 $install_prog $dir/$dlname \$dldir/$dlname'
20035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20036 dlpath=$dir/\$dldll~
20037 $RM \$dlpath'
20038 shlibpath_overrides_runpath=yes
20039 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020040 ;;
20041
20042 *)
cristyda16f162011-02-19 23:52:17 +000020043 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020044 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020045 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020046 ;;
20047 esac
cristy73bd4a52010-10-05 11:24:23 +000020048 # FIXME: first we should search . and the directory the executable is in
20049 shlibpath_var=PATH
20050 ;;
20051
20052darwin* | rhapsody*)
20053 dynamic_linker="$host_os dyld"
20054 version_type=darwin
20055 need_lib_prefix=no
20056 need_version=no
20057 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20058 soname_spec='${libname}${release}${major}$shared_ext'
20059 shlibpath_overrides_runpath=yes
20060 shlibpath_var=DYLD_LIBRARY_PATH
20061 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20062
20063 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20064 ;;
20065
20066dgux*)
cristy99bd5232011-12-07 14:38:20 +000020067 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020068 need_lib_prefix=no
20069 need_version=no
20070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20071 soname_spec='${libname}${release}${shared_ext}$major'
20072 shlibpath_var=LD_LIBRARY_PATH
20073 ;;
20074
cristy73bd4a52010-10-05 11:24:23 +000020075freebsd* | dragonfly*)
20076 # DragonFly does not have aout. When/if they implement a new
20077 # versioning mechanism, adjust this.
20078 if test -x /usr/bin/objformat; then
20079 objformat=`/usr/bin/objformat`
20080 else
20081 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020082 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020083 *) objformat=elf ;;
20084 esac
20085 fi
20086 version_type=freebsd-$objformat
20087 case $version_type in
20088 freebsd-elf*)
20089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20090 need_version=no
20091 need_lib_prefix=no
20092 ;;
20093 freebsd-*)
20094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20095 need_version=yes
20096 ;;
20097 esac
20098 shlibpath_var=LD_LIBRARY_PATH
20099 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020100 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020101 shlibpath_overrides_runpath=yes
20102 ;;
20103 freebsd3.[01]* | freebsdelf3.[01]*)
20104 shlibpath_overrides_runpath=yes
20105 hardcode_into_libs=yes
20106 ;;
20107 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20108 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20109 shlibpath_overrides_runpath=no
20110 hardcode_into_libs=yes
20111 ;;
20112 *) # from 4.6 on, and DragonFly
20113 shlibpath_overrides_runpath=yes
20114 hardcode_into_libs=yes
20115 ;;
20116 esac
20117 ;;
20118
20119gnu*)
cristy99bd5232011-12-07 14:38:20 +000020120 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020121 need_lib_prefix=no
20122 need_version=no
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20124 soname_spec='${libname}${release}${shared_ext}$major'
20125 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020126 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020127 hardcode_into_libs=yes
20128 ;;
20129
cristy0c60a692010-11-04 01:09:47 +000020130haiku*)
cristy99bd5232011-12-07 14:38:20 +000020131 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020132 need_lib_prefix=no
20133 need_version=no
20134 dynamic_linker="$host_os runtime_loader"
20135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20136 soname_spec='${libname}${release}${shared_ext}$major'
20137 shlibpath_var=LIBRARY_PATH
20138 shlibpath_overrides_runpath=yes
20139 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20140 hardcode_into_libs=yes
20141 ;;
20142
cristy73bd4a52010-10-05 11:24:23 +000020143hpux9* | hpux10* | hpux11*)
20144 # Give a soname corresponding to the major version so that dld.sl refuses to
20145 # link against other versions.
20146 version_type=sunos
20147 need_lib_prefix=no
20148 need_version=no
20149 case $host_cpu in
20150 ia64*)
20151 shrext_cmds='.so'
20152 hardcode_into_libs=yes
20153 dynamic_linker="$host_os dld.so"
20154 shlibpath_var=LD_LIBRARY_PATH
20155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
20159 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20160 else
20161 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20162 fi
20163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20164 ;;
20165 hppa*64*)
20166 shrext_cmds='.sl'
20167 hardcode_into_libs=yes
20168 dynamic_linker="$host_os dld.sl"
20169 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20172 soname_spec='${libname}${release}${shared_ext}$major'
20173 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20175 ;;
20176 *)
20177 shrext_cmds='.sl'
20178 dynamic_linker="$host_os dld.sl"
20179 shlibpath_var=SHLIB_PATH
20180 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20182 soname_spec='${libname}${release}${shared_ext}$major'
20183 ;;
20184 esac
cristy0c60a692010-11-04 01:09:47 +000020185 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020186 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020187 # or fails outright, so override atomically:
20188 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020189 ;;
20190
20191interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020192 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020193 need_lib_prefix=no
20194 need_version=no
20195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20196 soname_spec='${libname}${release}${shared_ext}$major'
20197 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20198 shlibpath_var=LD_LIBRARY_PATH
20199 shlibpath_overrides_runpath=no
20200 hardcode_into_libs=yes
20201 ;;
20202
20203irix5* | irix6* | nonstopux*)
20204 case $host_os in
20205 nonstopux*) version_type=nonstopux ;;
20206 *)
20207 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020208 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020209 else
20210 version_type=irix
20211 fi ;;
20212 esac
20213 need_lib_prefix=no
20214 need_version=no
20215 soname_spec='${libname}${release}${shared_ext}$major'
20216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20217 case $host_os in
20218 irix5* | nonstopux*)
20219 libsuff= shlibsuff=
20220 ;;
20221 *)
20222 case $LD in # libtool.m4 will add one of these switches to LD
20223 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20224 libsuff= shlibsuff= libmagic=32-bit;;
20225 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20226 libsuff=32 shlibsuff=N32 libmagic=N32;;
20227 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20228 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20229 *) libsuff= shlibsuff= libmagic=never-match;;
20230 esac
20231 ;;
20232 esac
20233 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20234 shlibpath_overrides_runpath=no
20235 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20236 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20237 hardcode_into_libs=yes
20238 ;;
20239
20240# No shared lib support for Linux oldld, aout, or coff.
20241linux*oldld* | linux*aout* | linux*coff*)
20242 dynamic_linker=no
20243 ;;
20244
cristy99bd5232011-12-07 14:38:20 +000020245# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020246linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020247 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020248 need_lib_prefix=no
20249 need_version=no
20250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20251 soname_spec='${libname}${release}${shared_ext}$major'
20252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20253 shlibpath_var=LD_LIBRARY_PATH
20254 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020255
cristy73bd4a52010-10-05 11:24:23 +000020256 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020257 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020258 $as_echo_n "(cached) " >&6
20259else
20260 lt_cv_shlibpath_overrides_runpath=no
20261 save_LDFLAGS=$LDFLAGS
20262 save_libdir=$libdir
20263 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20264 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020266/* end confdefs.h. */
20267
20268int
20269main ()
20270{
20271
20272 ;
20273 return 0;
20274}
20275_ACEOF
20276if ac_fn_cxx_try_link "$LINENO"; then :
20277 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020278 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020279fi
20280fi
20281rm -f core conftest.err conftest.$ac_objext \
20282 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020283 LDFLAGS=$save_LDFLAGS
20284 libdir=$save_libdir
20285
20286fi
20287
20288 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020289
20290 # This implies no fast_install, which is unacceptable.
20291 # Some rework will be needed to allow for fast_install
20292 # before this can be enabled.
20293 hardcode_into_libs=yes
20294
20295 # Add ABI-specific directories to the system library path.
20296 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20297
20298 # Append ld.so.conf contents to the search path
20299 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020300 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 +000020301 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020302
cristy73bd4a52010-10-05 11:24:23 +000020303 fi
20304
20305 # We used to test for /lib/ld.so.1 and disable shared libraries on
20306 # powerpc, because MkLinux only supported shared libraries with the
20307 # GNU dynamic linker. Since this was broken with cross compilers,
20308 # most powerpc-linux boxes support dynamic linking these days and
20309 # people can always --disable-shared, the test was removed, and we
20310 # assume the GNU/Linux dynamic linker is in use.
20311 dynamic_linker='GNU/Linux ld.so'
20312 ;;
20313
20314netbsd*)
20315 version_type=sunos
20316 need_lib_prefix=no
20317 need_version=no
20318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20321 dynamic_linker='NetBSD (a.out) ld.so'
20322 else
20323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20324 soname_spec='${libname}${release}${shared_ext}$major'
20325 dynamic_linker='NetBSD ld.elf_so'
20326 fi
20327 shlibpath_var=LD_LIBRARY_PATH
20328 shlibpath_overrides_runpath=yes
20329 hardcode_into_libs=yes
20330 ;;
20331
20332newsos6)
cristy99bd5232011-12-07 14:38:20 +000020333 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20335 shlibpath_var=LD_LIBRARY_PATH
20336 shlibpath_overrides_runpath=yes
20337 ;;
20338
20339*nto* | *qnx*)
20340 version_type=qnx
20341 need_lib_prefix=no
20342 need_version=no
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 shlibpath_overrides_runpath=no
20347 hardcode_into_libs=yes
20348 dynamic_linker='ldqnx.so'
20349 ;;
20350
20351openbsd*)
20352 version_type=sunos
20353 sys_lib_dlsearch_path_spec="/usr/lib"
20354 need_lib_prefix=no
20355 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20356 case $host_os in
20357 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20358 *) need_version=no ;;
20359 esac
20360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20362 shlibpath_var=LD_LIBRARY_PATH
20363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20364 case $host_os in
20365 openbsd2.[89] | openbsd2.[89].*)
20366 shlibpath_overrides_runpath=no
20367 ;;
20368 *)
20369 shlibpath_overrides_runpath=yes
20370 ;;
20371 esac
20372 else
20373 shlibpath_overrides_runpath=yes
20374 fi
20375 ;;
20376
20377os2*)
20378 libname_spec='$name'
20379 shrext_cmds=".dll"
20380 need_lib_prefix=no
20381 library_names_spec='$libname${shared_ext} $libname.a'
20382 dynamic_linker='OS/2 ld.exe'
20383 shlibpath_var=LIBPATH
20384 ;;
20385
20386osf3* | osf4* | osf5*)
20387 version_type=osf
20388 need_lib_prefix=no
20389 need_version=no
20390 soname_spec='${libname}${release}${shared_ext}$major'
20391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20392 shlibpath_var=LD_LIBRARY_PATH
20393 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20394 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20395 ;;
20396
20397rdos*)
20398 dynamic_linker=no
20399 ;;
20400
20401solaris*)
cristy99bd5232011-12-07 14:38:20 +000020402 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020403 need_lib_prefix=no
20404 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
20408 shlibpath_overrides_runpath=yes
20409 hardcode_into_libs=yes
20410 # ldd complains unless libraries are executable
20411 postinstall_cmds='chmod +x $lib'
20412 ;;
20413
20414sunos4*)
20415 version_type=sunos
20416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20417 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20418 shlibpath_var=LD_LIBRARY_PATH
20419 shlibpath_overrides_runpath=yes
20420 if test "$with_gnu_ld" = yes; then
20421 need_lib_prefix=no
20422 fi
20423 need_version=yes
20424 ;;
20425
20426sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020427 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20429 soname_spec='${libname}${release}${shared_ext}$major'
20430 shlibpath_var=LD_LIBRARY_PATH
20431 case $host_vendor in
20432 sni)
20433 shlibpath_overrides_runpath=no
20434 need_lib_prefix=no
20435 runpath_var=LD_RUN_PATH
20436 ;;
20437 siemens)
20438 need_lib_prefix=no
20439 ;;
20440 motorola)
20441 need_lib_prefix=no
20442 need_version=no
20443 shlibpath_overrides_runpath=no
20444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20445 ;;
20446 esac
20447 ;;
20448
20449sysv4*MP*)
20450 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020451 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20453 soname_spec='$libname${shared_ext}.$major'
20454 shlibpath_var=LD_LIBRARY_PATH
20455 fi
20456 ;;
20457
20458sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20459 version_type=freebsd-elf
20460 need_lib_prefix=no
20461 need_version=no
20462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20463 soname_spec='${libname}${release}${shared_ext}$major'
20464 shlibpath_var=LD_LIBRARY_PATH
20465 shlibpath_overrides_runpath=yes
20466 hardcode_into_libs=yes
20467 if test "$with_gnu_ld" = yes; then
20468 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20469 else
20470 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20471 case $host_os in
20472 sco3.2v5*)
20473 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20474 ;;
20475 esac
20476 fi
20477 sys_lib_dlsearch_path_spec='/usr/lib'
20478 ;;
20479
20480tpf*)
20481 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020482 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020483 need_lib_prefix=no
20484 need_version=no
20485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20486 shlibpath_var=LD_LIBRARY_PATH
20487 shlibpath_overrides_runpath=no
20488 hardcode_into_libs=yes
20489 ;;
20490
20491uts4*)
cristy99bd5232011-12-07 14:38:20 +000020492 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20494 soname_spec='${libname}${release}${shared_ext}$major'
20495 shlibpath_var=LD_LIBRARY_PATH
20496 ;;
20497
20498*)
20499 dynamic_linker=no
20500 ;;
20501esac
20502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20503$as_echo "$dynamic_linker" >&6; }
20504test "$dynamic_linker" = no && can_build_shared=no
20505
20506variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20507if test "$GCC" = yes; then
20508 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20509fi
20510
20511if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20512 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20513fi
20514if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20515 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20516fi
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
cristy0c60a692010-11-04 01:09:47 +000020553
20554
cristy73bd4a52010-10-05 11:24:23 +000020555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20556$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20557hardcode_action_CXX=
20558if test -n "$hardcode_libdir_flag_spec_CXX" ||
20559 test -n "$runpath_var_CXX" ||
20560 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20561
20562 # We can hardcode non-existent directories.
20563 if test "$hardcode_direct_CXX" != no &&
20564 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20565 # have to relink, otherwise we might link with an installed library
20566 # when we should be linking with a yet-to-be-installed one
20567 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20568 test "$hardcode_minus_L_CXX" != no; then
20569 # Linking always hardcodes the temporary library directory.
20570 hardcode_action_CXX=relink
20571 else
20572 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20573 hardcode_action_CXX=immediate
20574 fi
20575else
20576 # We cannot hardcode anything, or else we can only hardcode existing
20577 # directories.
20578 hardcode_action_CXX=unsupported
20579fi
20580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20581$as_echo "$hardcode_action_CXX" >&6; }
20582
20583if test "$hardcode_action_CXX" = relink ||
20584 test "$inherit_rpath_CXX" = yes; then
20585 # Fast installation is not supported
20586 enable_fast_install=no
20587elif test "$shlibpath_overrides_runpath" = yes ||
20588 test "$enable_shared" = no; then
20589 # Fast installation is not necessary
20590 enable_fast_install=needless
20591fi
20592
20593
20594
20595
20596
20597
20598
20599 fi # test -n "$compiler"
20600
20601 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020602 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020603 LDCXX=$LD
20604 LD=$lt_save_LD
20605 GCC=$lt_save_GCC
20606 with_gnu_ld=$lt_save_with_gnu_ld
20607 lt_cv_path_LDCXX=$lt_cv_path_LD
20608 lt_cv_path_LD=$lt_save_path_LD
20609 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20610 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20611fi # test "$_lt_caught_CXX_error" != yes
20612
20613ac_ext=c
20614ac_cpp='$CPP $CPPFLAGS'
20615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617ac_compiler_gnu=$ac_cv_c_compiler_gnu
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
cristy99bd5232011-12-07 14:38:20 +000020631
20632
cristy73bd4a52010-10-05 11:24:23 +000020633 ac_config_commands="$ac_config_commands libtool"
20634
20635
20636
20637
20638# Only expand once:
20639
20640
20641
cristy3ed852e2009-09-05 21:47:34 +000020642
20643
20644# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020645
20646
20647
20648
20649
20650
20651
cristy73bd4a52010-10-05 11:24:23 +000020652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20653$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020654if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020655 $as_echo_n "(cached) " >&6
20656else
20657
20658module=yes
20659eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020660module=no
20661eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020662
20663fi
20664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20665$as_echo "$libltdl_cv_shlibext" >&6; }
20666if test -n "$libltdl_cv_shlibext"; then
20667
20668cat >>confdefs.h <<_ACEOF
20669#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20670_ACEOF
20671
20672fi
cristy99bd5232011-12-07 14:38:20 +000020673if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20674
20675cat >>confdefs.h <<_ACEOF
20676#define LT_SHARED_EXT "$libltdl_cv_shrext"
20677_ACEOF
20678
20679fi
cristy73bd4a52010-10-05 11:24:23 +000020680
20681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20682$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020683if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020684 $as_echo_n "(cached) " >&6
20685else
20686 lt_cv_module_path_var="$shlibpath_var"
20687fi
20688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20689$as_echo "$lt_cv_module_path_var" >&6; }
20690if test -n "$lt_cv_module_path_var"; then
20691
20692cat >>confdefs.h <<_ACEOF
20693#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20694_ACEOF
20695
20696fi
20697
20698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20699$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020700if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020701 $as_echo_n "(cached) " >&6
20702else
20703 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20704fi
20705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20706$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20707if test -n "$lt_cv_sys_dlsearch_path"; then
20708 sys_dlsearch_path=
20709 for dir in $lt_cv_sys_dlsearch_path; do
20710 if test -z "$sys_dlsearch_path"; then
20711 sys_dlsearch_path="$dir"
20712 else
20713 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20714 fi
20715 done
20716
20717cat >>confdefs.h <<_ACEOF
20718#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20719_ACEOF
20720
20721fi
20722
20723
20724LT_DLLOADERS=
20725
20726
20727ac_ext=c
20728ac_cpp='$CPP $CPPFLAGS'
20729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20731ac_compiler_gnu=$ac_cv_c_compiler_gnu
20732
20733
20734LIBADD_DLOPEN=
20735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20736$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020737if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020738 $as_echo_n "(cached) " >&6
20739else
20740 ac_func_search_save_LIBS=$LIBS
20741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20742/* end confdefs.h. */
20743
20744/* Override any GCC internal prototype to avoid an error.
20745 Use char because int might match the return type of a GCC
20746 builtin and then its argument prototype would still apply. */
20747#ifdef __cplusplus
20748extern "C"
20749#endif
20750char dlopen ();
20751int
20752main ()
20753{
20754return dlopen ();
20755 ;
20756 return 0;
20757}
20758_ACEOF
20759for ac_lib in '' dl; do
20760 if test -z "$ac_lib"; then
20761 ac_res="none required"
20762 else
20763 ac_res=-l$ac_lib
20764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20765 fi
20766 if ac_fn_c_try_link "$LINENO"; then :
20767 ac_cv_search_dlopen=$ac_res
20768fi
20769rm -f core conftest.err conftest.$ac_objext \
20770 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020771 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020772 break
20773fi
20774done
cristyda16f162011-02-19 23:52:17 +000020775if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020776
20777else
20778 ac_cv_search_dlopen=no
20779fi
20780rm conftest.$ac_ext
20781LIBS=$ac_func_search_save_LIBS
20782fi
20783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20784$as_echo "$ac_cv_search_dlopen" >&6; }
20785ac_res=$ac_cv_search_dlopen
20786if test "$ac_res" != no; then :
20787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20788
20789$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20790
20791 if test "$ac_cv_search_dlopen" != "none required" ; then
20792 LIBADD_DLOPEN="-ldl"
20793 fi
20794 libltdl_cv_lib_dl_dlopen="yes"
20795 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20796else
20797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798/* end confdefs.h. */
20799#if HAVE_DLFCN_H
20800# include <dlfcn.h>
20801#endif
20802
20803int
20804main ()
20805{
20806dlopen(0, 0);
20807 ;
20808 return 0;
20809}
20810_ACEOF
20811if ac_fn_c_try_link "$LINENO"; then :
20812
20813$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20814
20815 libltdl_cv_func_dlopen="yes"
20816 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20817else
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20819$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020820if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020821 $as_echo_n "(cached) " >&6
20822else
20823 ac_check_lib_save_LIBS=$LIBS
20824LIBS="-lsvld $LIBS"
20825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20826/* end confdefs.h. */
20827
20828/* Override any GCC internal prototype to avoid an error.
20829 Use char because int might match the return type of a GCC
20830 builtin and then its argument prototype would still apply. */
20831#ifdef __cplusplus
20832extern "C"
20833#endif
20834char dlopen ();
20835int
20836main ()
20837{
20838return dlopen ();
20839 ;
20840 return 0;
20841}
20842_ACEOF
20843if ac_fn_c_try_link "$LINENO"; then :
20844 ac_cv_lib_svld_dlopen=yes
20845else
20846 ac_cv_lib_svld_dlopen=no
20847fi
20848rm -f core conftest.err conftest.$ac_objext \
20849 conftest$ac_exeext conftest.$ac_ext
20850LIBS=$ac_check_lib_save_LIBS
20851fi
20852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20853$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020854if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020855
20856$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20857
20858 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20859 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20860fi
20861
20862fi
20863rm -f core conftest.err conftest.$ac_objext \
20864 conftest$ac_exeext conftest.$ac_ext
20865fi
20866
20867if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20868then
20869 lt_save_LIBS="$LIBS"
20870 LIBS="$LIBS $LIBADD_DLOPEN"
20871 for ac_func in dlerror
20872do :
20873 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020874if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020875 cat >>confdefs.h <<_ACEOF
20876#define HAVE_DLERROR 1
20877_ACEOF
20878
20879fi
20880done
20881
20882 LIBS="$lt_save_LIBS"
20883fi
20884
20885
20886LIBADD_SHL_LOAD=
20887ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020888if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020889
20890$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20891
20892 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20893else
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20895$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020896if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020897 $as_echo_n "(cached) " >&6
20898else
20899 ac_check_lib_save_LIBS=$LIBS
20900LIBS="-ldld $LIBS"
20901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20902/* end confdefs.h. */
20903
20904/* Override any GCC internal prototype to avoid an error.
20905 Use char because int might match the return type of a GCC
20906 builtin and then its argument prototype would still apply. */
20907#ifdef __cplusplus
20908extern "C"
20909#endif
20910char shl_load ();
20911int
20912main ()
20913{
20914return shl_load ();
20915 ;
20916 return 0;
20917}
20918_ACEOF
20919if ac_fn_c_try_link "$LINENO"; then :
20920 ac_cv_lib_dld_shl_load=yes
20921else
20922 ac_cv_lib_dld_shl_load=no
20923fi
20924rm -f core conftest.err conftest.$ac_objext \
20925 conftest$ac_exeext conftest.$ac_ext
20926LIBS=$ac_check_lib_save_LIBS
20927fi
20928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20929$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020930if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020931
20932$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20933
20934 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20935 LIBADD_SHL_LOAD="-ldld"
20936fi
20937
20938fi
20939
20940
20941
20942case $host_os in
20943darwin[1567].*)
20944# We only want this for pre-Mac OS X 10.4.
20945 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020946if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020947
20948$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20949
20950 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20951fi
20952
20953 ;;
20954beos*)
20955 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20956 ;;
20957cygwin* | mingw* | os2* | pw32*)
20958 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20959"
cristyda16f162011-02-19 23:52:17 +000020960if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020961 ac_have_decl=1
20962else
20963 ac_have_decl=0
20964fi
20965
20966cat >>confdefs.h <<_ACEOF
20967#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20968_ACEOF
20969
20970 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20971 ;;
20972esac
20973
20974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20975$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020976if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020977 $as_echo_n "(cached) " >&6
20978else
20979 ac_check_lib_save_LIBS=$LIBS
20980LIBS="-ldld $LIBS"
20981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20982/* end confdefs.h. */
20983
20984/* Override any GCC internal prototype to avoid an error.
20985 Use char because int might match the return type of a GCC
20986 builtin and then its argument prototype would still apply. */
20987#ifdef __cplusplus
20988extern "C"
20989#endif
20990char dld_link ();
20991int
20992main ()
20993{
20994return dld_link ();
20995 ;
20996 return 0;
20997}
20998_ACEOF
20999if ac_fn_c_try_link "$LINENO"; then :
21000 ac_cv_lib_dld_dld_link=yes
21001else
21002 ac_cv_lib_dld_dld_link=no
21003fi
21004rm -f core conftest.err conftest.$ac_objext \
21005 conftest$ac_exeext conftest.$ac_ext
21006LIBS=$ac_check_lib_save_LIBS
21007fi
21008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21009$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000021010if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021011
21012$as_echo "#define HAVE_DLD 1" >>confdefs.h
21013
21014 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
21015fi
21016
21017
21018
21019
21020LT_DLPREOPEN=
21021if test -n "$LT_DLLOADERS"
21022then
21023 for lt_loader in $LT_DLLOADERS; do
21024 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
21025 done
21026
21027$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
21028
21029fi
21030
21031
21032LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
21033
21034
21035ac_ext=c
21036ac_cpp='$CPP $CPPFLAGS'
21037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21039ac_compiler_gnu=$ac_cv_c_compiler_gnu
21040
21041
21042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
21043$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021044if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021045 $as_echo_n "(cached) " >&6
21046else
21047 lt_cv_sys_symbol_underscore=no
21048 cat > conftest.$ac_ext <<_LT_EOF
21049void nm_test_func(){}
21050int main(){nm_test_func;return 0;}
21051_LT_EOF
21052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21053 (eval $ac_compile) 2>&5
21054 ac_status=$?
21055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21056 test $ac_status = 0; }; then
21057 # Now try to grab the symbols.
21058 ac_nlist=conftest.nm
21059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
21060 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21061 ac_status=$?
21062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21063 test $ac_status = 0; } && test -s "$ac_nlist"; then
21064 # See whether the symbols have a leading underscore.
21065 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21066 lt_cv_sys_symbol_underscore=yes
21067 else
21068 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21069 :
21070 else
21071 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21072 fi
21073 fi
21074 else
21075 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21076 fi
21077 else
21078 echo "configure: failed program was:" >&5
21079 cat conftest.c >&5
21080 fi
21081 rm -rf conftest*
21082
21083fi
21084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
21085$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
21086 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
21087
21088
21089if test x"$lt_cv_sys_symbol_underscore" = xyes; then
21090 if test x"$libltdl_cv_func_dlopen" = xyes ||
21091 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
21093$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021094if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021095 $as_echo_n "(cached) " >&6
21096else
21097 libltdl_cv_need_uscore=unknown
21098 save_LIBS="$LIBS"
21099 LIBS="$LIBS $LIBADD_DLOPEN"
21100 if test "$cross_compiling" = yes; then :
21101 libltdl_cv_need_uscore=cross
21102else
21103 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21104 lt_status=$lt_dlunknown
21105 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000021106#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000021107#include "confdefs.h"
21108
21109#if HAVE_DLFCN_H
21110#include <dlfcn.h>
21111#endif
21112
21113#include <stdio.h>
21114
21115#ifdef RTLD_GLOBAL
21116# define LT_DLGLOBAL RTLD_GLOBAL
21117#else
21118# ifdef DL_GLOBAL
21119# define LT_DLGLOBAL DL_GLOBAL
21120# else
21121# define LT_DLGLOBAL 0
21122# endif
21123#endif
21124
21125/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21126 find out it does not work in some platform. */
21127#ifndef LT_DLLAZY_OR_NOW
21128# ifdef RTLD_LAZY
21129# define LT_DLLAZY_OR_NOW RTLD_LAZY
21130# else
21131# ifdef DL_LAZY
21132# define LT_DLLAZY_OR_NOW DL_LAZY
21133# else
21134# ifdef RTLD_NOW
21135# define LT_DLLAZY_OR_NOW RTLD_NOW
21136# else
21137# ifdef DL_NOW
21138# define LT_DLLAZY_OR_NOW DL_NOW
21139# else
21140# define LT_DLLAZY_OR_NOW 0
21141# endif
21142# endif
21143# endif
21144# endif
21145#endif
21146
cristy0c60a692010-11-04 01:09:47 +000021147/* When -fvisbility=hidden is used, assume the code has been annotated
21148 correspondingly for the symbols needed. */
21149#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000021150int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000021151#endif
21152
cristyda16f162011-02-19 23:52:17 +000021153int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000021154int main ()
21155{
21156 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21157 int status = $lt_dlunknown;
21158
21159 if (self)
21160 {
21161 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000021162 else
21163 {
21164 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21165 else puts (dlerror ());
21166 }
cristy73bd4a52010-10-05 11:24:23 +000021167 /* dlclose (self); */
21168 }
21169 else
21170 puts (dlerror ());
21171
21172 return status;
21173}
21174_LT_EOF
21175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21176 (eval $ac_link) 2>&5
21177 ac_status=$?
21178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21179 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21180 (./conftest; exit; ) >&5 2>/dev/null
21181 lt_status=$?
21182 case x$lt_status in
21183 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21184 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21185 x$lt_dlunknown|x*) ;;
21186 esac
21187 else :
21188 # compilation failed
21189
21190 fi
21191fi
21192rm -fr conftest*
21193
21194 LIBS="$save_LIBS"
21195
21196fi
21197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21198$as_echo "$libltdl_cv_need_uscore" >&6; }
21199 fi
21200fi
21201
21202if test x"$libltdl_cv_need_uscore" = xyes; then
21203
21204$as_echo "#define NEED_USCORE 1" >>confdefs.h
21205
21206fi
21207
21208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21209$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021210if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021211 $as_echo_n "(cached) " >&6
21212else
21213 # PORTME does your system automatically load deplibs for dlopen?
21214 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21215 # For now, we just catch OSes we know something about -- in the
21216 # future, we'll try test this programmatically.
21217 lt_cv_sys_dlopen_deplibs=unknown
21218 case $host_os in
21219 aix3*|aix4.1.*|aix4.2.*)
21220 # Unknown whether this is true for these versions of AIX, but
21221 # we want this `case' here to explicitly catch those versions.
21222 lt_cv_sys_dlopen_deplibs=unknown
21223 ;;
21224 aix[4-9]*)
21225 lt_cv_sys_dlopen_deplibs=yes
21226 ;;
21227 amigaos*)
21228 case $host_cpu in
21229 powerpc)
21230 lt_cv_sys_dlopen_deplibs=no
21231 ;;
21232 esac
21233 ;;
21234 darwin*)
21235 # Assuming the user has installed a libdl from somewhere, this is true
21236 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21237 lt_cv_sys_dlopen_deplibs=yes
21238 ;;
21239 freebsd* | dragonfly*)
21240 lt_cv_sys_dlopen_deplibs=yes
21241 ;;
cristy0c60a692010-11-04 01:09:47 +000021242 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000021243 # GNU and its variants, using gnu ld.so (Glibc)
21244 lt_cv_sys_dlopen_deplibs=yes
21245 ;;
21246 hpux10*|hpux11*)
21247 lt_cv_sys_dlopen_deplibs=yes
21248 ;;
21249 interix*)
21250 lt_cv_sys_dlopen_deplibs=yes
21251 ;;
21252 irix[12345]*|irix6.[01]*)
21253 # Catch all versions of IRIX before 6.2, and indicate that we don't
21254 # know how it worked for any of those versions.
21255 lt_cv_sys_dlopen_deplibs=unknown
21256 ;;
21257 irix*)
21258 # The case above catches anything before 6.2, and it's known that
21259 # at 6.2 and later dlopen does load deplibs.
21260 lt_cv_sys_dlopen_deplibs=yes
21261 ;;
21262 netbsd*)
21263 lt_cv_sys_dlopen_deplibs=yes
21264 ;;
21265 openbsd*)
21266 lt_cv_sys_dlopen_deplibs=yes
21267 ;;
21268 osf[1234]*)
21269 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21270 # it did *not* use an RPATH in a shared library to find objects the
21271 # library depends on, so we explicitly say `no'.
21272 lt_cv_sys_dlopen_deplibs=no
21273 ;;
21274 osf5.0|osf5.0a|osf5.1)
21275 # dlopen *does* load deplibs and with the right loader patch applied
21276 # it even uses RPATH in a shared library to search for shared objects
21277 # that the library depends on, but there's no easy way to know if that
21278 # patch is installed. Since this is the case, all we can really
21279 # say is unknown -- it depends on the patch being installed. If
21280 # it is, this changes to `yes'. Without it, it would be `no'.
21281 lt_cv_sys_dlopen_deplibs=unknown
21282 ;;
21283 osf*)
21284 # the two cases above should catch all versions of osf <= 5.1. Read
21285 # the comments above for what we know about them.
21286 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21287 # is used to find them so we can finally say `yes'.
21288 lt_cv_sys_dlopen_deplibs=yes
21289 ;;
21290 qnx*)
21291 lt_cv_sys_dlopen_deplibs=yes
21292 ;;
21293 solaris*)
21294 lt_cv_sys_dlopen_deplibs=yes
21295 ;;
21296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21297 libltdl_cv_sys_dlopen_deplibs=yes
21298 ;;
21299 esac
21300
21301fi
21302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21303$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21304if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21305
21306$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21307
21308fi
21309
21310:
21311
21312for ac_header in argz.h
21313do :
21314 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21315"
cristyda16f162011-02-19 23:52:17 +000021316if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021317 cat >>confdefs.h <<_ACEOF
21318#define HAVE_ARGZ_H 1
21319_ACEOF
21320
21321fi
21322
21323done
21324
21325
21326ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21327# include <argz.h>
21328#endif
21329"
cristyda16f162011-02-19 23:52:17 +000021330if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021331
21332cat >>confdefs.h <<_ACEOF
21333#define HAVE_ERROR_T 1
21334_ACEOF
21335
21336
21337else
21338
21339$as_echo "#define error_t int" >>confdefs.h
21340
21341
21342$as_echo "#define __error_t_defined 1" >>confdefs.h
21343
21344fi
21345
21346
21347ARGZ_H=
21348for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21349 argz_next argz_stringify
21350do :
21351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21352ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021353if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021354 cat >>confdefs.h <<_ACEOF
21355#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21356_ACEOF
21357
21358else
21359 ARGZ_H=argz.h;
21360
21361 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21362
21363fi
21364done
21365
21366
21367if test -z "$ARGZ_H"; then :
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21369$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021370if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021371 $as_echo_n "(cached) " >&6
21372else
21373 case $host_os in #(
21374 *cygwin*)
21375 lt_cv_sys_argz_works=no
21376 if test "$cross_compiling" != no; then
21377 lt_cv_sys_argz_works="guessing no"
21378 else
21379 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21380 save_IFS=$IFS
21381 IFS=-.
21382 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21383 IFS=$save_IFS
21384 lt_os_major=${2-0}
21385 lt_os_minor=${3-0}
21386 lt_os_micro=${4-0}
21387 if test "$lt_os_major" -gt 1 \
21388 || { test "$lt_os_major" -eq 1 \
21389 && { test "$lt_os_minor" -gt 5 \
21390 || { test "$lt_os_minor" -eq 5 \
21391 && test "$lt_os_micro" -gt 24; }; }; }; then
21392 lt_cv_sys_argz_works=yes
21393 fi
21394 fi
21395 ;; #(
21396 *) lt_cv_sys_argz_works=yes ;;
21397 esac
21398fi
21399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21400$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000021401 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000021402
21403$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21404
21405else
21406 ARGZ_H=argz.h
21407
21408
21409 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21410
21411fi
21412fi
21413
21414
21415
21416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21417$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021418if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021419 $as_echo_n "(cached) " >&6
21420else
21421 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21422 libltdl_cv_preloaded_symbols=yes
21423 else
21424 libltdl_cv_preloaded_symbols=no
21425 fi
21426
21427fi
21428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21429$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21430if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21431
21432$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21433
21434fi
21435
21436# Set options
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448# Check whether --with-included_ltdl was given.
21449if test "${with_included_ltdl+set}" = set; then :
21450 withval=$with_included_ltdl;
21451fi
21452
21453
21454if test "x$with_included_ltdl" != xyes; then
21455 # We are not being forced to use the included libltdl sources, so
21456 # decide whether there is a useful installed version we can use.
21457 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21458
21459"
cristyda16f162011-02-19 23:52:17 +000021460if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021461 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21462 #include <ltdl.h>
21463"
cristyda16f162011-02-19 23:52:17 +000021464if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21466$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021467if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021468 $as_echo_n "(cached) " >&6
21469else
21470 ac_check_lib_save_LIBS=$LIBS
21471LIBS="-lltdl $LIBS"
21472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21473/* end confdefs.h. */
21474
21475/* Override any GCC internal prototype to avoid an error.
21476 Use char because int might match the return type of a GCC
21477 builtin and then its argument prototype would still apply. */
21478#ifdef __cplusplus
21479extern "C"
21480#endif
21481char lt_dladvise_preload ();
21482int
21483main ()
21484{
21485return lt_dladvise_preload ();
21486 ;
21487 return 0;
21488}
21489_ACEOF
21490if ac_fn_c_try_link "$LINENO"; then :
21491 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21492else
21493 ac_cv_lib_ltdl_lt_dladvise_preload=no
21494fi
21495rm -f core conftest.err conftest.$ac_objext \
21496 conftest$ac_exeext conftest.$ac_ext
21497LIBS=$ac_check_lib_save_LIBS
21498fi
21499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21500$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000021501if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021502 with_included_ltdl=no
21503else
21504 with_included_ltdl=yes
21505fi
21506
21507else
21508 with_included_ltdl=yes
21509fi
21510
21511else
21512 with_included_ltdl=yes
21513fi
21514
21515
21516fi
21517
21518
21519
21520
21521# Check whether --with-ltdl_include was given.
21522if test "${with_ltdl_include+set}" = set; then :
21523 withval=$with_ltdl_include;
21524fi
21525
21526
21527if test -n "$with_ltdl_include"; then
21528 if test -f "$with_ltdl_include/ltdl.h"; then :
21529 else
cristy98dddb52010-11-04 00:30:15 +000021530 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021531 fi
21532else
21533 with_ltdl_include=no
21534fi
21535
21536
21537# Check whether --with-ltdl_lib was given.
21538if test "${with_ltdl_lib+set}" = set; then :
21539 withval=$with_ltdl_lib;
21540fi
21541
21542
21543if test -n "$with_ltdl_lib"; then
21544 if test -f "$with_ltdl_lib/libltdl.la"; then :
21545 else
cristy98dddb52010-11-04 00:30:15 +000021546 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021547 fi
21548else
21549 with_ltdl_lib=no
21550fi
21551
21552case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21553 ,yes,no,no,)
cristy13d4e2f2012-10-15 19:11:23 +000021554 case $enable_ltdl_convenience in
21555 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
21556 "") enable_ltdl_convenience=yes
21557 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
cristy73bd4a52010-10-05 11:24:23 +000021558esac
cristy13d4e2f2012-10-15 19:11:23 +000021559LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21560LTDLDEPS=$LIBLTDL
21561LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
cristy73bd4a52010-10-05 11:24:23 +000021562
21563
21564
21565
21566
21567# For backwards non-gettext consistent compatibility...
21568INCLTDL="$LTDLINCL"
21569
21570
21571 ;;
21572 ,no,no,no,)
21573 # If the included ltdl is not to be used, then use the
21574 # preinstalled libltdl we found.
21575
21576$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21577
21578 LIBLTDL=-lltdl
21579 LTDLDEPS=
21580 LTDLINCL=
21581 ;;
21582 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021583 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021584 ;;
21585 *) with_included_ltdl=no
21586 LIBLTDL="-L$with_ltdl_lib -lltdl"
21587 LTDLDEPS=
21588 LTDLINCL="-I$with_ltdl_include"
21589 ;;
21590esac
21591INCLTDL="$LTDLINCL"
21592
21593# Report our decision...
21594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21595$as_echo_n "checking where to find libltdl headers... " >&6; }
21596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21597$as_echo "$LTDLINCL" >&6; }
21598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21599$as_echo_n "checking where to find libltdl library... " >&6; }
21600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21601$as_echo "$LIBLTDL" >&6; }
21602
21603
21604
21605# Check whether --enable-ltdl-install was given.
21606if test "${enable_ltdl_install+set}" = set; then :
21607 enableval=$enable_ltdl_install;
21608fi
21609
21610
21611case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21612 *yes*) ;;
21613 *) enable_ltdl_convenience=yes ;;
21614esac
21615
21616 if test x"${enable_ltdl_install-no}" != xno; then
21617 INSTALL_LTDL_TRUE=
21618 INSTALL_LTDL_FALSE='#'
21619else
21620 INSTALL_LTDL_TRUE='#'
21621 INSTALL_LTDL_FALSE=
21622fi
21623
21624 if test x"${enable_ltdl_convenience-no}" != xno; then
21625 CONVENIENCE_LTDL_TRUE=
21626 CONVENIENCE_LTDL_FALSE='#'
21627else
21628 CONVENIENCE_LTDL_TRUE='#'
21629 CONVENIENCE_LTDL_FALSE=
21630fi
21631
21632
21633
21634
21635
21636
cristy73bd4a52010-10-05 11:24:23 +000021637# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21638# the user used. This is so that ltdl.h can pick up the parent projects
21639# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21640# definitions required by ltdl.c.
21641# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21642
21643
21644
21645for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21646do :
21647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21648ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21649"
cristy98dddb52010-11-04 00:30:15 +000021650if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021651 cat >>confdefs.h <<_ACEOF
21652#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21653_ACEOF
21654
21655fi
21656
21657done
21658
21659
21660for ac_func in closedir opendir readdir
21661do :
21662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21663ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021664if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021665 cat >>confdefs.h <<_ACEOF
21666#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21667_ACEOF
21668
21669else
21670
21671
21672 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21673
21674fi
21675done
21676
21677for ac_func in strlcat strlcpy
21678do :
21679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21680ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021681if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021682 cat >>confdefs.h <<_ACEOF
21683#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21684_ACEOF
21685
21686else
21687
21688
21689 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21690
21691fi
21692done
21693
21694
21695
21696cat >>confdefs.h <<_ACEOF
21697#define LT_LIBEXT "$libext"
21698_ACEOF
21699
21700
cristyda16f162011-02-19 23:52:17 +000021701name=
21702eval "lt_libprefix=\"$libname_spec\""
21703
21704cat >>confdefs.h <<_ACEOF
21705#define LT_LIBPREFIX "$lt_libprefix"
21706_ACEOF
21707
21708
cristy73bd4a52010-10-05 11:24:23 +000021709name=ltdl
cristyda16f162011-02-19 23:52:17 +000021710eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021711
21712
21713
21714
21715
21716
21717
21718
21719# Only expand once:
21720
21721
cristy3ed852e2009-09-05 21:47:34 +000021722
21723# Check to see if building shared libraries
21724libtool_build_shared_libs='no'
21725if test "$enable_shared" = 'yes'; then
21726 libtool_build_shared_libs='yes'
21727fi
21728
21729# Check to see if building static libraries
21730libtool_build_static_libs='no'
21731if test "$enable_static" = 'yes'; then
21732 libtool_build_static_libs='yes'
21733fi
21734
cristy73bd4a52010-10-05 11:24:23 +000021735 if test "${libtool_build_shared_libs}" = 'yes'; then
21736 WITH_SHARED_LIBS_TRUE=
21737 WITH_SHARED_LIBS_FALSE='#'
21738else
21739 WITH_SHARED_LIBS_TRUE='#'
21740 WITH_SHARED_LIBS_FALSE=
21741fi
21742
cristy3ed852e2009-09-05 21:47:34 +000021743#
21744# Enable support for building loadable modules
21745#
cristy622d7272012-10-15 19:40:16 +000021746build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021747
21748# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021749if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021750 withval=$with_modules; with_modules=$withval
21751else
cristy5a1cefd2010-01-06 20:42:35 +000021752 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021753fi
21754
21755
21756# Only allow building loadable modules if we are building shared libraries
21757if test "$with_modules" != 'no' ; then
21758 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021759 { $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 +000021760$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021761 build_modules='no'
21762 else
21763 build_modules='yes'
21764 fi
cristy3ed852e2009-09-05 21:47:34 +000021765fi
cristyc6722092012-10-14 00:19:31 +000021766if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021767
cristy8b350f62009-11-15 23:12:43 +000021768$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021769
21770fi
cristyc6722092012-10-14 00:19:31 +000021771 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021772 WITH_MODULES_TRUE=
21773 WITH_MODULES_FALSE='#'
21774else
21775 WITH_MODULES_TRUE='#'
21776 WITH_MODULES_FALSE=
21777fi
21778
cristy3ed852e2009-09-05 21:47:34 +000021779
cristyc6722092012-10-14 00:19:31 +000021780# Only use/depend on libtdl if we are building modules.
cristy3ed852e2009-09-05 21:47:34 +000021781with_ltdl='no'
cristyc6722092012-10-14 00:19:31 +000021782if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021783 with_ltdl='yes'
21784fi
21785
cristy73bd4a52010-10-05 11:24:23 +000021786 if test "$with_ltdl" != 'no'; then
21787 WITH_LTDL_TRUE=
21788 WITH_LTDL_FALSE='#'
21789else
21790 WITH_LTDL_TRUE='#'
21791 WITH_LTDL_FALSE=
21792fi
21793
cristy3ed852e2009-09-05 21:47:34 +000021794if test "$with_ltdl" != 'no'; then
21795
cristy8b350f62009-11-15 23:12:43 +000021796$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021797
cristy3ed852e2009-09-05 21:47:34 +000021798fi
21799
21800# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021801# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021802# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021803if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021804 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21805else
21806 enable_delegate_build='no'
21807fi
21808
21809
21810# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021811if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021812 enableval=$enable_deprecated; enable_deprecated=$enableval
21813else
21814 enable_deprecated='no'
21815fi
21816
21817
21818if test "$enable_deprecated" = 'yes'; then
21819
cristy8b350f62009-11-15 23:12:43 +000021820$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021821
21822else
21823 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21824fi
21825
21826# Build a version of ImageMagick which operates uninstalled.
21827# Used to build distributions located via MAGICK_HOME / executable path
21828# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021829if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021830 enableval=$enable_installed; enable_installed=$enableval
21831else
21832 enable_installed='yes'
21833fi
21834
21835
21836if test "$enable_installed" = 'yes'; then
21837
cristy8b350f62009-11-15 23:12:43 +000021838$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021839
21840else
21841 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21842fi
21843
21844# Permit enciphering and deciphering image pixels.
21845# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021846if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021847 enableval=$enable_cipher; enable_cipher=$enableval
21848else
21849 enable_cipher='yes'
21850fi
21851
21852
21853if test "$enable_cipher" = 'yes'; then
21854
cristy8b350f62009-11-15 23:12:43 +000021855$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021856
21857fi
21858
cristy6e3607c2011-09-13 13:59:17 +000021859# Build a zero-configuration version of ImageMagick.
21860# Check whether --enable-zero-configuration was given.
21861if test "${enable_zero_configuration+set}" = set; then :
21862 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021863else
cristy6e3607c2011-09-13 13:59:17 +000021864 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021865fi
21866
21867
cristy6e3607c2011-09-13 13:59:17 +000021868if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021869
cristy6e3607c2011-09-13 13:59:17 +000021870$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021871
cristy81af5702011-09-13 14:20:58 +000021872 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021873fi
21874
21875# Build a high dynamic range version of ImageMagick.
21876# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021877if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021878 enableval=$enable_hdri; enable_hdri=$enableval
21879else
cristy191c0b72012-08-12 16:29:52 +000021880 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021881fi
21882
21883
21884MAGICK_HDRI=""
21885if test "$enable_hdri" = 'yes'; then
21886 MAGICK_HDRI="HDRI"
21887
cristy8b350f62009-11-15 23:12:43 +000021888$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021889
cristyfd9dcd42010-08-08 18:07:02 +000021890 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021891fi
21892
cristy3ed852e2009-09-05 21:47:34 +000021893# Build a version of ImageMagick with assert statements.
21894# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021895if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021896 enableval=$enable_assert; enable_assert=$enableval
21897else
21898 enable_assert='yes'
21899fi
21900
21901
21902if test "$enable_assert" = 'no'; then
21903
cristy8b350f62009-11-15 23:12:43 +000021904$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021905
21906fi
21907
cristya448bd22011-10-14 12:38:13 +000021908# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021909
21910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21911$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21912 # Check whether --enable-maintainer-mode was given.
21913if test "${enable_maintainer_mode+set}" = set; then :
21914 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21915else
21916 USE_MAINTAINER_MODE=no
21917fi
21918
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21920$as_echo "$USE_MAINTAINER_MODE" >&6; }
21921 if test $USE_MAINTAINER_MODE = yes; then
21922 MAINTAINER_MODE_TRUE=
21923 MAINTAINER_MODE_FALSE='#'
21924else
21925 MAINTAINER_MODE_TRUE='#'
21926 MAINTAINER_MODE_FALSE=
21927fi
21928
21929 MAINT=$MAINTAINER_MODE_TRUE
21930
21931
cristy3ed852e2009-09-05 21:47:34 +000021932
cristy3ed852e2009-09-05 21:47:34 +000021933# Enable ccmalloc memory debugging support
21934# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021935if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021936 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21937else
21938 enable_ccmalloc='no'
21939fi
21940
21941
21942# Enable Electric Fence memory debugging support
21943# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021944if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021945 enableval=$enable_efence; enable_efence=$enableval
21946else
21947 enable_efence='no'
21948fi
21949
21950
21951# Enable prof-based profiling support
21952# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021953if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021954 enableval=$enable_prof; enable_prof=$enableval
21955else
21956 enable_prof='no'
21957fi
21958
21959
21960# Enable gprof-based profiling support
21961# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021962if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021963 enableval=$enable_gprof; enable_gprof=$enableval
21964else
21965 enable_gprof='no'
21966fi
21967
21968
21969# Enable gcov-based profiling support
21970# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021971if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021972 enableval=$enable_gcov; enable_gcov=$enableval
21973else
21974 enable_gcov='no'
21975fi
21976
21977
21978enable_profiling='no'
21979if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21980 enable_profiling='yes'
21981 if test "$libtool_build_shared_libs" = 'yes'; then
21982 echo "Warning: Can not profile code using shared libraries"
21983 fi
21984fi
21985
21986# Magick API method prefix
21987
21988# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021989if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021990 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021991else
cristyfc3d0222012-02-07 15:05:57 +000021992 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021993fi
21994
21995
cristyfc3d0222012-02-07 15:05:57 +000021996if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021997
21998cat >>confdefs.h <<_ACEOF
21999#define NAMESPACE_PREFIX $with_method_prefix
22000_ACEOF
22001
cristyfc3d0222012-02-07 15:05:57 +000022002 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000022003fi
22004
cristy71d8c202012-03-20 17:05:01 +000022005# Enable legacy support (default no)
22006# Check whether --enable-legacy-support was given.
22007if test "${enable_legacy_support+set}" = set; then :
22008 enableval=$enable_legacy_support; with_legacy_support=$enableval
22009else
22010 with_legacy_support='no'
22011fi
22012
22013 if test "$with_legacy_support" != 'no'; then
22014 LEGACY_SUPPORT_TRUE=
22015 LEGACY_SUPPORT_FALSE='#'
22016else
22017 LEGACY_SUPPORT_TRUE='#'
22018 LEGACY_SUPPORT_FALSE=
22019fi
22020
22021
cristy3ed852e2009-09-05 21:47:34 +000022022# Number of bits in a Quantum
22023
22024# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000022025if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022026 withval=$with_quantum_depth; with_quantum_depth=$withval
22027else
22028 with_quantum_depth=16
22029fi
22030
22031
22032if test "$with_quantum_depth" != '8'; then
22033 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22034fi
22035
22036case "${with_quantum_depth}" in
22037 8 ) ;;
22038 16 ) ;;
22039 32 ) ;;
22040 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000022041 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022042esac
22043QUANTUM_DEPTH="$with_quantum_depth"
22044
22045cat >>confdefs.h <<_ACEOF
22046#define QUANTUM_DEPTH $QUANTUM_DEPTH
22047_ACEOF
22048
22049
22050# Set pixel cache threshold
22051
22052# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000022053if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022054 withval=$with_cache; with_cache=$withval
22055else
22056 with_cache=''
22057fi
22058
22059
22060if test "$with_cache" != ''; then
22061
22062cat >>confdefs.h <<_ACEOF
22063#define PixelCacheThreshold $with_cache
22064_ACEOF
22065
22066 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
22067fi
22068
22069# Disable/Enable support for full delegate paths
22070
22071# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000022072if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022073 withval=$with_frozenpaths; with_frozenpaths=$withval
22074else
22075 with_frozenpaths='no'
22076fi
22077
22078
22079# Enable build/install of Magick++
22080
22081# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000022082if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022083 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22084else
22085 with_magick_plus_plus='yes'
22086fi
22087
22088
cristy3a75f062012-09-08 23:29:40 +000022089# Encode the this name into the shared library.
22090
22091# Check whether --with-package-release-name was given.
22092if test "${with_package_release_name+set}" = set; then :
22093 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
22094fi
22095
22096
22097
cristy3ed852e2009-09-05 21:47:34 +000022098# Disable build/install of PerlMagick.
22099
22100# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000022101if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022102 withval=$with_perl; with_perl=$withval
22103else
cristyb5f4e2f2010-04-25 00:49:11 +000022104 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000022105fi
22106
22107
22108# Options to pass when configuring PerlMagick
22109
22110# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022111if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022112 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022113fi
22114
22115
cristy3ed852e2009-09-05 21:47:34 +000022116
22117# Enable umem, object-caching memory allocation library.
22118
22119# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022120if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022121 withval=$with_umem; with_umem=$withval
22122else
22123 with_umem='no'
22124fi
22125
22126if test "$with_umem" != 'yes' ; then
22127 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22128fi
22129
22130#
22131# Specify path to shared libstdc++ if not in normal location
22132#
22133
22134# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022135if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022136 withval=$with_libstdc; with_libstdc=$withval
22137else
22138 with_libstdc=''
22139fi
22140
22141
22142if test "$with_libstdc" != ''; then
22143 if test -d "$with_libstdc"; then
22144 LIBSTDCLDFLAGS="-L$with_libstdc"
22145 fi
22146fi
22147
22148
22149# Does gcc required -traditional?
22150if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022152$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022153if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022154 $as_echo_n "(cached) " >&6
22155else
22156 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022158/* end confdefs.h. */
22159#include <sgtty.h>
22160Autoconf TIOCGETP
22161_ACEOF
22162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022163 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022164 ac_cv_prog_gcc_traditional=yes
22165else
22166 ac_cv_prog_gcc_traditional=no
22167fi
22168rm -f conftest*
22169
22170
22171 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022173/* end confdefs.h. */
22174#include <termio.h>
22175Autoconf TCGETA
22176_ACEOF
22177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022178 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022179 ac_cv_prog_gcc_traditional=yes
22180fi
22181rm -f conftest*
22182
22183 fi
22184fi
cristy8b350f62009-11-15 23:12:43 +000022185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022186$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22187 if test $ac_cv_prog_gcc_traditional = yes; then
22188 CC="$CC -traditional"
22189 fi
22190fi
22191
22192
22193########
22194#
22195# Set defines required to build DLLs and modules using MinGW
22196#
22197########
22198# These options are set for multi-thread DLL module build
22199# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22200# module: _DLL
22201# executable/Magick++: _DLL _MAGICKMOD_
22202MODULE_EXTRA_CPPFLAGS=''
22203LIBRARY_EXTRA_CPPFLAGS=''
22204if test "${native_win32_build}" = 'yes'; then
22205 if test "${libtool_build_shared_libs}" = 'yes'; then
22206 CPPFLAGS="$CPPFLAGS -D_DLL"
22207 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22208 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22209 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022210 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022211 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22212 else
22213 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22214 fi
22215 else
22216 CPPFLAGS="$CPPFLAGS -D_LIB"
22217 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22218 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22219 fi
22220 if test "$with_threads" = 'yes'; then
22221 CPPFLAGS="$CPPFLAGS -D_MT"
22222 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22223 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22224 fi
22225fi
22226
22227
22228
22229# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022231$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022232if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022233 $as_echo_n "(cached) " >&6
22234else
cristy8b350f62009-11-15 23:12:43 +000022235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022236/* end confdefs.h. */
22237#include <stdlib.h>
22238#include <stdarg.h>
22239#include <string.h>
22240#include <float.h>
22241
22242int
22243main ()
22244{
22245
22246 ;
22247 return 0;
22248}
22249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022250if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022251 ac_cv_header_stdc=yes
22252else
cristy8b350f62009-11-15 23:12:43 +000022253 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022254fi
cristy3ed852e2009-09-05 21:47:34 +000022255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22256
22257if test $ac_cv_header_stdc = yes; then
22258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022260/* end confdefs.h. */
22261#include <string.h>
22262
22263_ACEOF
22264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022265 $EGREP "memchr" >/dev/null 2>&1; then :
22266
cristy3ed852e2009-09-05 21:47:34 +000022267else
22268 ac_cv_header_stdc=no
22269fi
22270rm -f conftest*
22271
22272fi
22273
22274if test $ac_cv_header_stdc = yes; then
22275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022277/* end confdefs.h. */
22278#include <stdlib.h>
22279
22280_ACEOF
22281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022282 $EGREP "free" >/dev/null 2>&1; then :
22283
cristy3ed852e2009-09-05 21:47:34 +000022284else
22285 ac_cv_header_stdc=no
22286fi
22287rm -f conftest*
22288
22289fi
22290
22291if test $ac_cv_header_stdc = yes; then
22292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022293 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022294 :
22295else
cristy8b350f62009-11-15 23:12:43 +000022296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022297/* end confdefs.h. */
22298#include <ctype.h>
22299#include <stdlib.h>
22300#if ((' ' & 0x0FF) == 0x020)
22301# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22302# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22303#else
22304# define ISLOWER(c) \
22305 (('a' <= (c) && (c) <= 'i') \
22306 || ('j' <= (c) && (c) <= 'r') \
22307 || ('s' <= (c) && (c) <= 'z'))
22308# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22309#endif
22310
22311#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22312int
22313main ()
22314{
22315 int i;
22316 for (i = 0; i < 256; i++)
22317 if (XOR (islower (i), ISLOWER (i))
22318 || toupper (i) != TOUPPER (i))
22319 return 2;
22320 return 0;
22321}
22322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022323if ac_fn_c_try_run "$LINENO"; then :
22324
cristy3ed852e2009-09-05 21:47:34 +000022325else
cristy8b350f62009-11-15 23:12:43 +000022326 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022327fi
cristy8b350f62009-11-15 23:12:43 +000022328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22329 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022330fi
22331
cristy3ed852e2009-09-05 21:47:34 +000022332fi
22333fi
cristy8b350f62009-11-15 23:12:43 +000022334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022335$as_echo "$ac_cv_header_stdc" >&6; }
22336if test $ac_cv_header_stdc = yes; then
22337
cristy8b350f62009-11-15 23:12:43 +000022338$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022339
22340fi
22341
22342if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022343 { $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 +000022344 header files. Compilation cannot proceed. Please install the ANSI C
22345 headers and rerun this script." >&5
22346$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22347 header files. Compilation cannot proceed. Please install the ANSI C
22348 headers and rerun this script." >&2;};
22349fi
cristya0b81c32010-01-22 02:54:33 +000022350
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22352$as_echo_n "checking whether to enable assertions... " >&6; }
22353 # Check whether --enable-assert was given.
22354if test "${enable_assert+set}" = set; then :
22355 enableval=$enable_assert; ac_enable_assert=$enableval
22356 if test "x$enableval" = xno; then :
22357
22358$as_echo "#define NDEBUG 1" >>confdefs.h
22359
22360elif test "x$enableval" != xyes; then :
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22362$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22363 ac_enable_assert=yes
22364fi
22365else
22366 ac_enable_assert=yes
22367fi
22368
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22370$as_echo "$ac_enable_assert" >&6; }
22371
cristy3ed852e2009-09-05 21:47:34 +000022372ac_header_dirent=no
22373for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22374 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022376$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022377if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022378 $as_echo_n "(cached) " >&6
22379else
cristy8b350f62009-11-15 23:12:43 +000022380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022381/* end confdefs.h. */
22382#include <sys/types.h>
22383#include <$ac_hdr>
22384
22385int
22386main ()
22387{
22388if ((DIR *) 0)
22389return 0;
22390 ;
22391 return 0;
22392}
22393_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022394if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022395 eval "$as_ac_Header=yes"
22396else
cristy8b350f62009-11-15 23:12:43 +000022397 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022398fi
cristy3ed852e2009-09-05 21:47:34 +000022399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22400fi
cristy8b350f62009-11-15 23:12:43 +000022401eval ac_res=\$$as_ac_Header
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022403$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022404if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022405 cat >>confdefs.h <<_ACEOF
22406#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22407_ACEOF
22408
22409ac_header_dirent=$ac_hdr; break
22410fi
22411
22412done
22413# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22414if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022416$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022417if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022418 $as_echo_n "(cached) " >&6
22419else
22420 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022422/* end confdefs.h. */
22423
22424/* Override any GCC internal prototype to avoid an error.
22425 Use char because int might match the return type of a GCC
22426 builtin and then its argument prototype would still apply. */
22427#ifdef __cplusplus
22428extern "C"
22429#endif
22430char opendir ();
22431int
22432main ()
22433{
22434return opendir ();
22435 ;
22436 return 0;
22437}
22438_ACEOF
22439for ac_lib in '' dir; do
22440 if test -z "$ac_lib"; then
22441 ac_res="none required"
22442 else
22443 ac_res=-l$ac_lib
22444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22445 fi
cristy8b350f62009-11-15 23:12:43 +000022446 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022447 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022448fi
cristy8b350f62009-11-15 23:12:43 +000022449rm -f core conftest.err conftest.$ac_objext \
22450 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022451 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022452 break
22453fi
22454done
cristyda16f162011-02-19 23:52:17 +000022455if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022456
cristy3ed852e2009-09-05 21:47:34 +000022457else
22458 ac_cv_search_opendir=no
22459fi
22460rm conftest.$ac_ext
22461LIBS=$ac_func_search_save_LIBS
22462fi
cristy8b350f62009-11-15 23:12:43 +000022463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022464$as_echo "$ac_cv_search_opendir" >&6; }
22465ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022466if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22468
22469fi
22470
22471else
cristy8b350f62009-11-15 23:12:43 +000022472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022473$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022474if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022475 $as_echo_n "(cached) " >&6
22476else
22477 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022479/* end confdefs.h. */
22480
22481/* Override any GCC internal prototype to avoid an error.
22482 Use char because int might match the return type of a GCC
22483 builtin and then its argument prototype would still apply. */
22484#ifdef __cplusplus
22485extern "C"
22486#endif
22487char opendir ();
22488int
22489main ()
22490{
22491return opendir ();
22492 ;
22493 return 0;
22494}
22495_ACEOF
22496for ac_lib in '' x; do
22497 if test -z "$ac_lib"; then
22498 ac_res="none required"
22499 else
22500 ac_res=-l$ac_lib
22501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22502 fi
cristy8b350f62009-11-15 23:12:43 +000022503 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022504 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022505fi
cristy8b350f62009-11-15 23:12:43 +000022506rm -f core conftest.err conftest.$ac_objext \
22507 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022508 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022509 break
22510fi
22511done
cristyda16f162011-02-19 23:52:17 +000022512if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022513
cristy3ed852e2009-09-05 21:47:34 +000022514else
22515 ac_cv_search_opendir=no
22516fi
22517rm conftest.$ac_ext
22518LIBS=$ac_func_search_save_LIBS
22519fi
cristy8b350f62009-11-15 23:12:43 +000022520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022521$as_echo "$ac_cv_search_opendir" >&6; }
22522ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022523if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22525
22526fi
22527
22528fi
22529
22530
22531# Check additional headers
cristy58945e42012-09-04 14:33:54 +000022532for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.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 +000022533do :
22534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22535ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022536if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022537 cat >>confdefs.h <<_ACEOF
22538#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22539_ACEOF
22540
22541fi
22542
22543done
22544
22545
22546########
22547#
22548# Checks for typedefs, structures, and compiler characteristics.
22549#
22550########
22551
cristy8b350f62009-11-15 23:12:43 +000022552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022553$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022554if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022555 $as_echo_n "(cached) " >&6
22556else
cristy8b350f62009-11-15 23:12:43 +000022557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022558/* end confdefs.h. */
22559
cristy14fefe52012-05-21 00:59:18 +000022560 #include <stdbool.h>
22561 #ifndef bool
22562 "error: bool is not defined"
22563 #endif
22564 #ifndef false
22565 "error: false is not defined"
22566 #endif
22567 #if false
22568 "error: false is not 0"
22569 #endif
22570 #ifndef true
22571 "error: true is not defined"
22572 #endif
22573 #if true != 1
22574 "error: true is not 1"
22575 #endif
22576 #ifndef __bool_true_false_are_defined
22577 "error: __bool_true_false_are_defined is not defined"
22578 #endif
cristy3ed852e2009-09-05 21:47:34 +000022579
cristy14fefe52012-05-21 00:59:18 +000022580 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022581
cristy14fefe52012-05-21 00:59:18 +000022582 char a[true == 1 ? 1 : -1];
22583 char b[false == 0 ? 1 : -1];
22584 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22585 char d[(bool) 0.5 == true ? 1 : -1];
22586 /* See body of main program for 'e'. */
22587 char f[(_Bool) 0.0 == false ? 1 : -1];
22588 char g[true];
22589 char h[sizeof (_Bool)];
22590 char i[sizeof s.t];
22591 enum { j = false, k = true, l = false * true, m = true * 256 };
22592 /* The following fails for
22593 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22594 _Bool n[m];
22595 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22596 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22597 /* Catch a bug in an HP-UX C compiler. See
22598 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22599 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22600 */
22601 _Bool q = true;
22602 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022603
22604int
22605main ()
22606{
22607
cristy14fefe52012-05-21 00:59:18 +000022608 bool e = &s;
22609 *pq |= q;
22610 *pq |= ! q;
22611 /* Refer to every declared value, to avoid compiler optimizations. */
22612 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22613 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022614
22615 ;
22616 return 0;
22617}
22618_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022619if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022620 ac_cv_header_stdbool_h=yes
22621else
cristy8b350f62009-11-15 23:12:43 +000022622 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022623fi
cristy3ed852e2009-09-05 21:47:34 +000022624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22625fi
cristy8b350f62009-11-15 23:12:43 +000022626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022627$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022628 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022629if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022630
22631cat >>confdefs.h <<_ACEOF
22632#define HAVE__BOOL 1
22633_ACEOF
22634
22635
22636fi
22637
cristy14fefe52012-05-21 00:59:18 +000022638
cristy3ed852e2009-09-05 21:47:34 +000022639if test $ac_cv_header_stdbool_h = yes; then
22640
cristy8b350f62009-11-15 23:12:43 +000022641$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022642
22643fi
22644
cristy8b350f62009-11-15 23:12:43 +000022645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022646$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022647if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022648 $as_echo_n "(cached) " >&6
22649else
cristy8b350f62009-11-15 23:12:43 +000022650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022651/* end confdefs.h. */
22652
22653int
22654main ()
22655{
22656
22657volatile int x;
22658int * volatile y = (int *) 0;
22659return !x && !y;
22660 ;
22661 return 0;
22662}
22663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022664if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022665 ac_cv_c_volatile=yes
22666else
cristy8b350f62009-11-15 23:12:43 +000022667 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022668fi
cristy3ed852e2009-09-05 21:47:34 +000022669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22670fi
cristy8b350f62009-11-15 23:12:43 +000022671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022672$as_echo "$ac_cv_c_volatile" >&6; }
22673if test $ac_cv_c_volatile = no; then
22674
cristy8b350f62009-11-15 23:12:43 +000022675$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022676
22677fi
22678
cristy8b350f62009-11-15 23:12:43 +000022679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022680$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022681if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022682 $as_echo_n "(cached) " >&6
22683else
cristy8b350f62009-11-15 23:12:43 +000022684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022685/* end confdefs.h. */
22686#define x(y) #y
22687
22688char *s = x(teststring);
22689_ACEOF
22690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022691 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022692 ac_cv_c_stringize=no
22693else
22694 ac_cv_c_stringize=yes
22695fi
22696rm -f conftest*
22697
22698fi
cristy8b350f62009-11-15 23:12:43 +000022699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022700$as_echo "$ac_cv_c_stringize" >&6; }
22701if test $ac_cv_c_stringize = yes; then
22702
cristy8b350f62009-11-15 23:12:43 +000022703$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022704
22705fi
22706
cristy8b350f62009-11-15 23:12:43 +000022707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022708$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022709if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022710 $as_echo_n "(cached) " >&6
22711else
cristy8b350f62009-11-15 23:12:43 +000022712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022713/* end confdefs.h. */
22714#include <sys/types.h>
22715#include <sys/stat.h>
22716
22717#if defined S_ISBLK && defined S_IFDIR
22718extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22719#endif
22720
22721#if defined S_ISBLK && defined S_IFCHR
22722extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22723#endif
22724
22725#if defined S_ISLNK && defined S_IFREG
22726extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22727#endif
22728
22729#if defined S_ISSOCK && defined S_IFREG
22730extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22731#endif
22732
22733_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022734if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022735 ac_cv_header_stat_broken=no
22736else
cristy8b350f62009-11-15 23:12:43 +000022737 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022738fi
cristy3ed852e2009-09-05 21:47:34 +000022739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22740fi
cristy8b350f62009-11-15 23:12:43 +000022741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022742$as_echo "$ac_cv_header_stat_broken" >&6; }
22743if test $ac_cv_header_stat_broken = yes; then
22744
cristy8b350f62009-11-15 23:12:43 +000022745$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022746
22747fi
22748
cristy8b350f62009-11-15 23:12:43 +000022749{ $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 +000022750$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022751if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022752 $as_echo_n "(cached) " >&6
22753else
cristy8b350f62009-11-15 23:12:43 +000022754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022755/* end confdefs.h. */
22756#include <sys/types.h>
22757#include <sys/time.h>
22758#include <time.h>
22759
22760int
22761main ()
22762{
22763if ((struct tm *) 0)
22764return 0;
22765 ;
22766 return 0;
22767}
22768_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022769if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022770 ac_cv_header_time=yes
22771else
cristy8b350f62009-11-15 23:12:43 +000022772 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022773fi
cristy3ed852e2009-09-05 21:47:34 +000022774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22775fi
cristy8b350f62009-11-15 23:12:43 +000022776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022777$as_echo "$ac_cv_header_time" >&6; }
22778if test $ac_cv_header_time = yes; then
22779
cristy8b350f62009-11-15 23:12:43 +000022780$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022781
22782fi
22783
cristy8b350f62009-11-15 23:12:43 +000022784{ $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 +000022785$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022786if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022787 $as_echo_n "(cached) " >&6
22788else
cristy8b350f62009-11-15 23:12:43 +000022789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022790/* end confdefs.h. */
22791#include <sys/types.h>
22792#include <time.h>
22793
22794int
22795main ()
22796{
22797struct tm tm;
22798 int *p = &tm.tm_sec;
22799 return !p;
22800 ;
22801 return 0;
22802}
22803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022804if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022805 ac_cv_struct_tm=time.h
22806else
cristy8b350f62009-11-15 23:12:43 +000022807 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022808fi
cristy3ed852e2009-09-05 21:47:34 +000022809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22810fi
cristy8b350f62009-11-15 23:12:43 +000022811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022812$as_echo "$ac_cv_struct_tm" >&6; }
22813if test $ac_cv_struct_tm = sys/time.h; then
22814
cristy8b350f62009-11-15 23:12:43 +000022815$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022816
22817fi
22818
cristy92703d82010-04-26 00:18:18 +000022819ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22820#include <$ac_cv_struct_tm>
22821
22822"
cristyda16f162011-02-19 23:52:17 +000022823if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022824
22825cat >>confdefs.h <<_ACEOF
22826#define HAVE_STRUCT_TM_TM_ZONE 1
22827_ACEOF
22828
22829
22830fi
22831
22832if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22833
22834$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22835
22836else
22837 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22838"
cristyda16f162011-02-19 23:52:17 +000022839if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022840 ac_have_decl=1
22841else
22842 ac_have_decl=0
22843fi
22844
22845cat >>confdefs.h <<_ACEOF
22846#define HAVE_DECL_TZNAME $ac_have_decl
22847_ACEOF
22848
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22850$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022851if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022852 $as_echo_n "(cached) " >&6
22853else
22854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22855/* end confdefs.h. */
22856#include <time.h>
22857#if !HAVE_DECL_TZNAME
22858extern char *tzname[];
22859#endif
22860
22861int
22862main ()
22863{
22864return tzname[0][0];
22865 ;
22866 return 0;
22867}
22868_ACEOF
22869if ac_fn_c_try_link "$LINENO"; then :
22870 ac_cv_var_tzname=yes
22871else
22872 ac_cv_var_tzname=no
22873fi
22874rm -f core conftest.err conftest.$ac_objext \
22875 conftest$ac_exeext conftest.$ac_ext
22876fi
22877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22878$as_echo "$ac_cv_var_tzname" >&6; }
22879 if test $ac_cv_var_tzname = yes; then
22880
22881$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22882
22883 fi
22884fi
22885
cristy8b350f62009-11-15 23:12:43 +000022886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022887$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022888if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022889 $as_echo_n "(cached) " >&6
22890else
22891 echo '#! /bin/cat
22892exit 69
22893' >conftest
22894chmod u+x conftest
22895(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22896if test $? -ne 69; then
22897 ac_cv_sys_interpreter=yes
22898else
22899 ac_cv_sys_interpreter=no
22900fi
22901rm -f conftest
22902fi
cristy8b350f62009-11-15 23:12:43 +000022903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022904$as_echo "$ac_cv_sys_interpreter" >&6; }
22905interpval=$ac_cv_sys_interpreter
22906
22907
cristy3ed852e2009-09-05 21:47:34 +000022908# If the C compiler supports the keyword inline, do nothing. Otherwise
22909# define inline to __inline__ or __inline if it accepts one of those,
22910# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022912$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022913if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022914 $as_echo_n "(cached) " >&6
22915else
22916 ac_cv_c_inline=no
22917for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022919/* end confdefs.h. */
22920#ifndef __cplusplus
22921typedef int foo_t;
22922static $ac_kw foo_t static_foo () {return 0; }
22923$ac_kw foo_t foo () {return 0; }
22924#endif
22925
22926_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022927if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022928 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022929fi
cristy3ed852e2009-09-05 21:47:34 +000022930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22931 test "$ac_cv_c_inline" != no && break
22932done
22933
22934fi
cristy8b350f62009-11-15 23:12:43 +000022935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022936$as_echo "$ac_cv_c_inline" >&6; }
22937
cristy3ed852e2009-09-05 21:47:34 +000022938case $ac_cv_c_inline in
22939 inline | yes) ;;
22940 *)
22941 case $ac_cv_c_inline in
22942 no) ac_val=;;
22943 *) ac_val=$ac_cv_c_inline;;
22944 esac
22945 cat >>confdefs.h <<_ACEOF
22946#ifndef __cplusplus
22947#define inline $ac_val
22948#endif
22949_ACEOF
22950 ;;
22951esac
22952
22953
22954# If the C compiler supports the keyword restrict, do nothing. Otherwise
22955# define restrict to __restrict__ or __restrict if it accepts one of those,
22956# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022958$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022959if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022960 $as_echo_n "(cached) " >&6
22961else
22962 ac_cv_c_restrict=no
22963 # The order here caters to the fact that C++ does not require restrict.
22964 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022966/* end confdefs.h. */
22967typedef int * int_ptr;
22968 int foo (int_ptr $ac_kw ip) {
22969 return ip[0];
22970 }
22971int
22972main ()
22973{
22974int s[1];
22975 int * $ac_kw t = s;
22976 t[0] = 0;
22977 return foo(t)
22978 ;
22979 return 0;
22980}
22981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022982if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022983 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022984fi
cristy3ed852e2009-09-05 21:47:34 +000022985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22986 test "$ac_cv_c_restrict" != no && break
22987 done
22988
22989fi
cristy8b350f62009-11-15 23:12:43 +000022990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022991$as_echo "$ac_cv_c_restrict" >&6; }
22992
cristy3ed852e2009-09-05 21:47:34 +000022993 case $ac_cv_c_restrict in
22994 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022995 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022996 ;;
22997 *) cat >>confdefs.h <<_ACEOF
22998#define restrict $ac_cv_c_restrict
22999_ACEOF
23000 ;;
23001 esac
23002
23003
23004# If words are stored with the most significant byte first (like
23005# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000023006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023007$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023008if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023009 $as_echo_n "(cached) " >&6
23010else
23011 ac_cv_c_bigendian=unknown
23012 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000023013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023014/* end confdefs.h. */
23015#ifndef __APPLE_CC__
23016 not a universal capable compiler
23017 #endif
23018 typedef int dummy;
23019
23020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023021if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023022
23023 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000023024 # there are at least two -arch flags with different values.
23025 ac_arch=
23026 ac_prev=
23027 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23028 if test -n "$ac_prev"; then
23029 case $ac_word in
23030 i?86 | x86_64 | ppc | ppc64)
23031 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23032 ac_arch=$ac_word
23033 else
23034 ac_cv_c_bigendian=universal
23035 break
23036 fi
23037 ;;
23038 esac
23039 ac_prev=
23040 elif test "x$ac_word" = "x-arch"; then
23041 ac_prev=arch
23042 fi
23043 done
cristy3ed852e2009-09-05 21:47:34 +000023044fi
cristy3ed852e2009-09-05 21:47:34 +000023045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23046 if test $ac_cv_c_bigendian = unknown; then
23047 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023049/* end confdefs.h. */
23050#include <sys/types.h>
23051 #include <sys/param.h>
23052
23053int
23054main ()
23055{
23056#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23057 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23058 && LITTLE_ENDIAN)
23059 bogus endian macros
23060 #endif
23061
23062 ;
23063 return 0;
23064}
23065_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023066if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023067 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023069/* end confdefs.h. */
23070#include <sys/types.h>
23071 #include <sys/param.h>
23072
23073int
23074main ()
23075{
23076#if BYTE_ORDER != BIG_ENDIAN
23077 not big endian
23078 #endif
23079
23080 ;
23081 return 0;
23082}
23083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023084if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023085 ac_cv_c_bigendian=yes
23086else
cristy8b350f62009-11-15 23:12:43 +000023087 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023088fi
cristy3ed852e2009-09-05 21:47:34 +000023089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023090fi
cristy3ed852e2009-09-05 21:47:34 +000023091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23092 fi
23093 if test $ac_cv_c_bigendian = unknown; then
23094 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023096/* end confdefs.h. */
23097#include <limits.h>
23098
23099int
23100main ()
23101{
23102#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23103 bogus endian macros
23104 #endif
23105
23106 ;
23107 return 0;
23108}
23109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023110if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023111 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023113/* end confdefs.h. */
23114#include <limits.h>
23115
23116int
23117main ()
23118{
23119#ifndef _BIG_ENDIAN
23120 not big endian
23121 #endif
23122
23123 ;
23124 return 0;
23125}
23126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023127if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023128 ac_cv_c_bigendian=yes
23129else
cristy8b350f62009-11-15 23:12:43 +000023130 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023131fi
cristy3ed852e2009-09-05 21:47:34 +000023132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023133fi
cristy3ed852e2009-09-05 21:47:34 +000023134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23135 fi
23136 if test $ac_cv_c_bigendian = unknown; then
23137 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023138 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023139 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023141/* end confdefs.h. */
23142short int ascii_mm[] =
23143 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23144 short int ascii_ii[] =
23145 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23146 int use_ascii (int i) {
23147 return ascii_mm[i] + ascii_ii[i];
23148 }
23149 short int ebcdic_ii[] =
23150 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23151 short int ebcdic_mm[] =
23152 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23153 int use_ebcdic (int i) {
23154 return ebcdic_mm[i] + ebcdic_ii[i];
23155 }
23156 extern int foo;
23157
23158int
23159main ()
23160{
23161return use_ascii (foo) == use_ebcdic (foo);
23162 ;
23163 return 0;
23164}
23165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023166if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023167 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23168 ac_cv_c_bigendian=yes
23169 fi
23170 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23171 if test "$ac_cv_c_bigendian" = unknown; then
23172 ac_cv_c_bigendian=no
23173 else
23174 # finding both strings is unlikely to happen, but who knows?
23175 ac_cv_c_bigendian=unknown
23176 fi
23177 fi
cristy3ed852e2009-09-05 21:47:34 +000023178fi
cristy3ed852e2009-09-05 21:47:34 +000023179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23180else
cristy8b350f62009-11-15 23:12:43 +000023181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023182/* end confdefs.h. */
23183$ac_includes_default
23184int
23185main ()
23186{
23187
23188 /* Are we little or big endian? From Harbison&Steele. */
23189 union
23190 {
23191 long int l;
23192 char c[sizeof (long int)];
23193 } u;
23194 u.l = 1;
23195 return u.c[sizeof (long int) - 1] == 1;
23196
23197 ;
23198 return 0;
23199}
23200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023201if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023202 ac_cv_c_bigendian=no
23203else
cristy8b350f62009-11-15 23:12:43 +000023204 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023205fi
cristy8b350f62009-11-15 23:12:43 +000023206rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23207 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023208fi
23209
cristy3ed852e2009-09-05 21:47:34 +000023210 fi
23211fi
cristy8b350f62009-11-15 23:12:43 +000023212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023213$as_echo "$ac_cv_c_bigendian" >&6; }
23214 case $ac_cv_c_bigendian in #(
23215 yes)
cristy8b350f62009-11-15 23:12:43 +000023216 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023217;; #(
23218 no)
23219 ;; #(
23220 universal)
23221
cristy8b350f62009-11-15 23:12:43 +000023222$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023223
23224 ;; #(
23225 *)
cristy98dddb52010-11-04 00:30:15 +000023226 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023227 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023228 esac
23229
23230
cristy501c8042011-05-26 17:46:28 +000023231# Define to a suitable type, if standard headers do not define it.
23232ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23233case $ac_cv_c_int8_t in #(
23234 no|yes) ;; #(
23235 *)
cristy3ed852e2009-09-05 21:47:34 +000023236
23237cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023238#define int8_t $ac_cv_c_int8_t
23239_ACEOF
23240;;
23241esac
23242
23243ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23244case $ac_cv_c_int16_t in #(
23245 no|yes) ;; #(
23246 *)
23247
23248cat >>confdefs.h <<_ACEOF
23249#define int16_t $ac_cv_c_int16_t
23250_ACEOF
23251;;
23252esac
23253
23254ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23255case $ac_cv_c_int32_t in #(
23256 no|yes) ;; #(
23257 *)
23258
23259cat >>confdefs.h <<_ACEOF
23260#define int32_t $ac_cv_c_int32_t
23261_ACEOF
23262;;
23263esac
23264
23265ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23266case $ac_cv_c_int64_t in #(
23267 no|yes) ;; #(
23268 *)
23269
23270cat >>confdefs.h <<_ACEOF
23271#define int64_t $ac_cv_c_int64_t
23272_ACEOF
23273;;
23274esac
23275
23276
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23278$as_echo_n "checking for long long int... " >&6; }
23279if ${ac_cv_type_long_long_int+:} false; then :
23280 $as_echo_n "(cached) " >&6
23281else
23282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23283/* end confdefs.h. */
23284
23285 /* For now, do not test the preprocessor; as of 2007 there are too many
23286 implementations with broken preprocessors. Perhaps this can
23287 be revisited in 2012. In the meantime, code should not expect
23288 #if to work with literals wider than 32 bits. */
23289 /* Test literals. */
23290 long long int ll = 9223372036854775807ll;
23291 long long int nll = -9223372036854775807LL;
23292 unsigned long long int ull = 18446744073709551615ULL;
23293 /* Test constant expressions. */
23294 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23295 ? 1 : -1)];
23296 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23297 ? 1 : -1)];
23298 int i = 63;
23299int
23300main ()
23301{
23302/* Test availability of runtime routines for shift and division. */
23303 long long int llmax = 9223372036854775807ll;
23304 unsigned long long int ullmax = 18446744073709551615ull;
23305 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23306 | (llmax / ll) | (llmax % ll)
23307 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23308 | (ullmax / ull) | (ullmax % ull));
23309 ;
23310 return 0;
23311}
23312
23313_ACEOF
23314if ac_fn_c_try_link "$LINENO"; then :
23315 if test "$cross_compiling" = yes; then :
23316 ac_cv_type_long_long_int=yes
23317else
23318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23319/* end confdefs.h. */
23320#include <limits.h>
23321 #ifndef LLONG_MAX
23322 # define HALF \
23323 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23324 # define LLONG_MAX (HALF - 1 + HALF)
23325 #endif
23326int
23327main ()
23328{
23329long long int n = 1;
23330 int i;
23331 for (i = 0; ; i++)
23332 {
23333 long long int m = n << i;
23334 if (m >> i != n)
23335 return 1;
23336 if (LLONG_MAX / 2 < m)
23337 break;
23338 }
23339 return 0;
23340 ;
23341 return 0;
23342}
23343_ACEOF
23344if ac_fn_c_try_run "$LINENO"; then :
23345 ac_cv_type_long_long_int=yes
23346else
23347 ac_cv_type_long_long_int=no
23348fi
23349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23350 conftest.$ac_objext conftest.beam conftest.$ac_ext
23351fi
23352
23353else
23354 ac_cv_type_long_long_int=no
23355fi
23356rm -f core conftest.err conftest.$ac_objext \
23357 conftest$ac_exeext conftest.$ac_ext
23358fi
23359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23360$as_echo "$ac_cv_type_long_long_int" >&6; }
23361 if test $ac_cv_type_long_long_int = yes; then
23362
23363$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23364
23365 fi
23366
23367
23368
23369 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23370if test "x$ac_cv_type_intmax_t" = xyes; then :
23371
23372$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23373
23374else
23375 test $ac_cv_type_long_long_int = yes \
23376 && ac_type='long long int' \
23377 || ac_type='long int'
23378
23379cat >>confdefs.h <<_ACEOF
23380#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023381_ACEOF
23382
23383fi
23384
23385
cristy501c8042011-05-26 17:46:28 +000023386
23387 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23388if test "x$ac_cv_type_intptr_t" = xyes; then :
23389
23390$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023391
cristy3ed852e2009-09-05 21:47:34 +000023392else
cristy501c8042011-05-26 17:46:28 +000023393 for ac_type in 'int' 'long int' 'long long int'; do
23394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23395/* end confdefs.h. */
23396$ac_includes_default
23397int
23398main ()
23399{
23400static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023401test_array [0] = 0;
23402return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023403
23404 ;
23405 return 0;
23406}
23407_ACEOF
23408if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023409
23410cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023411#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023412_ACEOF
23413
cristy501c8042011-05-26 17:46:28 +000023414 ac_type=
23415fi
23416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417 test -z "$ac_type" && break
23418 done
cristy3ed852e2009-09-05 21:47:34 +000023419fi
23420
23421
cristy3ed852e2009-09-05 21:47:34 +000023422
cristy501c8042011-05-26 17:46:28 +000023423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23424$as_echo_n "checking for long double... " >&6; }
23425if ${ac_cv_type_long_double+:} false; then :
23426 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023427else
cristy501c8042011-05-26 17:46:28 +000023428 if test "$GCC" = yes; then
23429 ac_cv_type_long_double=yes
23430 else
23431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23432/* end confdefs.h. */
23433/* The Stardent Vistra knows sizeof (long double), but does
23434 not support it. */
23435 long double foo = 0.0L;
23436int
23437main ()
23438{
23439static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23440 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023441test_array [0] = 0;
23442return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023443
cristy501c8042011-05-26 17:46:28 +000023444 ;
23445 return 0;
23446}
cristy3ed852e2009-09-05 21:47:34 +000023447_ACEOF
cristy501c8042011-05-26 17:46:28 +000023448if ac_fn_c_try_compile "$LINENO"; then :
23449 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023450else
cristy501c8042011-05-26 17:46:28 +000023451 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023452fi
cristy501c8042011-05-26 17:46:28 +000023453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23454 fi
cristy3ed852e2009-09-05 21:47:34 +000023455fi
cristy501c8042011-05-26 17:46:28 +000023456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23457$as_echo "$ac_cv_type_long_double" >&6; }
23458 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023459
cristy501c8042011-05-26 17:46:28 +000023460$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023461
cristy501c8042011-05-26 17:46:28 +000023462 fi
23463
cristy3ed852e2009-09-05 21:47:34 +000023464
cristy8b350f62009-11-15 23:12:43 +000023465 { $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 +000023466$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023467if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023468 $as_echo_n "(cached) " >&6
23469else
cristy8b350f62009-11-15 23:12:43 +000023470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023471/* end confdefs.h. */
23472#include <float.h>
23473 long double const a[] =
23474 {
23475 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23476 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23477 };
23478 long double
23479 f (long double x)
23480 {
23481 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23482 + (x ? f (x) : 'c'));
23483 }
23484
23485int
23486main ()
23487{
23488static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23489 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23490 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23491 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23492 && (int) LDBL_EPSILON == 0
23493 )];
cristy14fefe52012-05-21 00:59:18 +000023494test_array [0] = 0;
23495return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023496
23497 ;
23498 return 0;
23499}
23500_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023501if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023502 ac_cv_type_long_double_wider=yes
23503else
cristy8b350f62009-11-15 23:12:43 +000023504 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023505fi
cristy3ed852e2009-09-05 21:47:34 +000023506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23507fi
cristy8b350f62009-11-15 23:12:43 +000023508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023509$as_echo "$ac_cv_type_long_double_wider" >&6; }
23510 if test $ac_cv_type_long_double_wider = yes; then
23511
cristy8b350f62009-11-15 23:12:43 +000023512$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023513
23514 fi
23515
23516
cristy501c8042011-05-26 17:46:28 +000023517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23518$as_echo_n "checking for long long int... " >&6; }
23519if ${ac_cv_type_long_long_int+:} false; then :
23520 $as_echo_n "(cached) " >&6
23521else
23522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23523/* end confdefs.h. */
23524
23525 /* For now, do not test the preprocessor; as of 2007 there are too many
23526 implementations with broken preprocessors. Perhaps this can
23527 be revisited in 2012. In the meantime, code should not expect
23528 #if to work with literals wider than 32 bits. */
23529 /* Test literals. */
23530 long long int ll = 9223372036854775807ll;
23531 long long int nll = -9223372036854775807LL;
23532 unsigned long long int ull = 18446744073709551615ULL;
23533 /* Test constant expressions. */
23534 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23535 ? 1 : -1)];
23536 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23537 ? 1 : -1)];
23538 int i = 63;
23539int
23540main ()
23541{
23542/* Test availability of runtime routines for shift and division. */
23543 long long int llmax = 9223372036854775807ll;
23544 unsigned long long int ullmax = 18446744073709551615ull;
23545 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23546 | (llmax / ll) | (llmax % ll)
23547 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23548 | (ullmax / ull) | (ullmax % ull));
23549 ;
23550 return 0;
23551}
23552
23553_ACEOF
23554if ac_fn_c_try_link "$LINENO"; then :
23555 if test "$cross_compiling" = yes; then :
23556 ac_cv_type_long_long_int=yes
23557else
23558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23559/* end confdefs.h. */
23560#include <limits.h>
23561 #ifndef LLONG_MAX
23562 # define HALF \
23563 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23564 # define LLONG_MAX (HALF - 1 + HALF)
23565 #endif
23566int
23567main ()
23568{
23569long long int n = 1;
23570 int i;
23571 for (i = 0; ; i++)
23572 {
23573 long long int m = n << i;
23574 if (m >> i != n)
23575 return 1;
23576 if (LLONG_MAX / 2 < m)
23577 break;
23578 }
23579 return 0;
23580 ;
23581 return 0;
23582}
23583_ACEOF
23584if ac_fn_c_try_run "$LINENO"; then :
23585 ac_cv_type_long_long_int=yes
23586else
23587 ac_cv_type_long_long_int=no
23588fi
23589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23590 conftest.$ac_objext conftest.beam conftest.$ac_ext
23591fi
23592
23593else
23594 ac_cv_type_long_long_int=no
23595fi
23596rm -f core conftest.err conftest.$ac_objext \
23597 conftest$ac_exeext conftest.$ac_ext
23598fi
23599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23600$as_echo "$ac_cv_type_long_long_int" >&6; }
23601 if test $ac_cv_type_long_long_int = yes; then
23602
23603$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23604
23605 fi
23606
23607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23608$as_echo_n "checking for mbstate_t... " >&6; }
23609if ${ac_cv_type_mbstate_t+:} false; then :
23610 $as_echo_n "(cached) " >&6
23611else
23612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23613/* end confdefs.h. */
23614$ac_includes_default
23615# include <wchar.h>
23616int
23617main ()
23618{
23619mbstate_t x; return sizeof x;
23620 ;
23621 return 0;
23622}
23623_ACEOF
23624if ac_fn_c_try_compile "$LINENO"; then :
23625 ac_cv_type_mbstate_t=yes
23626else
23627 ac_cv_type_mbstate_t=no
23628fi
23629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23630fi
23631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23632$as_echo "$ac_cv_type_mbstate_t" >&6; }
23633 if test $ac_cv_type_mbstate_t = yes; then
23634
23635$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23636
23637 else
23638
23639$as_echo "#define mbstate_t int" >>confdefs.h
23640
23641 fi
23642ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23643if test "x$ac_cv_type_mode_t" = xyes; then :
23644
23645else
23646
23647cat >>confdefs.h <<_ACEOF
23648#define mode_t int
23649_ACEOF
23650
23651fi
23652
23653ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23654if test "x$ac_cv_type_off_t" = xyes; then :
23655
23656else
23657
23658cat >>confdefs.h <<_ACEOF
23659#define off_t long int
23660_ACEOF
23661
23662fi
23663
23664ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23665if test "x$ac_cv_type_pid_t" = xyes; then :
23666
23667else
23668
23669cat >>confdefs.h <<_ACEOF
23670#define pid_t int
23671_ACEOF
23672
23673fi
23674
23675ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23676if test "x$ac_cv_type_size_t" = xyes; then :
23677
23678else
23679
23680cat >>confdefs.h <<_ACEOF
23681#define size_t unsigned int
23682_ACEOF
23683
23684fi
23685
23686ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23687if test "x$ac_cv_type_ssize_t" = xyes; then :
23688
23689else
23690
23691cat >>confdefs.h <<_ACEOF
23692#define ssize_t int
23693_ACEOF
23694
23695fi
23696
23697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23698$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23699if ${ac_cv_type_uid_t+:} false; then :
23700 $as_echo_n "(cached) " >&6
23701else
23702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23703/* end confdefs.h. */
23704#include <sys/types.h>
23705
23706_ACEOF
23707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23708 $EGREP "uid_t" >/dev/null 2>&1; then :
23709 ac_cv_type_uid_t=yes
23710else
23711 ac_cv_type_uid_t=no
23712fi
23713rm -f conftest*
23714
23715fi
23716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23717$as_echo "$ac_cv_type_uid_t" >&6; }
23718if test $ac_cv_type_uid_t = no; then
23719
23720$as_echo "#define uid_t int" >>confdefs.h
23721
23722
23723$as_echo "#define gid_t int" >>confdefs.h
23724
23725fi
23726
23727ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23728case $ac_cv_c_uint8_t in #(
23729 no|yes) ;; #(
23730 *)
23731
23732$as_echo "#define _UINT8_T 1" >>confdefs.h
23733
23734
23735cat >>confdefs.h <<_ACEOF
23736#define uint8_t $ac_cv_c_uint8_t
23737_ACEOF
23738;;
23739 esac
23740
23741ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23742case $ac_cv_c_uint16_t in #(
23743 no|yes) ;; #(
23744 *)
23745
23746
23747cat >>confdefs.h <<_ACEOF
23748#define uint16_t $ac_cv_c_uint16_t
23749_ACEOF
23750;;
23751 esac
23752
23753ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23754case $ac_cv_c_uint32_t in #(
23755 no|yes) ;; #(
23756 *)
23757
23758$as_echo "#define _UINT32_T 1" >>confdefs.h
23759
23760
23761cat >>confdefs.h <<_ACEOF
23762#define uint32_t $ac_cv_c_uint32_t
23763_ACEOF
23764;;
23765 esac
23766
23767ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23768case $ac_cv_c_uint64_t in #(
23769 no|yes) ;; #(
23770 *)
23771
23772$as_echo "#define _UINT64_T 1" >>confdefs.h
23773
23774
23775cat >>confdefs.h <<_ACEOF
23776#define uint64_t $ac_cv_c_uint64_t
23777_ACEOF
23778;;
23779 esac
23780
23781
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23783$as_echo_n "checking for unsigned long long int... " >&6; }
23784if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23785 $as_echo_n "(cached) " >&6
23786else
23787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23788/* end confdefs.h. */
23789
23790 /* For now, do not test the preprocessor; as of 2007 there are too many
23791 implementations with broken preprocessors. Perhaps this can
23792 be revisited in 2012. In the meantime, code should not expect
23793 #if to work with literals wider than 32 bits. */
23794 /* Test literals. */
23795 long long int ll = 9223372036854775807ll;
23796 long long int nll = -9223372036854775807LL;
23797 unsigned long long int ull = 18446744073709551615ULL;
23798 /* Test constant expressions. */
23799 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23800 ? 1 : -1)];
23801 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23802 ? 1 : -1)];
23803 int i = 63;
23804int
23805main ()
23806{
23807/* Test availability of runtime routines for shift and division. */
23808 long long int llmax = 9223372036854775807ll;
23809 unsigned long long int ullmax = 18446744073709551615ull;
23810 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23811 | (llmax / ll) | (llmax % ll)
23812 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23813 | (ullmax / ull) | (ullmax % ull));
23814 ;
23815 return 0;
23816}
23817
23818_ACEOF
23819if ac_fn_c_try_link "$LINENO"; then :
23820 ac_cv_type_unsigned_long_long_int=yes
23821else
23822 ac_cv_type_unsigned_long_long_int=no
23823fi
23824rm -f core conftest.err conftest.$ac_objext \
23825 conftest$ac_exeext conftest.$ac_ext
23826fi
23827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23828$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23829 if test $ac_cv_type_unsigned_long_long_int = yes; then
23830
23831$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23832
23833 fi
23834
23835
23836
23837 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23838if test "x$ac_cv_type_uintmax_t" = xyes; then :
23839
23840$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23841
23842else
23843 test $ac_cv_type_unsigned_long_long_int = yes \
23844 && ac_type='unsigned long long int' \
23845 || ac_type='unsigned long int'
23846
23847cat >>confdefs.h <<_ACEOF
23848#define uintmax_t $ac_type
23849_ACEOF
23850
23851fi
23852
23853
23854
23855 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23856if test "x$ac_cv_type_uintptr_t" = xyes; then :
23857
23858$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23859
23860else
23861 for ac_type in 'unsigned int' 'unsigned long int' \
23862 'unsigned long long int'; do
23863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23864/* end confdefs.h. */
23865$ac_includes_default
23866int
23867main ()
23868{
23869static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023870test_array [0] = 0;
23871return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023872
23873 ;
23874 return 0;
23875}
23876_ACEOF
23877if ac_fn_c_try_compile "$LINENO"; then :
23878
23879cat >>confdefs.h <<_ACEOF
23880#define uintptr_t $ac_type
23881_ACEOF
23882
23883 ac_type=
23884fi
23885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23886 test -z "$ac_type" && break
23887 done
23888fi
23889
23890
23891
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23893$as_echo_n "checking for unsigned long long int... " >&6; }
23894if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23895 $as_echo_n "(cached) " >&6
23896else
23897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23898/* end confdefs.h. */
23899
23900 /* For now, do not test the preprocessor; as of 2007 there are too many
23901 implementations with broken preprocessors. Perhaps this can
23902 be revisited in 2012. In the meantime, code should not expect
23903 #if to work with literals wider than 32 bits. */
23904 /* Test literals. */
23905 long long int ll = 9223372036854775807ll;
23906 long long int nll = -9223372036854775807LL;
23907 unsigned long long int ull = 18446744073709551615ULL;
23908 /* Test constant expressions. */
23909 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23910 ? 1 : -1)];
23911 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23912 ? 1 : -1)];
23913 int i = 63;
23914int
23915main ()
23916{
23917/* Test availability of runtime routines for shift and division. */
23918 long long int llmax = 9223372036854775807ll;
23919 unsigned long long int ullmax = 18446744073709551615ull;
23920 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23921 | (llmax / ll) | (llmax % ll)
23922 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23923 | (ullmax / ull) | (ullmax % ull));
23924 ;
23925 return 0;
23926}
23927
23928_ACEOF
23929if ac_fn_c_try_link "$LINENO"; then :
23930 ac_cv_type_unsigned_long_long_int=yes
23931else
23932 ac_cv_type_unsigned_long_long_int=no
23933fi
23934rm -f core conftest.err conftest.$ac_objext \
23935 conftest$ac_exeext conftest.$ac_ext
23936fi
23937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23938$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23939 if test $ac_cv_type_unsigned_long_long_int = yes; then
23940
23941$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23942
23943 fi
23944
23945
cristy3ed852e2009-09-05 21:47:34 +000023946# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23947# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023949$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023950if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023951 $as_echo_n "(cached) " >&6
23952else
cristy8b350f62009-11-15 23:12:43 +000023953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023954/* end confdefs.h. */
23955$ac_includes_default
23956int
23957main ()
23958{
23959static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000023960test_array [0] = 0;
23961return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023962
23963 ;
23964 return 0;
23965}
23966_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023967if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023968 ac_cv_c_char_unsigned=no
23969else
cristy8b350f62009-11-15 23:12:43 +000023970 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023971fi
cristy3ed852e2009-09-05 21:47:34 +000023972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23973fi
cristy8b350f62009-11-15 23:12:43 +000023974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023975$as_echo "$ac_cv_c_char_unsigned" >&6; }
23976if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023977 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023978
23979fi
23980
23981
23982# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23983# The cast to long int works around a bug in the HP C Compiler
23984# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23985# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23986# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023988$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023989if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023990 $as_echo_n "(cached) " >&6
23991else
cristy8b350f62009-11-15 23:12:43 +000023992 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 +000023993
cristy3ed852e2009-09-05 21:47:34 +000023994else
cristy8b350f62009-11-15 23:12:43 +000023995 if test "$ac_cv_type_signed_short" = yes; then
23996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023998as_fn_error 77 "cannot compute sizeof (signed short)
23999See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024000 else
24001 ac_cv_sizeof_signed_short=0
24002 fi
24003fi
cristy8b350f62009-11-15 23:12:43 +000024004
cristy3ed852e2009-09-05 21:47:34 +000024005fi
cristy8b350f62009-11-15 23:12:43 +000024006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024007$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24008
24009
24010
24011cat >>confdefs.h <<_ACEOF
24012#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24013_ACEOF
24014
24015
24016
24017# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24018# The cast to long int works around a bug in the HP C Compiler
24019# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24020# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24021# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024023$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024024if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024025 $as_echo_n "(cached) " >&6
24026else
cristy8b350f62009-11-15 23:12:43 +000024027 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 +000024028
cristy3ed852e2009-09-05 21:47:34 +000024029else
cristy8b350f62009-11-15 23:12:43 +000024030 if test "$ac_cv_type_unsigned_short" = yes; then
24031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024033as_fn_error 77 "cannot compute sizeof (unsigned short)
24034See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024035 else
24036 ac_cv_sizeof_unsigned_short=0
24037 fi
24038fi
cristy8b350f62009-11-15 23:12:43 +000024039
cristy3ed852e2009-09-05 21:47:34 +000024040fi
cristy8b350f62009-11-15 23:12:43 +000024041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024042$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24043
24044
24045
24046cat >>confdefs.h <<_ACEOF
24047#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24048_ACEOF
24049
24050
24051
24052# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24053# The cast to long int works around a bug in the HP C Compiler
24054# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24055# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24056# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024058$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024059if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024060 $as_echo_n "(cached) " >&6
24061else
cristy8b350f62009-11-15 23:12:43 +000024062 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 +000024063
cristy3ed852e2009-09-05 21:47:34 +000024064else
cristy8b350f62009-11-15 23:12:43 +000024065 if test "$ac_cv_type_signed_int" = yes; then
24066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024068as_fn_error 77 "cannot compute sizeof (signed int)
24069See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024070 else
24071 ac_cv_sizeof_signed_int=0
24072 fi
24073fi
cristy8b350f62009-11-15 23:12:43 +000024074
cristy3ed852e2009-09-05 21:47:34 +000024075fi
cristy8b350f62009-11-15 23:12:43 +000024076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024077$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24078
24079
24080
24081cat >>confdefs.h <<_ACEOF
24082#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24083_ACEOF
24084
24085
24086
24087# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24088# The cast to long int works around a bug in the HP C Compiler
24089# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24090# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24091# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024093$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024094if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024095 $as_echo_n "(cached) " >&6
24096else
cristy8b350f62009-11-15 23:12:43 +000024097 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 +000024098
cristy3ed852e2009-09-05 21:47:34 +000024099else
cristy8b350f62009-11-15 23:12:43 +000024100 if test "$ac_cv_type_unsigned_int" = yes; then
24101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024103as_fn_error 77 "cannot compute sizeof (unsigned int)
24104See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024105 else
24106 ac_cv_sizeof_unsigned_int=0
24107 fi
24108fi
cristy8b350f62009-11-15 23:12:43 +000024109
cristy3ed852e2009-09-05 21:47:34 +000024110fi
cristy8b350f62009-11-15 23:12:43 +000024111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024112$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24113
24114
24115
24116cat >>confdefs.h <<_ACEOF
24117#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24118_ACEOF
24119
24120
24121
24122# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24123# The cast to long int works around a bug in the HP C Compiler
24124# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24125# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24126# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024128$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024129if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024130 $as_echo_n "(cached) " >&6
24131else
cristy8b350f62009-11-15 23:12:43 +000024132 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 +000024133
cristy3ed852e2009-09-05 21:47:34 +000024134else
cristy8b350f62009-11-15 23:12:43 +000024135 if test "$ac_cv_type_signed_long" = yes; then
24136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024138as_fn_error 77 "cannot compute sizeof (signed long)
24139See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024140 else
24141 ac_cv_sizeof_signed_long=0
24142 fi
24143fi
cristy8b350f62009-11-15 23:12:43 +000024144
cristy3ed852e2009-09-05 21:47:34 +000024145fi
cristy8b350f62009-11-15 23:12:43 +000024146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024147$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24148
24149
24150
24151cat >>confdefs.h <<_ACEOF
24152#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24153_ACEOF
24154
24155
24156
24157# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24158# The cast to long int works around a bug in the HP C Compiler
24159# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24160# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24161# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024163$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024164if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024165 $as_echo_n "(cached) " >&6
24166else
cristy8b350f62009-11-15 23:12:43 +000024167 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 +000024168
cristy3ed852e2009-09-05 21:47:34 +000024169else
cristy8b350f62009-11-15 23:12:43 +000024170 if test "$ac_cv_type_unsigned_long" = yes; then
24171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024173as_fn_error 77 "cannot compute sizeof (unsigned long)
24174See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024175 else
24176 ac_cv_sizeof_unsigned_long=0
24177 fi
24178fi
cristy8b350f62009-11-15 23:12:43 +000024179
cristy3ed852e2009-09-05 21:47:34 +000024180fi
cristy8b350f62009-11-15 23:12:43 +000024181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024182$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24183
24184
24185
24186cat >>confdefs.h <<_ACEOF
24187#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24188_ACEOF
24189
24190
24191
24192# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24193# 'signed long long' is not supported then the value defined is zero.
24194# The cast to long int works around a bug in the HP C Compiler
24195# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24196# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24197# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024199$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024200if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024201 $as_echo_n "(cached) " >&6
24202else
cristy8b350f62009-11-15 23:12:43 +000024203 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 +000024204
cristy3ed852e2009-09-05 21:47:34 +000024205else
cristy8b350f62009-11-15 23:12:43 +000024206 if test "$ac_cv_type_signed_long_long" = yes; then
24207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024209as_fn_error 77 "cannot compute sizeof (signed long long)
24210See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024211 else
24212 ac_cv_sizeof_signed_long_long=0
24213 fi
24214fi
cristy8b350f62009-11-15 23:12:43 +000024215
cristy3ed852e2009-09-05 21:47:34 +000024216fi
cristy8b350f62009-11-15 23:12:43 +000024217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024218$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24219
24220
24221
24222cat >>confdefs.h <<_ACEOF
24223#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24224_ACEOF
24225
24226
24227
24228# Obtain size of a 'unsigned long long' and define as
24229# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24230# supported then the value defined is zero.
24231# The cast to long int works around a bug in the HP C Compiler
24232# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24233# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24234# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024236$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024237if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024238 $as_echo_n "(cached) " >&6
24239else
cristy8b350f62009-11-15 23:12:43 +000024240 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 +000024241
cristy3ed852e2009-09-05 21:47:34 +000024242else
cristy8b350f62009-11-15 23:12:43 +000024243 if test "$ac_cv_type_unsigned_long_long" = yes; then
24244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024246as_fn_error 77 "cannot compute sizeof (unsigned long long)
24247See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024248 else
24249 ac_cv_sizeof_unsigned_long_long=0
24250 fi
24251fi
cristy8b350f62009-11-15 23:12:43 +000024252
cristy3ed852e2009-09-05 21:47:34 +000024253fi
cristy8b350f62009-11-15 23:12:43 +000024254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024255$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24256
24257
24258
24259cat >>confdefs.h <<_ACEOF
24260#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24261_ACEOF
24262
24263
24264
24265# Obtain size of off_t and define as SIZEOF_OFF_T
24266# The cast to long int works around a bug in the HP C Compiler
24267# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24268# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24269# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024271$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024272if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024273 $as_echo_n "(cached) " >&6
24274else
cristy8b350f62009-11-15 23:12:43 +000024275 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 +000024276
cristy3ed852e2009-09-05 21:47:34 +000024277else
cristy8b350f62009-11-15 23:12:43 +000024278 if test "$ac_cv_type_off_t" = yes; then
24279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024281as_fn_error 77 "cannot compute sizeof (off_t)
24282See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024283 else
24284 ac_cv_sizeof_off_t=0
24285 fi
24286fi
cristy8b350f62009-11-15 23:12:43 +000024287
cristy3ed852e2009-09-05 21:47:34 +000024288fi
cristy8b350f62009-11-15 23:12:43 +000024289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024290$as_echo "$ac_cv_sizeof_off_t" >&6; }
24291
24292
24293
24294cat >>confdefs.h <<_ACEOF
24295#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24296_ACEOF
24297
24298
24299
24300# Obtain size of size_t and define as SIZEOF_SIZE_T
24301# The cast to long int works around a bug in the HP C Compiler
24302# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24303# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24304# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024306$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024307if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024308 $as_echo_n "(cached) " >&6
24309else
cristy8b350f62009-11-15 23:12:43 +000024310 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 +000024311
cristy3ed852e2009-09-05 21:47:34 +000024312else
cristy8b350f62009-11-15 23:12:43 +000024313 if test "$ac_cv_type_size_t" = yes; then
24314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024316as_fn_error 77 "cannot compute sizeof (size_t)
24317See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024318 else
24319 ac_cv_sizeof_size_t=0
24320 fi
24321fi
cristy8b350f62009-11-15 23:12:43 +000024322
cristy3ed852e2009-09-05 21:47:34 +000024323fi
cristy8b350f62009-11-15 23:12:43 +000024324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024325$as_echo "$ac_cv_sizeof_size_t" >&6; }
24326
24327
24328
24329cat >>confdefs.h <<_ACEOF
24330#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24331_ACEOF
24332
24333
24334
cristy330e9352010-06-01 18:42:49 +000024335# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24336# The cast to long int works around a bug in the HP C Compiler
24337# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24338# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24339# This bug is HP SR number 8606223364.
24340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24341$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024342if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024343 $as_echo_n "(cached) " >&6
24344else
24345 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24346
24347else
24348 if test "$ac_cv_type_ssize_t" = yes; then
24349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024351as_fn_error 77 "cannot compute sizeof (ssize_t)
24352See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024353 else
24354 ac_cv_sizeof_ssize_t=0
24355 fi
24356fi
24357
24358fi
24359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24360$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24361
24362
24363
24364cat >>confdefs.h <<_ACEOF
24365#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24366_ACEOF
24367
24368
24369
cristy3ed852e2009-09-05 21:47:34 +000024370# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24371# The cast to long int works around a bug in the HP C Compiler
24372# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24373# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24374# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024376$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024377if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024378 $as_echo_n "(cached) " >&6
24379else
cristy8b350f62009-11-15 23:12:43 +000024380 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 +000024381
cristy3ed852e2009-09-05 21:47:34 +000024382else
cristy8b350f62009-11-15 23:12:43 +000024383 if test "$ac_cv_type_unsigned_intp" = yes; then
24384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024386as_fn_error 77 "cannot compute sizeof (unsigned int*)
24387See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024388 else
24389 ac_cv_sizeof_unsigned_intp=0
24390 fi
24391fi
cristy8b350f62009-11-15 23:12:43 +000024392
cristy3ed852e2009-09-05 21:47:34 +000024393fi
cristy8b350f62009-11-15 23:12:43 +000024394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024395$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24396
24397
24398
24399cat >>confdefs.h <<_ACEOF
24400#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24401_ACEOF
24402
24403
24404
24405#
24406# Compute sized types for current CPU and compiler options.
24407#
24408
cristy8b350f62009-11-15 23:12:43 +000024409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024410$as_echo_n "checking for signed 8-bit type... " >&6; }
24411INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024412{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24413$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024414
24415
cristy8b350f62009-11-15 23:12:43 +000024416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024417$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24418UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024419{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24420$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024421
24422
cristy8b350f62009-11-15 23:12:43 +000024423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024424$as_echo_n "checking for signed 16-bit type... " >&6; }
24425INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024426{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24427$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024428
24429
cristy8b350f62009-11-15 23:12:43 +000024430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024431$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24432UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024433{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24434$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024435
24436
cristy8b350f62009-11-15 23:12:43 +000024437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024438$as_echo_n "checking for signed 32-bit type... " >&6; }
24439INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024440INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024441if test $ac_cv_sizeof_signed_int -eq 4; then
24442 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024443 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024444elif test $ac_cv_sizeof_signed_long -eq 4; then
24445 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024446 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024447fi
cristy09b53e12011-10-14 12:47:22 +000024448{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24449$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024450
24451
cristy6d5e20f2011-04-25 13:48:54 +000024452
cristy8b350f62009-11-15 23:12:43 +000024453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024454$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24455UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024456UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024457if test $ac_cv_sizeof_unsigned_int -eq 4; then
24458 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024459 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024460elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24461 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024462 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024463fi
cristy09b53e12011-10-14 12:47:22 +000024464{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24465$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024466
24467
cristy6d5e20f2011-04-25 13:48:54 +000024468
cristy8b350f62009-11-15 23:12:43 +000024469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024470$as_echo_n "checking for signed 64-bit type... " >&6; }
24471INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024472INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024473if test $ac_cv_sizeof_signed_long -eq 8; then
24474 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024475 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024476elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24477 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024478 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024479fi
cristy3a99dcf2011-12-17 01:29:40 +000024480case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024481 mingw* )
24482 INT64_F='"I64"'
24483 ;;
24484esac
cristy09b53e12011-10-14 12:47:22 +000024485{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24486$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024487
24488
cristy6d5e20f2011-04-25 13:48:54 +000024489
cristy8b350f62009-11-15 23:12:43 +000024490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024491$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24492UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024493UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024494if test $ac_cv_sizeof_unsigned_long -eq 8; then
24495 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024496 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024497elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24498 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024499 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024500fi
cristy3a99dcf2011-12-17 01:29:40 +000024501case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024502 mingw* )
24503 UINT64_F='"I64"'
24504 ;;
24505esac
cristy09b53e12011-10-14 12:47:22 +000024506{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24507$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024508
24509
cristy6d5e20f2011-04-25 13:48:54 +000024510
cristy8b350f62009-11-15 23:12:43 +000024511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024512$as_echo_n "checking for unsigned maximum type... " >&6; }
24513UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024514UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024515if test "$UINT64_T" != 'none'; then
24516 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024517 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024518elif test "$UINT32_T" != 'none'; then
24519 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024520 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024521fi
cristy09b53e12011-10-14 12:47:22 +000024522{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24523$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024524
24525
cristy6d5e20f2011-04-25 13:48:54 +000024526
cristy8b350f62009-11-15 23:12:43 +000024527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024528$as_echo_n "checking for pointer difference type... " >&6; }
24529UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024530UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024531if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24532 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024533 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024534elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24535 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024536 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024537fi
cristy09b53e12011-10-14 12:47:22 +000024538{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24539$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024540
24541
cristy6d5e20f2011-04-25 13:48:54 +000024542
cristy8b350f62009-11-15 23:12:43 +000024543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024544$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024546/* end confdefs.h. */
24547
24548int
24549main ()
24550{
24551{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24552 ;
24553 return 0;
24554}
24555_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024556if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024557 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24558$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024559else
cristy09b53e12011-10-14 12:47:22 +000024560 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24561$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024563$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024565/* end confdefs.h. */
24566
24567int
24568main ()
24569{
24570{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24571 ;
24572 return 0;
24573}
24574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024575if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024576 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24577$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024578
cristy8b350f62009-11-15 23:12:43 +000024579$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024580
24581else
cristy09b53e12011-10-14 12:47:22 +000024582 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24583$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024584
cristy8b350f62009-11-15 23:12:43 +000024585$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024586
24587fi
cristy3ed852e2009-09-05 21:47:34 +000024588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24589fi
cristy3ed852e2009-09-05 21:47:34 +000024590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24591
24592########
24593#
24594# Check for functions
24595#
24596########
cristy73bd4a52010-10-05 11:24:23 +000024597for ac_header in stdlib.h unistd.h
24598do :
24599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24600ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024601if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024602 cat >>confdefs.h <<_ACEOF
24603#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24604_ACEOF
24605
24606fi
24607
24608done
24609
24610for ac_func in getpagesize
24611do :
24612 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024613if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024614 cat >>confdefs.h <<_ACEOF
24615#define HAVE_GETPAGESIZE 1
24616_ACEOF
24617
24618fi
24619done
24620
24621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24622$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024623if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024624 $as_echo_n "(cached) " >&6
24625else
24626 if test "$cross_compiling" = yes; then :
24627 magick_cv_func_mmap_fileio=no
24628else
24629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24630/* end confdefs.h. */
24631$ac_includes_default
24632/* malloc might have been renamed as rpl_malloc. */
24633#undef malloc
24634
24635/*
24636 This test is derived from GNU Autoconf's similar macro.
24637 The purpose of this test is to verify that files may be memory
24638 mapped, and that memory mapping and file I/O are coherent.
24639
24640 The test creates a test file, memory maps the file, updates
24641 the file using the memory map, and then reads the file using
24642 file I/O to verify that the file contains the updates.
24643*/
24644
24645#include <fcntl.h>
24646#include <sys/mman.h>
24647
24648#if !STDC_HEADERS && !HAVE_STDLIB_H
24649char *malloc ();
24650#endif
24651
24652/* This mess was copied from the GNU getpagesize.h. */
24653#if !HAVE_GETPAGESIZE
24654/* Assume that all systems that can run configure have sys/param.h. */
24655# if !HAVE_SYS_PARAM_H
24656# define HAVE_SYS_PARAM_H 1
24657# endif
24658
24659# ifdef _SC_PAGESIZE
24660# define getpagesize() sysconf(_SC_PAGESIZE)
24661# else /* no _SC_PAGESIZE */
24662# if HAVE_SYS_PARAM_H
24663# include <sys/param.h>
24664# ifdef EXEC_PAGESIZE
24665# define getpagesize() EXEC_PAGESIZE
24666# else /* no EXEC_PAGESIZE */
24667# ifdef NBPG
24668# define getpagesize() NBPG * CLSIZE
24669# ifndef CLSIZE
24670# define CLSIZE 1
24671# endif /* no CLSIZE */
24672# else /* no NBPG */
24673# ifdef NBPC
24674# define getpagesize() NBPC
24675# else /* no NBPC */
24676# ifdef PAGESIZE
24677# define getpagesize() PAGESIZE
24678# endif /* PAGESIZE */
24679# endif /* no NBPC */
24680# endif /* no NBPG */
24681# endif /* no EXEC_PAGESIZE */
24682# else /* no HAVE_SYS_PARAM_H */
24683# define getpagesize() 8192 /* punt totally */
24684# endif /* no HAVE_SYS_PARAM_H */
24685# endif /* no _SC_PAGESIZE */
24686
24687#endif /* no HAVE_GETPAGESIZE */
24688
24689int
24690main ()
24691{
24692 char *data, *data2, *data3;
24693 int i, pagesize;
24694 int fd;
24695
24696 pagesize = getpagesize ();
24697
24698 /* First, make a file with some known garbage in it. */
24699 data = (char *) malloc (pagesize);
24700 if (!data)
24701 exit (1);
24702 for (i = 0; i < pagesize; ++i)
24703 *(data + i) = rand ();
24704 umask (0);
24705 fd = creat ("conftest.mmap", 0600);
24706 if (fd < 0)
24707 exit (1);
24708 if (write (fd, data, pagesize) != pagesize)
24709 exit (1);
24710 close (fd);
24711
24712 /* Mmap the file as read/write/shared and verify that we see the
24713 same garbage. */
24714 fd = open ("conftest.mmap", O_RDWR);
24715 if (fd < 0)
24716 exit (1);
24717 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24718 if (data2 == 0)
24719 exit (1);
24720 for (i = 0; i < pagesize; ++i)
24721 if (*(data + i) != *(data2 + i))
24722 exit (1);
24723
24724 /* Finally, make sure that changes to the mapped area
24725 percolate back to the file as seen by read(). */
24726 for (i = 0; i < pagesize; ++i)
24727 *(data2 + i) = *(data2 + i) + 1;
24728 data3 = (char *) malloc (pagesize);
24729 if (!data3)
24730 exit (1);
24731 if (read (fd, data3, pagesize) != pagesize)
24732 exit (1);
24733 for (i = 0; i < pagesize; ++i)
24734 if (*(data2 + i) != *(data3 + i))
24735 exit (1);
24736 close (fd);
24737 exit (0);
24738}
24739_ACEOF
24740if ac_fn_c_try_run "$LINENO"; then :
24741 magick_cv_func_mmap_fileio=yes
24742else
24743 magick_cv_func_mmap_fileio=no
24744fi
24745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24746 conftest.$ac_objext conftest.beam conftest.$ac_ext
24747fi
24748
24749fi
24750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24751$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24752if test $magick_cv_func_mmap_fileio = yes; then
24753
24754$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24755
24756fi
24757rm -f conftest.mmap
24758
cristy8b350f62009-11-15 23:12:43 +000024759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024760$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024761if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024762 $as_echo_n "(cached) " >&6
24763else
cristy8b350f62009-11-15 23:12:43 +000024764 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024765 ac_cv_func_closedir_void=yes
24766else
cristy8b350f62009-11-15 23:12:43 +000024767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024768/* end confdefs.h. */
24769$ac_includes_default
24770#include <$ac_header_dirent>
24771#ifndef __cplusplus
24772int closedir ();
24773#endif
24774
24775int
24776main ()
24777{
24778return closedir (opendir (".")) != 0;
24779 ;
24780 return 0;
24781}
24782_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024783if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024784 ac_cv_func_closedir_void=no
24785else
cristy8b350f62009-11-15 23:12:43 +000024786 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024787fi
cristy8b350f62009-11-15 23:12:43 +000024788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24789 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024790fi
24791
cristy3ed852e2009-09-05 21:47:34 +000024792fi
cristy8b350f62009-11-15 23:12:43 +000024793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024794$as_echo "$ac_cv_func_closedir_void" >&6; }
24795if test $ac_cv_func_closedir_void = yes; then
24796
cristy8b350f62009-11-15 23:12:43 +000024797$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024798
24799fi
24800
cristycd4c5312009-11-22 01:19:08 +000024801
24802
24803
24804 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024805do :
24806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024807ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24808"
cristy98dddb52010-11-04 00:30:15 +000024809if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024810 cat >>confdefs.h <<_ACEOF
24811#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24812_ACEOF
24813
24814fi
24815
24816done
24817
cristycd4c5312009-11-22 01:19:08 +000024818
24819
24820
24821
24822
24823
24824
cristy3ed852e2009-09-05 21:47:34 +000024825for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024826do :
24827 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024828if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024829 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024830#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024831_ACEOF
24832
24833fi
24834done
24835
cristy8b350f62009-11-15 23:12:43 +000024836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024837$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024838if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024839 $as_echo_n "(cached) " >&6
24840else
cristy8b350f62009-11-15 23:12:43 +000024841 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024842 ac_cv_func_mmap_fixed_mapped=no
24843else
cristy8b350f62009-11-15 23:12:43 +000024844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024845/* end confdefs.h. */
24846$ac_includes_default
24847/* malloc might have been renamed as rpl_malloc. */
24848#undef malloc
24849
24850/* Thanks to Mike Haertel and Jim Avera for this test.
24851 Here is a matrix of mmap possibilities:
24852 mmap private not fixed
24853 mmap private fixed at somewhere currently unmapped
24854 mmap private fixed at somewhere already mapped
24855 mmap shared not fixed
24856 mmap shared fixed at somewhere currently unmapped
24857 mmap shared fixed at somewhere already mapped
24858 For private mappings, we should verify that changes cannot be read()
24859 back from the file, nor mmap's back from the file at a different
24860 address. (There have been systems where private was not correctly
24861 implemented like the infamous i386 svr4.0, and systems where the
24862 VM page cache was not coherent with the file system buffer cache
24863 like early versions of FreeBSD and possibly contemporary NetBSD.)
24864 For shared mappings, we should conversely verify that changes get
24865 propagated back to all the places they're supposed to be.
24866
24867 Grep wants private fixed already mapped.
24868 The main things grep needs to know about mmap are:
24869 * does it exist and is it safe to write into the mmap'd area
24870 * how to use it (BSD variants) */
24871
24872#include <fcntl.h>
24873#include <sys/mman.h>
24874
24875#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24876char *malloc ();
24877#endif
24878
24879/* This mess was copied from the GNU getpagesize.h. */
24880#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024881# ifdef _SC_PAGESIZE
24882# define getpagesize() sysconf(_SC_PAGESIZE)
24883# else /* no _SC_PAGESIZE */
24884# ifdef HAVE_SYS_PARAM_H
24885# include <sys/param.h>
24886# ifdef EXEC_PAGESIZE
24887# define getpagesize() EXEC_PAGESIZE
24888# else /* no EXEC_PAGESIZE */
24889# ifdef NBPG
24890# define getpagesize() NBPG * CLSIZE
24891# ifndef CLSIZE
24892# define CLSIZE 1
24893# endif /* no CLSIZE */
24894# else /* no NBPG */
24895# ifdef NBPC
24896# define getpagesize() NBPC
24897# else /* no NBPC */
24898# ifdef PAGESIZE
24899# define getpagesize() PAGESIZE
24900# endif /* PAGESIZE */
24901# endif /* no NBPC */
24902# endif /* no NBPG */
24903# endif /* no EXEC_PAGESIZE */
24904# else /* no HAVE_SYS_PARAM_H */
24905# define getpagesize() 8192 /* punt totally */
24906# endif /* no HAVE_SYS_PARAM_H */
24907# endif /* no _SC_PAGESIZE */
24908
24909#endif /* no HAVE_GETPAGESIZE */
24910
24911int
24912main ()
24913{
24914 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024915 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024916 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024917 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024918
24919 pagesize = getpagesize ();
24920
24921 /* First, make a file with some known garbage in it. */
24922 data = (char *) malloc (pagesize);
24923 if (!data)
24924 return 1;
24925 for (i = 0; i < pagesize; ++i)
24926 *(data + i) = rand ();
24927 umask (0);
24928 fd = creat ("conftest.mmap", 0600);
24929 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024930 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024931 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024932 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024933 close (fd);
24934
cristycd4c5312009-11-22 01:19:08 +000024935 /* Next, check that the tail of a page is zero-filled. File must have
24936 non-zero length, otherwise we risk SIGBUS for entire page. */
24937 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24938 if (fd2 < 0)
24939 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024940 cdata2 = "";
24941 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024942 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024943 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024944 if (data2 == MAP_FAILED)
24945 return 6;
24946 for (i = 0; i < pagesize; ++i)
24947 if (*(data2 + i))
24948 return 7;
24949 close (fd2);
24950 if (munmap (data2, pagesize))
24951 return 8;
24952
cristy3ed852e2009-09-05 21:47:34 +000024953 /* Next, try to mmap the file at a fixed address which already has
24954 something else allocated at it. If we can, also make sure that
24955 we see the same garbage. */
24956 fd = open ("conftest.mmap", O_RDWR);
24957 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024958 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024959 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24960 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024961 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024962 for (i = 0; i < pagesize; ++i)
24963 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024964 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024965
24966 /* Finally, make sure that changes to the mapped area do not
24967 percolate back to the file as seen by read(). (This is a bug on
24968 some variants of i386 svr4.0.) */
24969 for (i = 0; i < pagesize; ++i)
24970 *(data2 + i) = *(data2 + i) + 1;
24971 data3 = (char *) malloc (pagesize);
24972 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024973 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024974 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024975 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024976 for (i = 0; i < pagesize; ++i)
24977 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024978 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024979 close (fd);
24980 return 0;
24981}
24982_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024983if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024984 ac_cv_func_mmap_fixed_mapped=yes
24985else
cristy8b350f62009-11-15 23:12:43 +000024986 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024987fi
cristy8b350f62009-11-15 23:12:43 +000024988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24989 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024990fi
24991
cristy3ed852e2009-09-05 21:47:34 +000024992fi
cristy8b350f62009-11-15 23:12:43 +000024993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024994$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24995if test $ac_cv_func_mmap_fixed_mapped = yes; then
24996
cristy8b350f62009-11-15 23:12:43 +000024997$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024998
24999fi
cristycd4c5312009-11-22 01:19:08 +000025000rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000025001
cristy3ed852e2009-09-05 21:47:34 +000025002for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000025003do :
25004 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025005if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025006 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025007#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000025008_ACEOF
25009
25010fi
25011
25012done
25013
cristy3ed852e2009-09-05 21:47:34 +000025014for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000025015do :
25016 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25017ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025018if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025019 cat >>confdefs.h <<_ACEOF
25020#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25021_ACEOF
25022
25023fi
25024done
25025
25026if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025028$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025029if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025030 $as_echo_n "(cached) " >&6
25031else
cristy8b350f62009-11-15 23:12:43 +000025032 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025033 ac_cv_func_fork_works=cross
25034else
cristy8b350f62009-11-15 23:12:43 +000025035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025036/* end confdefs.h. */
25037$ac_includes_default
25038int
25039main ()
25040{
25041
25042 /* By Ruediger Kuhlmann. */
25043 return fork () < 0;
25044
25045 ;
25046 return 0;
25047}
25048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025049if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025050 ac_cv_func_fork_works=yes
25051else
cristy8b350f62009-11-15 23:12:43 +000025052 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025053fi
cristy8b350f62009-11-15 23:12:43 +000025054rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25055 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025056fi
25057
cristy3ed852e2009-09-05 21:47:34 +000025058fi
cristy8b350f62009-11-15 23:12:43 +000025059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025060$as_echo "$ac_cv_func_fork_works" >&6; }
25061
25062else
25063 ac_cv_func_fork_works=$ac_cv_func_fork
25064fi
25065if test "x$ac_cv_func_fork_works" = xcross; then
25066 case $host in
25067 *-*-amigaos* | *-*-msdosdjgpp*)
25068 # Override, as these systems have only a dummy fork() stub
25069 ac_cv_func_fork_works=no
25070 ;;
25071 *)
25072 ac_cv_func_fork_works=yes
25073 ;;
25074 esac
cristy8b350f62009-11-15 23:12:43 +000025075 { $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 +000025076$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25077fi
25078ac_cv_func_vfork_works=$ac_cv_func_vfork
25079if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025081$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025082if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025083 $as_echo_n "(cached) " >&6
25084else
cristy8b350f62009-11-15 23:12:43 +000025085 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025086 ac_cv_func_vfork_works=cross
25087else
cristy8b350f62009-11-15 23:12:43 +000025088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025089/* end confdefs.h. */
25090/* Thanks to Paul Eggert for this test. */
25091$ac_includes_default
25092#include <sys/wait.h>
25093#ifdef HAVE_VFORK_H
25094# include <vfork.h>
25095#endif
25096/* On some sparc systems, changes by the child to local and incoming
25097 argument registers are propagated back to the parent. The compiler
25098 is told about this with #include <vfork.h>, but some compilers
25099 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25100 static variable whose address is put into a register that is
25101 clobbered by the vfork. */
25102static void
25103#ifdef __cplusplus
25104sparc_address_test (int arg)
25105# else
25106sparc_address_test (arg) int arg;
25107#endif
25108{
25109 static pid_t child;
25110 if (!child) {
25111 child = vfork ();
25112 if (child < 0) {
25113 perror ("vfork");
25114 _exit(2);
25115 }
25116 if (!child) {
25117 arg = getpid();
25118 write(-1, "", 0);
25119 _exit (arg);
25120 }
25121 }
25122}
25123
25124int
25125main ()
25126{
25127 pid_t parent = getpid ();
25128 pid_t child;
25129
25130 sparc_address_test (0);
25131
25132 child = vfork ();
25133
25134 if (child == 0) {
25135 /* Here is another test for sparc vfork register problems. This
25136 test uses lots of local variables, at least as many local
25137 variables as main has allocated so far including compiler
25138 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25139 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25140 reuse the register of parent for one of the local variables,
25141 since it will think that parent can't possibly be used any more
25142 in this routine. Assigning to the local variable will thus
25143 munge parent in the parent process. */
25144 pid_t
25145 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25146 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25147 /* Convince the compiler that p..p7 are live; otherwise, it might
25148 use the same hardware register for all 8 local variables. */
25149 if (p != p1 || p != p2 || p != p3 || p != p4
25150 || p != p5 || p != p6 || p != p7)
25151 _exit(1);
25152
25153 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25154 from child file descriptors. If the child closes a descriptor
25155 before it execs or exits, this munges the parent's descriptor
25156 as well. Test for this by closing stdout in the child. */
25157 _exit(close(fileno(stdout)) != 0);
25158 } else {
25159 int status;
25160 struct stat st;
25161
25162 while (wait(&status) != child)
25163 ;
25164 return (
25165 /* Was there some problem with vforking? */
25166 child < 0
25167
25168 /* Did the child fail? (This shouldn't happen.) */
25169 || status
25170
25171 /* Did the vfork/compiler bug occur? */
25172 || parent != getpid()
25173
25174 /* Did the file descriptor bug occur? */
25175 || fstat(fileno(stdout), &st) != 0
25176 );
25177 }
25178}
25179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025180if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025181 ac_cv_func_vfork_works=yes
25182else
cristy8b350f62009-11-15 23:12:43 +000025183 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025184fi
cristy8b350f62009-11-15 23:12:43 +000025185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25186 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025187fi
25188
cristy3ed852e2009-09-05 21:47:34 +000025189fi
cristy8b350f62009-11-15 23:12:43 +000025190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025191$as_echo "$ac_cv_func_vfork_works" >&6; }
25192
25193fi;
25194if test "x$ac_cv_func_fork_works" = xcross; then
25195 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025196 { $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 +000025197$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25198fi
25199
25200if test "x$ac_cv_func_vfork_works" = xyes; then
25201
cristy8b350f62009-11-15 23:12:43 +000025202$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025203
25204else
25205
cristy8b350f62009-11-15 23:12:43 +000025206$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025207
25208fi
25209if test "x$ac_cv_func_fork_works" = xyes; then
25210
cristy8b350f62009-11-15 23:12:43 +000025211$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025212
25213fi
25214
cristy8b350f62009-11-15 23:12:43 +000025215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025216$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025217if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025218 $as_echo_n "(cached) " >&6
25219else
cristy8b350f62009-11-15 23:12:43 +000025220 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025221 ac_cv_func_memcmp_working=no
25222else
cristy8b350f62009-11-15 23:12:43 +000025223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025224/* end confdefs.h. */
25225$ac_includes_default
25226int
25227main ()
25228{
25229
25230 /* Some versions of memcmp are not 8-bit clean. */
25231 char c0 = '\100', c1 = '\200', c2 = '\201';
25232 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25233 return 1;
25234
25235 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25236 or more and with at least one buffer not starting on a 4-byte boundary.
25237 William Lewis provided this test program. */
25238 {
25239 char foo[21];
25240 char bar[21];
25241 int i;
25242 for (i = 0; i < 4; i++)
25243 {
25244 char *a = foo + i;
25245 char *b = bar + i;
25246 strcpy (a, "--------01111111");
25247 strcpy (b, "--------10000000");
25248 if (memcmp (a, b, 16) >= 0)
25249 return 1;
25250 }
25251 return 0;
25252 }
25253
25254 ;
25255 return 0;
25256}
25257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025258if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025259 ac_cv_func_memcmp_working=yes
25260else
cristy8b350f62009-11-15 23:12:43 +000025261 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025262fi
cristy8b350f62009-11-15 23:12:43 +000025263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25264 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025265fi
25266
cristy3ed852e2009-09-05 21:47:34 +000025267fi
cristy8b350f62009-11-15 23:12:43 +000025268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025269$as_echo "$ac_cv_func_memcmp_working" >&6; }
25270test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25271 *" memcmp.$ac_objext "* ) ;;
25272 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25273 ;;
25274esac
25275
25276
cristy3ed852e2009-09-05 21:47:34 +000025277for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025278do :
25279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25280ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025281if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025282 cat >>confdefs.h <<_ACEOF
25283#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25284_ACEOF
25285
25286fi
25287
25288done
25289
cristy8b350f62009-11-15 23:12:43 +000025290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025291$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025292if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025293 $as_echo_n "(cached) " >&6
25294else
25295 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25296 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25297 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025299/* end confdefs.h. */
25300$ac_includes_default
25301#ifdef HAVE_SYS_SELECT_H
25302# include <sys/select.h>
25303#endif
25304#ifdef HAVE_SYS_SOCKET_H
25305# include <sys/socket.h>
25306#endif
25307
25308int
25309main ()
25310{
25311extern int select ($ac_arg1,
25312 $ac_arg234, $ac_arg234, $ac_arg234,
25313 $ac_arg5);
25314 ;
25315 return 0;
25316}
25317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025318if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025319 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025320fi
cristy3ed852e2009-09-05 21:47:34 +000025321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25322 done
25323 done
25324done
25325# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025326: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025327
25328fi
cristy8b350f62009-11-15 23:12:43 +000025329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025330$as_echo "$ac_cv_func_select_args" >&6; }
25331ac_save_IFS=$IFS; IFS=','
25332set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25333IFS=$ac_save_IFS
25334shift
25335
25336cat >>confdefs.h <<_ACEOF
25337#define SELECT_TYPE_ARG1 $1
25338_ACEOF
25339
25340
25341cat >>confdefs.h <<_ACEOF
25342#define SELECT_TYPE_ARG234 ($2)
25343_ACEOF
25344
25345
25346cat >>confdefs.h <<_ACEOF
25347#define SELECT_TYPE_ARG5 ($3)
25348_ACEOF
25349
25350rm -f conftest*
25351
cristyda16f162011-02-19 23:52:17 +000025352if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025353 $as_echo_n "(cached) " >&6
25354else
25355 ac_cv_func_setvbuf_reversed=no
25356fi
25357
25358
cristy8b350f62009-11-15 23:12:43 +000025359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025360$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025361if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025362 $as_echo_n "(cached) " >&6
25363else
cristy8b350f62009-11-15 23:12:43 +000025364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025365/* end confdefs.h. */
25366#include <sys/types.h>
25367#include <signal.h>
25368
25369int
25370main ()
25371{
25372return *(signal (0, 0)) (0) == 1;
25373 ;
25374 return 0;
25375}
25376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025377if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025378 ac_cv_type_signal=int
25379else
cristy8b350f62009-11-15 23:12:43 +000025380 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025381fi
cristy3ed852e2009-09-05 21:47:34 +000025382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25383fi
cristy8b350f62009-11-15 23:12:43 +000025384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025385$as_echo "$ac_cv_type_signal" >&6; }
25386
25387cat >>confdefs.h <<_ACEOF
25388#define RETSIGTYPE $ac_cv_type_signal
25389_ACEOF
25390
25391
cristy8b350f62009-11-15 23:12:43 +000025392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025393$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025394if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025395 $as_echo_n "(cached) " >&6
25396else
cristy8b350f62009-11-15 23:12:43 +000025397 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025398 ac_cv_func_strtod=no
25399else
cristy8b350f62009-11-15 23:12:43 +000025400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025401/* end confdefs.h. */
25402
25403$ac_includes_default
25404#ifndef strtod
25405double strtod ();
25406#endif
25407int
25408main()
25409{
25410 {
25411 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25412 char *string = " +69";
25413 char *term;
25414 double value;
25415 value = strtod (string, &term);
25416 if (value != 69 || term != (string + 4))
25417 return 1;
25418 }
25419
25420 {
25421 /* Under Solaris 2.4, strtod returns the wrong value for the
25422 terminating character under some conditions. */
25423 char *string = "NaN";
25424 char *term;
25425 strtod (string, &term);
25426 if (term != string && *(term - 1) == 0)
25427 return 1;
25428 }
25429 return 0;
25430}
25431
25432_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025433if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025434 ac_cv_func_strtod=yes
25435else
cristy8b350f62009-11-15 23:12:43 +000025436 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025437fi
cristy8b350f62009-11-15 23:12:43 +000025438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25439 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025440fi
25441
cristy3ed852e2009-09-05 21:47:34 +000025442fi
cristy8b350f62009-11-15 23:12:43 +000025443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025444$as_echo "$ac_cv_func_strtod" >&6; }
25445if test $ac_cv_func_strtod = no; then
25446 case " $LIBOBJS " in
25447 *" strtod.$ac_objext "* ) ;;
25448 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25449 ;;
25450esac
25451
cristy8b350f62009-11-15 23:12:43 +000025452ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025453if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025454
cristy3ed852e2009-09-05 21:47:34 +000025455fi
25456
cristy3ed852e2009-09-05 21:47:34 +000025457if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025459$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025460if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025461 $as_echo_n "(cached) " >&6
25462else
25463 ac_check_lib_save_LIBS=$LIBS
25464LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025466/* end confdefs.h. */
25467
25468/* Override any GCC internal prototype to avoid an error.
25469 Use char because int might match the return type of a GCC
25470 builtin and then its argument prototype would still apply. */
25471#ifdef __cplusplus
25472extern "C"
25473#endif
25474char pow ();
25475int
25476main ()
25477{
25478return pow ();
25479 ;
25480 return 0;
25481}
25482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025483if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025484 ac_cv_lib_m_pow=yes
25485else
cristy8b350f62009-11-15 23:12:43 +000025486 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025487fi
cristy8b350f62009-11-15 23:12:43 +000025488rm -f core conftest.err conftest.$ac_objext \
25489 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025490LIBS=$ac_check_lib_save_LIBS
25491fi
cristy8b350f62009-11-15 23:12:43 +000025492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025493$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025494if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025495 POW_LIB=-lm
25496else
cristy8b350f62009-11-15 23:12:43 +000025497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025498$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25499fi
25500
25501fi
25502
25503fi
25504
cristy7d4a1d62011-10-13 15:54:12 +000025505ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25506if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25507 ac_have_decl=1
25508else
25509 ac_have_decl=0
25510fi
25511
25512cat >>confdefs.h <<_ACEOF
25513#define HAVE_DECL_STRERROR_R $ac_have_decl
25514_ACEOF
25515
25516for ac_func in strerror_r
25517do :
25518 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25519if test "x$ac_cv_func_strerror_r" = xyes; then :
25520 cat >>confdefs.h <<_ACEOF
25521#define HAVE_STRERROR_R 1
25522_ACEOF
25523
25524fi
25525done
25526
25527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25528$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25529if ${ac_cv_func_strerror_r_char_p+:} false; then :
25530 $as_echo_n "(cached) " >&6
25531else
25532
25533 ac_cv_func_strerror_r_char_p=no
25534 if test $ac_cv_have_decl_strerror_r = yes; then
25535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25536/* end confdefs.h. */
25537$ac_includes_default
25538int
25539main ()
25540{
25541
25542 char buf[100];
25543 char x = *strerror_r (0, buf, sizeof buf);
25544 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025545 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025546
25547 ;
25548 return 0;
25549}
25550_ACEOF
25551if ac_fn_c_try_compile "$LINENO"; then :
25552 ac_cv_func_strerror_r_char_p=yes
25553fi
25554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25555 else
25556 # strerror_r is not declared. Choose between
25557 # systems that have relatively inaccessible declarations for the
25558 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25559 # former has a strerror_r that returns char*, while the latter
25560 # has a strerror_r that returns `int'.
25561 # This test should segfault on the DEC system.
25562 if test "$cross_compiling" = yes; then :
25563 :
25564else
25565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25566/* end confdefs.h. */
25567$ac_includes_default
25568 extern char *strerror_r ();
25569int
25570main ()
25571{
25572char buf[100];
25573 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025574 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025575 ;
25576 return 0;
25577}
25578_ACEOF
25579if ac_fn_c_try_run "$LINENO"; then :
25580 ac_cv_func_strerror_r_char_p=yes
25581fi
25582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25583 conftest.$ac_objext conftest.beam conftest.$ac_ext
25584fi
25585
25586 fi
25587
25588fi
25589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25590$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25591if test $ac_cv_func_strerror_r_char_p = yes; then
25592
25593$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25594
25595fi
25596
cristy3ed852e2009-09-05 21:47:34 +000025597for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025598do :
25599 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025600if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025601 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025602#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025603_ACEOF
25604
cristy8b350f62009-11-15 23:12:43 +000025605ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025606if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025607
cristy8b350f62009-11-15 23:12:43 +000025608$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025609
25610fi
25611
25612fi
25613done
25614
25615
25616
cristy161b9262010-03-20 19:34:32 +000025617#
25618# Find math library
25619#
25620MATH_LIBS=''
25621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25622$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025623if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025624 $as_echo_n "(cached) " >&6
25625else
25626 ac_check_lib_save_LIBS=$LIBS
25627LIBS="-lm $LIBS"
25628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25629/* end confdefs.h. */
25630
25631/* Override any GCC internal prototype to avoid an error.
25632 Use char because int might match the return type of a GCC
25633 builtin and then its argument prototype would still apply. */
25634#ifdef __cplusplus
25635extern "C"
25636#endif
25637char sqrt ();
25638int
25639main ()
25640{
25641return sqrt ();
25642 ;
25643 return 0;
25644}
25645_ACEOF
25646if ac_fn_c_try_link "$LINENO"; then :
25647 ac_cv_lib_m_sqrt=yes
25648else
25649 ac_cv_lib_m_sqrt=no
25650fi
25651rm -f core conftest.err conftest.$ac_objext \
25652 conftest$ac_exeext conftest.$ac_ext
25653LIBS=$ac_check_lib_save_LIBS
25654fi
25655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25656$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025657if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025658 MATH_LIBS="-lm"
25659fi
25660
25661LIBS="$MATH_LIBS $LIBS"
25662
25663
cristy568c2d42012-07-27 01:41:20 +000025664for 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 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 +000025665do :
25666 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25667ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025668if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025669 cat >>confdefs.h <<_ACEOF
25670#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25671_ACEOF
25672
25673fi
25674done
25675
25676
cristye43a45e2009-09-28 14:49:00 +000025677#
25678# Check for clock_gettime().
25679#
cristy8b350f62009-11-15 23:12:43 +000025680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025681$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025682if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025683 $as_echo_n "(cached) " >&6
25684else
25685 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025687/* end confdefs.h. */
25688
25689/* Override any GCC internal prototype to avoid an error.
25690 Use char because int might match the return type of a GCC
25691 builtin and then its argument prototype would still apply. */
25692#ifdef __cplusplus
25693extern "C"
25694#endif
25695char clock_gettime ();
25696int
25697main ()
25698{
25699return clock_gettime ();
25700 ;
25701 return 0;
25702}
25703_ACEOF
25704for ac_lib in '' rt; do
25705 if test -z "$ac_lib"; then
25706 ac_res="none required"
25707 else
25708 ac_res=-l$ac_lib
25709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25710 fi
cristy8b350f62009-11-15 23:12:43 +000025711 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025712 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025713fi
cristy8b350f62009-11-15 23:12:43 +000025714rm -f core conftest.err conftest.$ac_objext \
25715 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025716 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025717 break
25718fi
25719done
cristyda16f162011-02-19 23:52:17 +000025720if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025721
cristye43a45e2009-09-28 14:49:00 +000025722else
25723 ac_cv_search_clock_gettime=no
25724fi
25725rm conftest.$ac_ext
25726LIBS=$ac_func_search_save_LIBS
25727fi
cristy8b350f62009-11-15 23:12:43 +000025728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025729$as_echo "$ac_cv_search_clock_gettime" >&6; }
25730ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025731if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025732 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25733
25734
cristy8b350f62009-11-15 23:12:43 +000025735$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025736
cristy8b350f62009-11-15 23:12:43 +000025737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025738$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025740/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025741
25742 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025743int
25744main ()
25745{
25746clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025747 ;
25748 return 0;
25749}
25750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025751if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025752
cristy09b53e12011-10-14 12:47:22 +000025753 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25754$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025755
cristy8b350f62009-11-15 23:12:43 +000025756$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025757
25758
25759else
cristy09b53e12011-10-14 12:47:22 +000025760 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25761$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025762
25763fi
cristye43a45e2009-09-28 14:49:00 +000025764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25765
25766else
25767
cristy8b350f62009-11-15 23:12:43 +000025768 for ac_func in gettimeofday ftime
25769do :
25770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25771ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025772if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025773 cat >>confdefs.h <<_ACEOF
25774#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25775_ACEOF
25776 break
25777fi
25778done
25779
25780
25781
25782fi
25783
25784
cristy3ed852e2009-09-05 21:47:34 +000025785########
25786#
25787# Check for function prototypes
25788#
25789########
25790
cristy8b350f62009-11-15 23:12:43 +000025791ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025792#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025793"
cristyda16f162011-02-19 23:52:17 +000025794if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025795 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025796else
cristy8b350f62009-11-15 23:12:43 +000025797 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025798fi
25799
cristy3ed852e2009-09-05 21:47:34 +000025800cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025801#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025802_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025803ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025804#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025805"
cristyda16f162011-02-19 23:52:17 +000025806if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025807 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025808else
cristy8b350f62009-11-15 23:12:43 +000025809 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025810fi
25811
cristy3ed852e2009-09-05 21:47:34 +000025812cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025813#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025814_ACEOF
25815
25816
cristy8b350f62009-11-15 23:12:43 +000025817ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025818#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025819"
cristyda16f162011-02-19 23:52:17 +000025820if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025821 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025822else
cristy8b350f62009-11-15 23:12:43 +000025823 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025824fi
25825
cristy3ed852e2009-09-05 21:47:34 +000025826cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025827#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025828_ACEOF
25829
25830
cristy8b350f62009-11-15 23:12:43 +000025831ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025832#include <stdio.h>
25833#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025834"
cristyda16f162011-02-19 23:52:17 +000025835if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025836 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025837else
cristy8b350f62009-11-15 23:12:43 +000025838 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025839fi
25840
cristy3ed852e2009-09-05 21:47:34 +000025841cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025842#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025843_ACEOF
25844
25845
cristy3ed852e2009-09-05 21:47:34 +000025846########
25847#
25848# C++ Support Tests (For Magick++)
25849#
25850########
25851have_magick_plus_plus='no'
25852if test "$with_magick_plus_plus" = 'yes'; then
25853 OLIBS="$LIBS"
25854 LIBS=''
25855 ac_ext=cpp
25856ac_cpp='$CXXCPP $CPPFLAGS'
25857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25860
25861
25862 # Full set of headers used...
25863 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25864 # functional iomanip iosfwd iostream iterator list string strstream utility
25865 ac_ext=cpp
25866ac_cpp='$CXXCPP $CPPFLAGS'
25867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25870
25871 ac_ext=cpp
25872ac_cpp='$CXXCPP $CPPFLAGS'
25873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25876if test -z "$CXX"; then
25877 if test -n "$CCC"; then
25878 CXX=$CCC
25879 else
25880 if test -n "$ac_tool_prefix"; then
25881 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25882 do
25883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25884set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025886$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025887if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025888 $as_echo_n "(cached) " >&6
25889else
25890 if test -n "$CXX"; then
25891 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25892else
25893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25894for as_dir in $PATH
25895do
25896 IFS=$as_save_IFS
25897 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025898 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025900 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025902 break 2
25903 fi
25904done
cristy8b350f62009-11-15 23:12:43 +000025905 done
cristy3ed852e2009-09-05 21:47:34 +000025906IFS=$as_save_IFS
25907
25908fi
25909fi
25910CXX=$ac_cv_prog_CXX
25911if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025913$as_echo "$CXX" >&6; }
25914else
cristy8b350f62009-11-15 23:12:43 +000025915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025916$as_echo "no" >&6; }
25917fi
25918
25919
25920 test -n "$CXX" && break
25921 done
25922fi
25923if test -z "$CXX"; then
25924 ac_ct_CXX=$CXX
25925 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25926do
25927 # Extract the first word of "$ac_prog", so it can be a program name with args.
25928set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025930$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025931if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025932 $as_echo_n "(cached) " >&6
25933else
25934 if test -n "$ac_ct_CXX"; then
25935 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25936else
25937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25938for as_dir in $PATH
25939do
25940 IFS=$as_save_IFS
25941 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025944 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025946 break 2
25947 fi
25948done
cristy8b350f62009-11-15 23:12:43 +000025949 done
cristy3ed852e2009-09-05 21:47:34 +000025950IFS=$as_save_IFS
25951
25952fi
25953fi
25954ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25955if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025957$as_echo "$ac_ct_CXX" >&6; }
25958else
cristy8b350f62009-11-15 23:12:43 +000025959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025960$as_echo "no" >&6; }
25961fi
25962
25963
25964 test -n "$ac_ct_CXX" && break
25965done
25966
25967 if test "x$ac_ct_CXX" = x; then
25968 CXX="g++"
25969 else
25970 case $cross_compiling:$ac_tool_warned in
25971yes:)
cristy8b350f62009-11-15 23:12:43 +000025972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25974ac_tool_warned=yes ;;
25975esac
25976 CXX=$ac_ct_CXX
25977 fi
25978fi
25979
25980 fi
25981fi
25982# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025983$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025984set X $ac_compile
25985ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025986for ac_option in --version -v -V -qversion; do
25987 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025988case "(($ac_try" in
25989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25990 *) ac_try_echo=$ac_try;;
25991esac
cristy8b350f62009-11-15 23:12:43 +000025992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25993$as_echo "$ac_try_echo"; } >&5
25994 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025995 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025996 if test -s conftest.err; then
25997 sed '10a\
25998... rest of stderr output deleted ...
25999 10q' conftest.err >conftest.er1
26000 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026001 fi
cristycd4c5312009-11-22 01:19:08 +000026002 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26004 test $ac_status = 0; }
26005done
cristy3ed852e2009-09-05 21:47:34 +000026006
cristy8b350f62009-11-15 23:12:43 +000026007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026008$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026009if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026010 $as_echo_n "(cached) " >&6
26011else
cristy8b350f62009-11-15 23:12:43 +000026012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026013/* end confdefs.h. */
26014
26015int
26016main ()
26017{
26018#ifndef __GNUC__
26019 choke me
26020#endif
26021
26022 ;
26023 return 0;
26024}
26025_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026026if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026027 ac_compiler_gnu=yes
26028else
cristy8b350f62009-11-15 23:12:43 +000026029 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026030fi
cristy3ed852e2009-09-05 21:47:34 +000026031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26032ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26033
26034fi
cristy8b350f62009-11-15 23:12:43 +000026035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026036$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26037if test $ac_compiler_gnu = yes; then
26038 GXX=yes
26039else
26040 GXX=
26041fi
26042ac_test_CXXFLAGS=${CXXFLAGS+set}
26043ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026045$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026046if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026047 $as_echo_n "(cached) " >&6
26048else
26049 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26050 ac_cxx_werror_flag=yes
26051 ac_cv_prog_cxx_g=no
26052 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026054/* end confdefs.h. */
26055
26056int
26057main ()
26058{
26059
26060 ;
26061 return 0;
26062}
26063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026064if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026065 ac_cv_prog_cxx_g=yes
26066else
cristy8b350f62009-11-15 23:12:43 +000026067 CXXFLAGS=""
26068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026069/* end confdefs.h. */
26070
26071int
26072main ()
26073{
26074
26075 ;
26076 return 0;
26077}
26078_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026079if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026080
cristy8b350f62009-11-15 23:12:43 +000026081else
26082 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026083 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026085/* end confdefs.h. */
26086
26087int
26088main ()
26089{
26090
26091 ;
26092 return 0;
26093}
26094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026095if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026096 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026097fi
cristy3ed852e2009-09-05 21:47:34 +000026098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26099fi
cristy3ed852e2009-09-05 21:47:34 +000026100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26101fi
cristy3ed852e2009-09-05 21:47:34 +000026102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26103 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26104fi
cristy8b350f62009-11-15 23:12:43 +000026105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026106$as_echo "$ac_cv_prog_cxx_g" >&6; }
26107if test "$ac_test_CXXFLAGS" = set; then
26108 CXXFLAGS=$ac_save_CXXFLAGS
26109elif test $ac_cv_prog_cxx_g = yes; then
26110 if test "$GXX" = yes; then
26111 CXXFLAGS="-g -O2"
26112 else
26113 CXXFLAGS="-g"
26114 fi
26115else
26116 if test "$GXX" = yes; then
26117 CXXFLAGS="-O2"
26118 else
26119 CXXFLAGS=
26120 fi
26121fi
26122ac_ext=cpp
26123ac_cpp='$CXXCPP $CPPFLAGS'
26124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26127
cristy73bd4a52010-10-05 11:24:23 +000026128depcc="$CXX" am_compiler_list=
26129
26130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26131$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026132if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026133 $as_echo_n "(cached) " >&6
26134else
26135 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26136 # We make a subdir and do the tests there. Otherwise we can end up
26137 # making bogus files that we don't know about and never remove. For
26138 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026139 # making a dummy file named 'D' -- because '-MD' means "put the output
26140 # in D".
cristy7247bba2012-02-05 16:37:27 +000026141 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026142 mkdir conftest.dir
26143 # Copy depcomp to subdir because otherwise we won't find it if we're
26144 # using a relative directory.
26145 cp "$am_depcomp" conftest.dir
26146 cd conftest.dir
26147 # We will build objects and dependencies in a subdirectory because
26148 # it helps to detect inapplicable dependency modes. For instance
26149 # both Tru64's cc and ICC support -MD to output dependencies as a
26150 # side effect of compilation, but ICC will put the dependencies in
26151 # the current directory while Tru64 will put them in the object
26152 # directory.
26153 mkdir sub
26154
26155 am_cv_CXX_dependencies_compiler_type=none
26156 if test "$am_compiler_list" = ""; then
26157 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26158 fi
26159 am__universal=false
26160 case " $depcc " in #(
26161 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26162 esac
26163
26164 for depmode in $am_compiler_list; do
26165 # Setup a source with many dependencies, because some compilers
26166 # like to wrap large dependency lists on column 80 (with \), and
26167 # we should not choose a depcomp mode which is confused by this.
26168 #
26169 # We need to recreate these files for each test, as the compiler may
26170 # overwrite some of them when testing with obscure command lines.
26171 # This happens at least with the AIX C compiler.
26172 : > sub/conftest.c
26173 for i in 1 2 3 4 5 6; do
26174 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026175 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26176 # Solaris 10 /bin/sh.
26177 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026178 done
26179 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26180
cristyc0890a62012-07-19 00:18:20 +000026181 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026182 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026183 # handle '-M -o', and we need to detect this. Also, some Intel
26184 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026185 am__obj=sub/conftest.${OBJEXT-o}
26186 am__minus_obj="-o $am__obj"
26187 case $depmode in
26188 gcc)
26189 # This depmode causes a compiler race in universal mode.
26190 test "$am__universal" = false || continue
26191 ;;
26192 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026193 # After this tag, mechanisms are not by side-effect, so they'll
26194 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026195 if test "x$enable_dependency_tracking" = xyes; then
26196 continue
26197 else
26198 break
26199 fi
26200 ;;
cristy7247bba2012-02-05 16:37:27 +000026201 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026202 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026203 # not run yet. These depmodes are late enough in the game, and
26204 # so weak that their functioning should not be impacted.
26205 am__obj=conftest.${OBJEXT-o}
26206 am__minus_obj=
26207 ;;
26208 none) break ;;
26209 esac
26210 if depmode=$depmode \
26211 source=sub/conftest.c object=$am__obj \
26212 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26213 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26214 >/dev/null 2>conftest.err &&
26215 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26216 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26217 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26218 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26219 # icc doesn't choke on unknown options, it will just issue warnings
26220 # or remarks (even with -Werror). So we grep stderr for any message
26221 # that says an option was ignored or not supported.
26222 # When given -MP, icc 7.0 and 7.1 complain thusly:
26223 # icc: Command line warning: ignoring option '-M'; no argument required
26224 # The diagnosis changed in icc 8.0:
26225 # icc: Command line remark: option '-MP' not supported
26226 if (grep 'ignoring option' conftest.err ||
26227 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26228 am_cv_CXX_dependencies_compiler_type=$depmode
26229 break
26230 fi
26231 fi
26232 done
26233
26234 cd ..
26235 rm -rf conftest.dir
26236else
26237 am_cv_CXX_dependencies_compiler_type=none
26238fi
26239
26240fi
26241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26242$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26243CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26244
26245 if
26246 test "x$enable_dependency_tracking" != xno \
26247 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26248 am__fastdepCXX_TRUE=
26249 am__fastdepCXX_FALSE='#'
26250else
26251 am__fastdepCXX_TRUE='#'
26252 am__fastdepCXX_FALSE=
26253fi
26254
26255
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26257$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026258if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026259 $as_echo_n "(cached) " >&6
26260else
26261
26262 ac_ext=cpp
26263ac_cpp='$CXXCPP $CPPFLAGS'
26264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26267
26268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26269/* end confdefs.h. */
26270
26271int f(int x){return 1;}
26272int f(char x){return 1;}
26273int f(bool x){return 1;}
26274
26275int
26276main ()
26277{
26278bool b = true; return f(b);
26279 ;
26280 return 0;
26281}
26282_ACEOF
26283if ac_fn_cxx_try_compile "$LINENO"; then :
26284 ax_cv_cxx_bool=yes
26285else
26286 ax_cv_cxx_bool=no
26287fi
26288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26289 ac_ext=cpp
26290ac_cpp='$CXXCPP $CPPFLAGS'
26291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26294
26295
26296fi
26297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26298$as_echo "$ax_cv_cxx_bool" >&6; }
26299if test "$ax_cv_cxx_bool" = yes; then
26300
26301$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26302
26303fi
26304
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26306$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026307if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026308 $as_echo_n "(cached) " >&6
26309else
26310
26311 ac_ext=cpp
26312ac_cpp='$CXXCPP $CPPFLAGS'
26313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26316
26317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26318/* end confdefs.h. */
26319namespace Outer { namespace Inner { int i = 0; }}
26320int
26321main ()
26322{
26323using namespace Outer::Inner; return i;
26324 ;
26325 return 0;
26326}
26327_ACEOF
26328if ac_fn_cxx_try_compile "$LINENO"; then :
26329 ax_cv_cxx_namespaces=yes
26330else
26331 ax_cv_cxx_namespaces=no
26332fi
26333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26334 ac_ext=cpp
26335ac_cpp='$CXXCPP $CPPFLAGS'
26336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26339
26340
26341fi
26342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26343$as_echo "$ax_cv_cxx_namespaces" >&6; }
26344if test "$ax_cv_cxx_namespaces" = yes; then
26345
26346$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26347
26348fi
26349
26350
26351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26352$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026353if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026354 $as_echo_n "(cached) " >&6
26355else
26356
26357 ac_ext=cpp
26358ac_cpp='$CXXCPP $CPPFLAGS'
26359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26362
26363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26364/* end confdefs.h. */
26365#include <iostream>
26366 std::istream& is = std::cin;
26367int
26368main ()
26369{
26370
26371 ;
26372 return 0;
26373}
26374_ACEOF
26375if ac_fn_cxx_try_compile "$LINENO"; then :
26376 ax_cv_cxx_have_std_namespace=yes
26377else
26378 ax_cv_cxx_have_std_namespace=no
26379fi
26380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26381 ac_ext=cpp
26382ac_cpp='$CXXCPP $CPPFLAGS'
26383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26386
26387
26388fi
26389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26390$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26391 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26392
26393$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26394
26395 fi
26396
26397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26398$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026399if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026400 $as_echo_n "(cached) " >&6
26401else
26402
26403
26404 ac_ext=cpp
26405ac_cpp='$CXXCPP $CPPFLAGS'
26406ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26407ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26408ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26409
26410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26411/* end confdefs.h. */
26412#include <iostream>
26413#include <map>
26414#include <iomanip>
26415#include <cmath>
26416#ifdef HAVE_NAMESPACES
26417using namespace std;
26418#endif
26419int
26420main ()
26421{
26422return 0;
26423 ;
26424 return 0;
26425}
26426_ACEOF
26427if ac_fn_cxx_try_compile "$LINENO"; then :
26428 ac_cv_cxx_have_std_libs=yes
26429else
26430 ac_cv_cxx_have_std_libs=no
26431fi
26432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26433 ac_ext=cpp
26434ac_cpp='$CXXCPP $CPPFLAGS'
26435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26438
26439
26440fi
26441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26442$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26443if test "$ac_cv_cxx_have_std_libs" = yes; then
26444
26445$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26446
26447fi
26448
cristy3ed852e2009-09-05 21:47:34 +000026449
26450 OPENMP_CXXFLAGS=
26451 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026452if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026453 enableval=$enable_openmp;
26454fi
26455
26456 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26458$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026459if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026460 $as_echo_n "(cached) " >&6
26461else
cristy8b350f62009-11-15 23:12:43 +000026462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26463/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026464
26465#ifndef _OPENMP
26466 choke me
26467#endif
26468#include <omp.h>
26469int main () { return omp_get_num_threads (); }
26470
26471_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026472if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026473 ac_cv_prog_cxx_openmp='none needed'
26474else
cristy8b350f62009-11-15 23:12:43 +000026475 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026476 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26477 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026478 ac_save_CXXFLAGS=$CXXFLAGS
26479 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26481/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026482
26483#ifndef _OPENMP
26484 choke me
26485#endif
26486#include <omp.h>
26487int main () { return omp_get_num_threads (); }
26488
26489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026490if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026491 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026492fi
cristy8b350f62009-11-15 23:12:43 +000026493rm -f core conftest.err conftest.$ac_objext \
26494 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026495 CXXFLAGS=$ac_save_CXXFLAGS
26496 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26497 break
26498 fi
26499 done
26500fi
cristy8b350f62009-11-15 23:12:43 +000026501rm -f core conftest.err conftest.$ac_objext \
26502 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026503fi
cristy8b350f62009-11-15 23:12:43 +000026504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026505$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26506 case $ac_cv_prog_cxx_openmp in #(
26507 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026508 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026509 *)
cristy8b350f62009-11-15 23:12:43 +000026510 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026511 esac
26512 fi
26513
26514
26515 ac_ext=c
26516ac_cpp='$CPP $CPPFLAGS'
26517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26519ac_compiler_gnu=$ac_cv_c_compiler_gnu
26520
26521
cristy8b350f62009-11-15 23:12:43 +000026522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026523$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26524 if \
cristy964cb7f2010-04-25 23:18:00 +000026525 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026526 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026527 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026528 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026529 have_magick_plus_plus='yes'
26530 else
26531 have_magick_plus_plus='no (failed tests)'
26532 fi
cristy09b53e12011-10-14 12:47:22 +000026533 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26534$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026535 LIBS="$OLIBS"
26536fi
cristy73bd4a52010-10-05 11:24:23 +000026537 if test "$have_magick_plus_plus" = 'yes'; then
26538 WITH_MAGICK_PLUS_PLUS_TRUE=
26539 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26540else
26541 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26542 WITH_MAGICK_PLUS_PLUS_FALSE=
26543fi
26544
cristy3ed852e2009-09-05 21:47:34 +000026545
26546# Only check for delegate libraries in subdirectories if requested.
26547if test "$enable_delegate_build" != 'no'; then
26548 # Check for delegate sub-directories and add -I & -L options as required.
26549 # This presumes that delegates are installed as detailed in the ImageMagick
26550 # README. If delegates are installed in a standard location where the
26551 # compiler will automatically find them then these options should not be
26552 # required.
26553
26554 #
26555 # Most delegates have includes in the same directory as the library, but not all...
26556 #
26557 # Includes
cristy2542fc62011-12-06 17:50:25 +000026558 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 +000026559 if test -d "$builddir/$dir"; then
26560 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26561 else
26562 if test -d "$srcdirfull/$dir"; then
26563 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26564 fi
26565 fi
26566 done
26567
26568 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026569 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 +000026570 if test -d "$builddir/$dir/.libs"; then
26571 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26572 else
26573 if test -d "$srcdirfull/$dir/.libs"; then
26574 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26575 fi
26576 fi
26577 if test -d "$builddir/$dir"; then
26578 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26579 else
26580 if test -d "$srcdirfull/$dir"; then
26581 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26582 fi
26583 fi
26584 done
26585fi
26586
26587# Assume that delegate headers reside under same directory as ImageMagick
26588# installation prefix.
26589MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26590
26591#
26592# Find the X11 RGB database
26593#
cristy8b350f62009-11-15 23:12:43 +000026594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026595$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026596if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026597 $as_echo_n "(cached) " >&6
26598else
26599 # Look for the header file in a standard set of common directories.
26600# Check X11 before X11Rn because it is often a symlink to the current release.
26601 for ac_dir in \
26602 /lib/usr/lib/X11 \
26603 /usr/X11/lib \
26604 /usr/X11R4/lib \
26605 /usr/X11R5/lib \
26606 /usr/X11R6/lib \
26607 /usr/X11R7/lib \
26608 /usr/X386/lib \
26609 /usr/XFree86/lib/X11 \
26610 /usr/athena/lib \
26611 /usr/lib \
26612 /usr/lib/X11 \
26613 /usr/lib/X11R4 \
26614 /usr/lib/X11R5 \
26615 /usr/lib/X11R6 \
26616 /usr/lib/X11R7 \
26617 /usr/local/X11/lib \
26618 /usr/local/X11R4/lib \
26619 /usr/local/X11R5/lib \
26620 /usr/local/X11R6/lib \
26621 /usr/local/lib \
26622 /usr/local/lib/X11 \
26623 /usr/local/lib/X11R4 \
26624 /usr/local/lib/X11R5 \
26625 /usr/local/lib/X11R6 \
26626 /usr/local/lib/X11R7 \
26627 /usr/local/x11r5/lib \
26628 /usr/lpp/Xamples/lib \
26629 /usr/openwin/lib \
26630 /usr/openwin/share/lib \
26631 /usr/unsupported/lib \
26632 /usr/x386/lib \
26633 ; do
26634 if test -f "$ac_dir/X11/rgb.txt"; then
26635 im_cv_x_configure="$ac_dir/X11/"
26636 break
26637 elif test -f "$ac_dir/rgb.txt"; then
26638 im_cv_x_configure="$ac_dir/"
26639 break
26640 fi
26641
26642 done
26643fi
cristy8b350f62009-11-15 23:12:43 +000026644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026645$as_echo "$im_cv_x_configure" >&6; }
26646X11_CONFIGURE_PATH="$im_cv_x_configure"
26647case "${build_os}" in
26648 mingw* )
26649 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26650 ;;
26651esac
26652
26653cat >>confdefs.h <<_ACEOF
26654#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26655_ACEOF
26656
26657
26658#
26659# Find OpenMP library
26660#
26661GOMP_LIBS=''
26662if test "$enable_openmp" != 'no'; then
26663 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026664 # Open64 (passes for GCC but uses different OpenMP implementation)
26665 if test "x$GOMP_LIBS" = x ; then
26666 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26668$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26669if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26670 $as_echo_n "(cached) " >&6
26671else
26672 ac_check_lib_save_LIBS=$LIBS
26673LIBS="-lopenmp $LIBS"
26674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26675/* end confdefs.h. */
26676
26677/* Override any GCC internal prototype to avoid an error.
26678 Use char because int might match the return type of a GCC
26679 builtin and then its argument prototype would still apply. */
26680#ifdef __cplusplus
26681extern "C"
26682#endif
26683char omp_get_num_procs ();
26684int
26685main ()
26686{
26687return omp_get_num_procs ();
26688 ;
26689 return 0;
26690}
26691_ACEOF
26692if ac_fn_c_try_link "$LINENO"; then :
26693 ac_cv_lib_openmp_omp_get_num_procs=yes
26694else
26695 ac_cv_lib_openmp_omp_get_num_procs=no
26696fi
26697rm -f core conftest.err conftest.$ac_objext \
26698 conftest$ac_exeext conftest.$ac_ext
26699LIBS=$ac_check_lib_save_LIBS
26700fi
26701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26702$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26703if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26704 GOMP_LIBS="-lopenmp"
26705fi
26706
26707 fi
26708 fi
26709 # GCC
26710 if test "x$GOMP_LIBS" = x ; then
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026712$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026713if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026714 $as_echo_n "(cached) " >&6
26715else
26716 ac_check_lib_save_LIBS=$LIBS
26717LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026719/* end confdefs.h. */
26720
26721/* Override any GCC internal prototype to avoid an error.
26722 Use char because int might match the return type of a GCC
26723 builtin and then its argument prototype would still apply. */
26724#ifdef __cplusplus
26725extern "C"
26726#endif
26727char GOMP_parallel_start ();
26728int
26729main ()
26730{
26731return GOMP_parallel_start ();
26732 ;
26733 return 0;
26734}
26735_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026736if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026737 ac_cv_lib_gomp_GOMP_parallel_start=yes
26738else
cristy8b350f62009-11-15 23:12:43 +000026739 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026740fi
cristy8b350f62009-11-15 23:12:43 +000026741rm -f core conftest.err conftest.$ac_objext \
26742 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026743LIBS=$ac_check_lib_save_LIBS
26744fi
cristy8b350f62009-11-15 23:12:43 +000026745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026746$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026747if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026748 GOMP_LIBS="-lgomp"
26749fi
cristy18307f12011-12-30 01:20:16 +000026750
26751 fi
cristy3ed852e2009-09-05 21:47:34 +000026752 else
cristy18307f12011-12-30 01:20:16 +000026753 # Sun CC
26754 if test "x$GOMP_LIBS" = x ; then
26755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026756$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026757if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026758 $as_echo_n "(cached) " >&6
26759else
26760 ac_check_lib_save_LIBS=$LIBS
26761LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026763/* end confdefs.h. */
26764
26765/* Override any GCC internal prototype to avoid an error.
26766 Use char because int might match the return type of a GCC
26767 builtin and then its argument prototype would still apply. */
26768#ifdef __cplusplus
26769extern "C"
26770#endif
26771char sunw_mp_register_warn ();
26772int
26773main ()
26774{
26775return sunw_mp_register_warn ();
26776 ;
26777 return 0;
26778}
26779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026780if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026781 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26782else
cristy8b350f62009-11-15 23:12:43 +000026783 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026784fi
cristy8b350f62009-11-15 23:12:43 +000026785rm -f core conftest.err conftest.$ac_objext \
26786 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026787LIBS=$ac_check_lib_save_LIBS
26788fi
cristy8b350f62009-11-15 23:12:43 +000026789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026790$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026791if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026792 GOMP_LIBS="-lmtsk"
26793fi
cristy18307f12011-12-30 01:20:16 +000026794
26795 fi
26796 # AIX xlc
26797 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026799$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026800if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026801 $as_echo_n "(cached) " >&6
26802else
26803 ac_check_lib_save_LIBS=$LIBS
26804LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026806/* end confdefs.h. */
26807
26808/* Override any GCC internal prototype to avoid an error.
26809 Use char because int might match the return type of a GCC
26810 builtin and then its argument prototype would still apply. */
26811#ifdef __cplusplus
26812extern "C"
26813#endif
26814char _xlsmpFlush ();
26815int
26816main ()
26817{
26818return _xlsmpFlush ();
26819 ;
26820 return 0;
26821}
26822_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026823if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026824 ac_cv_lib_xlsmp__xlsmpFlush=yes
26825else
cristy8b350f62009-11-15 23:12:43 +000026826 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026827fi
cristy8b350f62009-11-15 23:12:43 +000026828rm -f core conftest.err conftest.$ac_objext \
26829 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026830LIBS=$ac_check_lib_save_LIBS
26831fi
cristy8b350f62009-11-15 23:12:43 +000026832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026833$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026834if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026835 GOMP_LIBS="-lxlsmp"
26836fi
cristy18307f12011-12-30 01:20:16 +000026837
26838 fi
26839 # SGI IRIX 6.5 MIPSpro C/C++
26840 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026842$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026843if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026844 $as_echo_n "(cached) " >&6
26845else
26846 ac_check_lib_save_LIBS=$LIBS
26847LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026849/* end confdefs.h. */
26850
26851/* Override any GCC internal prototype to avoid an error.
26852 Use char because int might match the return type of a GCC
26853 builtin and then its argument prototype would still apply. */
26854#ifdef __cplusplus
26855extern "C"
26856#endif
26857char mp_destroy ();
26858int
26859main ()
26860{
26861return mp_destroy ();
26862 ;
26863 return 0;
26864}
26865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026866if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026867 ac_cv_lib_mp_mp_destroy=yes
26868else
cristy8b350f62009-11-15 23:12:43 +000026869 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026870fi
cristy8b350f62009-11-15 23:12:43 +000026871rm -f core conftest.err conftest.$ac_objext \
26872 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026873LIBS=$ac_check_lib_save_LIBS
26874fi
cristy8b350f62009-11-15 23:12:43 +000026875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026876$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026877if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026878 GOMP_LIBS="-lmp"
26879fi
cristy18307f12011-12-30 01:20:16 +000026880
26881 fi
cristy3ed852e2009-09-05 21:47:34 +000026882 fi
26883 LIBS="$GOMP_LIBS $LIBS"
26884fi
26885
26886
26887#
26888# Find Posix threads library
26889#
26890THREAD_LIBS=''
26891if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26892
26893 if test "x$PTHREAD_LIBS" = "x"; then
26894 case "${host_cpu}-${host_os}" in
26895 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026896
26897
26898
26899ac_ext=c
26900ac_cpp='$CPP $CPPFLAGS'
26901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26903ac_compiler_gnu=$ac_cv_c_compiler_gnu
26904
26905magick_pthread_lib_ok=no
26906
26907LIB=-lc_r
26908save_LIBS="$LIBS"
26909LIBS="$LIBS $LIB"
26910
26911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26912$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26914/* end confdefs.h. */
26915#include <pthread.h>
26916int
26917main ()
26918{
26919 pthread_t th;
26920 pthread_join(th, 0);
26921 pthread_attr_init(0);
26922 pthread_cleanup_push(0, 0);
26923 pthread_create(0,0,0,0);
26924 pthread_cleanup_pop(0);
26925 ;
26926 return 0;
26927}
26928_ACEOF
26929if ac_fn_c_try_link "$LINENO"; then :
26930 magick_pthread_lib_ok=yes
26931fi
26932rm -f core conftest.err conftest.$ac_objext \
26933 conftest$ac_exeext conftest.$ac_ext
26934
26935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26936$as_echo "${magick_pthread_lib_ok}" >&6; }
26937if test "$magick_pthread_lib_ok" = yes
26938then
26939 PTHREAD_LIBS=-lc_r
26940 :
26941else
26942
26943 :
26944fi
26945
26946LIBS="$save_LIBS"
26947
26948ac_ext=c
26949ac_cpp='$CPP $CPPFLAGS'
26950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26952ac_compiler_gnu=$ac_cv_c_compiler_gnu
26953
26954 ;;
cristy3ed852e2009-09-05 21:47:34 +000026955 esac
26956 fi
26957
26958 for lib in pthread pthreads; do
26959 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026960
26961
26962
26963ac_ext=c
26964ac_cpp='$CPP $CPPFLAGS'
26965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26967ac_compiler_gnu=$ac_cv_c_compiler_gnu
26968
26969magick_pthread_lib_ok=no
26970
26971LIB=-l$lib
26972save_LIBS="$LIBS"
26973LIBS="$LIBS $LIB"
26974
26975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26976$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26978/* end confdefs.h. */
26979#include <pthread.h>
26980int
26981main ()
26982{
26983 pthread_t th;
26984 pthread_join(th, 0);
26985 pthread_attr_init(0);
26986 pthread_cleanup_push(0, 0);
26987 pthread_create(0,0,0,0);
26988 pthread_cleanup_pop(0);
26989 ;
26990 return 0;
26991}
26992_ACEOF
26993if ac_fn_c_try_link "$LINENO"; then :
26994 magick_pthread_lib_ok=yes
26995fi
26996rm -f core conftest.err conftest.$ac_objext \
26997 conftest$ac_exeext conftest.$ac_ext
26998
26999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
27000$as_echo "${magick_pthread_lib_ok}" >&6; }
27001if test "$magick_pthread_lib_ok" = yes
27002then
27003 PTHREAD_LIBS=-l$lib
27004 :
27005else
27006
27007 :
27008fi
27009
27010LIBS="$save_LIBS"
27011
27012ac_ext=c
27013ac_cpp='$CPP $CPPFLAGS'
27014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27016ac_compiler_gnu=$ac_cv_c_compiler_gnu
27017
27018
cristy3ed852e2009-09-05 21:47:34 +000027019 fi
27020 done
27021
27022 THREAD_LIBS="$PTHREAD_LIBS"
27023 LIBS="$LIBS $THREAD_LIBS"
27024fi
27025
27026
27027#
27028# Check for umem.
27029#
27030have_umem='no'
27031UMEM_LIBS=''
27032if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000027034$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027035 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27036$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027037 failed=0
27038 passed=0
cristy8b350f62009-11-15 23:12:43 +000027039 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027040if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027041 passed=`expr $passed + 1`
27042else
27043 failed=`expr $failed + 1`
27044fi
27045
27046
cristy8b350f62009-11-15 23:12:43 +000027047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027048$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027049if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027050 $as_echo_n "(cached) " >&6
27051else
27052 ac_check_lib_save_LIBS=$LIBS
27053LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027055/* end confdefs.h. */
27056
27057/* Override any GCC internal prototype to avoid an error.
27058 Use char because int might match the return type of a GCC
27059 builtin and then its argument prototype would still apply. */
27060#ifdef __cplusplus
27061extern "C"
27062#endif
27063char umem_alloc ();
27064int
27065main ()
27066{
27067return umem_alloc ();
27068 ;
27069 return 0;
27070}
27071_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027072if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027073 ac_cv_lib_umem_umem_alloc=yes
27074else
cristy8b350f62009-11-15 23:12:43 +000027075 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027076fi
cristy8b350f62009-11-15 23:12:43 +000027077rm -f core conftest.err conftest.$ac_objext \
27078 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027079LIBS=$ac_check_lib_save_LIBS
27080fi
cristy8b350f62009-11-15 23:12:43 +000027081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027082$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027083if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027084 passed=`expr $passed + 1`
27085else
27086 failed=`expr $failed + 1`
27087fi
27088
cristy8b350f62009-11-15 23:12:43 +000027089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027090$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027091if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027092 $as_echo_n "(cached) " >&6
27093else
27094 ac_check_lib_save_LIBS=$LIBS
27095LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027097/* end confdefs.h. */
27098
27099/* Override any GCC internal prototype to avoid an error.
27100 Use char because int might match the return type of a GCC
27101 builtin and then its argument prototype would still apply. */
27102#ifdef __cplusplus
27103extern "C"
27104#endif
27105char umem_free ();
27106int
27107main ()
27108{
27109return umem_free ();
27110 ;
27111 return 0;
27112}
27113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027114if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027115 ac_cv_lib_umem_umem_free=yes
27116else
cristy8b350f62009-11-15 23:12:43 +000027117 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027118fi
cristy8b350f62009-11-15 23:12:43 +000027119rm -f core conftest.err conftest.$ac_objext \
27120 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027121LIBS=$ac_check_lib_save_LIBS
27122fi
cristy8b350f62009-11-15 23:12:43 +000027123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027124$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027125if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027126 passed=`expr $passed + 1`
27127else
27128 failed=`expr $failed + 1`
27129fi
27130
cristy8b350f62009-11-15 23:12:43 +000027131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027132$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27133 if test $passed -gt 0; then
27134 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027135 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27136$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027137 have_umem='no (failed tests)'
27138 else
27139 UMEM_LIBS='-lumem'
27140 LIBS="$UMEM_LIBS $LIBS"
27141
cristy8b350f62009-11-15 23:12:43 +000027142$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027143
cristy09b53e12011-10-14 12:47:22 +000027144 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27145$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027146 have_umem='yes'
27147 fi
27148 else
cristy09b53e12011-10-14 12:47:22 +000027149 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27150$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027151 fi
27152fi
cristy73bd4a52010-10-05 11:24:23 +000027153 if test "$have_umem" = 'yes'; then
27154 HasUMEM_TRUE=
27155 HasUMEM_FALSE='#'
27156else
27157 HasUMEM_TRUE='#'
27158 HasUMEM_FALSE=
27159fi
27160
cristy3ed852e2009-09-05 21:47:34 +000027161
27162
27163#
27164# Add support for ccmalloc memory debugging library if requested
27165#
27166have_ccmalloc='no'
27167CCMALLOC_LIBS=''
27168if test "$enable_ccmalloc" = 'yes'; then
27169 # Extract the first word of "ccmalloc", so it can be a program name with args.
27170set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027172$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027173if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027174 $as_echo_n "(cached) " >&6
27175else
27176 case $CCMALLOCDelegate in
27177 [\\/]* | ?:[\\/]*)
27178 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27179 ;;
27180 *)
27181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27182for as_dir in $PATH
27183do
27184 IFS=$as_save_IFS
27185 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027186 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027188 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027190 break 2
27191 fi
27192done
cristy8b350f62009-11-15 23:12:43 +000027193 done
cristy3ed852e2009-09-05 21:47:34 +000027194IFS=$as_save_IFS
27195
27196 ;;
27197esac
27198fi
27199CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27200if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027202$as_echo "$CCMALLOCDelegate" >&6; }
27203else
cristy8b350f62009-11-15 23:12:43 +000027204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027205$as_echo "no" >&6; }
27206fi
27207
27208
27209 if test -n "$CCMALLOCDelegate"; then
27210 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27211 OLIBS="$LIBS"
27212 # Assume that gcc is used with ccmalloc.
27213 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027215$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027216if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027217 $as_echo_n "(cached) " >&6
27218else
27219 ac_check_lib_save_LIBS=$LIBS
27220LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027222/* end confdefs.h. */
27223
27224/* Override any GCC internal prototype to avoid an error.
27225 Use char because int might match the return type of a GCC
27226 builtin and then its argument prototype would still apply. */
27227#ifdef __cplusplus
27228extern "C"
27229#endif
27230char ccmalloc_malloc ();
27231int
27232main ()
27233{
27234return ccmalloc_malloc ();
27235 ;
27236 return 0;
27237}
27238_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027239if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027240 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27241else
cristy8b350f62009-11-15 23:12:43 +000027242 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027243fi
cristy8b350f62009-11-15 23:12:43 +000027244rm -f core conftest.err conftest.$ac_objext \
27245 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027246LIBS=$ac_check_lib_save_LIBS
27247fi
cristy8b350f62009-11-15 23:12:43 +000027248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027249$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027250if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027251 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27252fi
27253
27254 if test -n "$CCMALLOC_LIBS"; then
27255 LIBS="$OLIBS"
27256 LIBS="$LIBS $CCMALLOC_LIBS"
27257 have_ccmalloc='yes'
27258 else
27259 LIBS="$OLIBS"
27260 fi
27261 fi
27262fi
27263
27264#
27265# Add support for efence memory debugging library if requested
27266#
27267if test "$enable_efence" = 'yes'; then
27268 EFENCE_LIBS='-lefence'
27269 LIBS="$EFENCE_LIBS $LIBS"
27270fi
27271
cristy3ed852e2009-09-05 21:47:34 +000027272
27273#
27274# Check for BZLIB
27275#
27276
27277
27278# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027279if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027280 withval=$with_bzlib; with_bzlib=$withval
27281else
27282 with_bzlib='yes'
27283fi
27284
27285
27286if test "$with_bzlib" != 'yes'; then
27287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27288fi
27289
27290have_bzlib='no'
27291if test "$with_bzlib" != 'no'; then
27292 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027293 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27294$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027296$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027297 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27298$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027299 failed=0
27300 passed=0
27301 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027302 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027303if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027304 passed=`expr $passed + 1`
27305else
27306 failed=`expr $failed + 1`
27307fi
27308
27309
cristy8b350f62009-11-15 23:12:43 +000027310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027311$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027312if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027313 $as_echo_n "(cached) " >&6
27314else
27315 ac_check_lib_save_LIBS=$LIBS
27316LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027318/* end confdefs.h. */
27319
27320/* Override any GCC internal prototype to avoid an error.
27321 Use char because int might match the return type of a GCC
27322 builtin and then its argument prototype would still apply. */
27323#ifdef __cplusplus
27324extern "C"
27325#endif
27326char BZ2_bzDecompress ();
27327int
27328main ()
27329{
27330return BZ2_bzDecompress ();
27331 ;
27332 return 0;
27333}
27334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027335if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027336 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27337else
cristy8b350f62009-11-15 23:12:43 +000027338 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027339fi
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 +000027342LIBS=$ac_check_lib_save_LIBS
27343fi
cristy8b350f62009-11-15 23:12:43 +000027344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027345$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027346if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027347 found_libbz=`expr $found_libbz + 1`
27348fi
27349
27350 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027352$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027353if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027354 $as_echo_n "(cached) " >&6
27355else
27356 ac_check_lib_save_LIBS=$LIBS
27357LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027359/* end confdefs.h. */
27360
27361/* Override any GCC internal prototype to avoid an error.
27362 Use char because int might match the return type of a GCC
27363 builtin and then its argument prototype would still apply. */
27364#ifdef __cplusplus
27365extern "C"
27366#endif
27367char _imp__BZ2_decompress ();
27368int
27369main ()
27370{
27371return _imp__BZ2_decompress ();
27372 ;
27373 return 0;
27374}
27375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027376if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027377 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27378else
cristy8b350f62009-11-15 23:12:43 +000027379 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027380fi
cristy8b350f62009-11-15 23:12:43 +000027381rm -f core conftest.err conftest.$ac_objext \
27382 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027383LIBS=$ac_check_lib_save_LIBS
27384fi
cristy8b350f62009-11-15 23:12:43 +000027385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027386$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027387if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027388 found_libbz=`expr $found_libbz + 1`
27389fi
27390
27391 fi
27392 if test $found_libbz -gt 0; then
27393 passed=`expr $passed + 1`
27394 else
27395 failed=`expr $failed + 1`
27396 fi
cristy8b350f62009-11-15 23:12:43 +000027397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027398$as_echo_n "checking if BZLIB package is complete... " >&6; }
27399 if test $passed -gt 0; then
27400 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027401 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27402$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027403 have_bzlib='no (failed tests)'
27404 else
27405 BZLIB_LIBS='-lbz2'
27406 LIBS="$BZLIB_LIBS $LIBS"
27407
cristy8b350f62009-11-15 23:12:43 +000027408$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027409
cristy09b53e12011-10-14 12:47:22 +000027410 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27411$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027412 have_bzlib='yes'
27413 fi
27414 else
cristy09b53e12011-10-14 12:47:22 +000027415 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27416$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027417 fi
27418fi
cristy73bd4a52010-10-05 11:24:23 +000027419 if test "$have_bzlib" = 'yes'; then
27420 BZLIB_DELEGATE_TRUE=
27421 BZLIB_DELEGATE_FALSE='#'
27422else
27423 BZLIB_DELEGATE_TRUE='#'
27424 BZLIB_DELEGATE_FALSE=
27425fi
27426
cristy3ed852e2009-09-05 21:47:34 +000027427
27428
27429#
27430# Find the X11 include and library directories.
27431#
27432IPC_LIBS=''
27433X11_LIBS=''
27434XEXT_LIBS=''
27435XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027437$as_echo_n "checking for X... " >&6; }
27438
27439
27440# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027441if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027442 withval=$with_x;
27443fi
27444
27445# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27446if test "x$with_x" = xno; then
27447 # The user explicitly disabled X.
27448 have_x=disabled
27449else
27450 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027451 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027452 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027453 $as_echo_n "(cached) " >&6
27454else
27455 # One or both of the vars are not set, and there is no cached value.
27456ac_x_includes=no ac_x_libraries=no
27457rm -f -r conftest.dir
27458if mkdir conftest.dir; then
27459 cd conftest.dir
27460 cat >Imakefile <<'_ACEOF'
27461incroot:
27462 @echo incroot='${INCROOT}'
27463usrlibdir:
27464 @echo usrlibdir='${USRLIBDIR}'
27465libdir:
27466 @echo libdir='${LIBDIR}'
27467_ACEOF
27468 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027469 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027470 for ac_var in incroot usrlibdir libdir; do
27471 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27472 done
27473 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27474 for ac_extension in a so sl dylib la dll; do
27475 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27476 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27477 ac_im_usrlibdir=$ac_im_libdir; break
27478 fi
27479 done
27480 # Screen out bogus values from the imake configuration. They are
27481 # bogus both because they are the default anyway, and because
27482 # using them would break gcc on systems where it needs fixed includes.
27483 case $ac_im_incroot in
27484 /usr/include) ac_x_includes= ;;
27485 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27486 esac
27487 case $ac_im_usrlibdir in
27488 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27489 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27490 esac
27491 fi
27492 cd ..
27493 rm -f -r conftest.dir
27494fi
27495
27496# Standard set of common directories for X headers.
27497# Check X11 before X11Rn because it is often a symlink to the current release.
27498ac_x_header_dirs='
27499/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027500/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027501/usr/X11R6/include
27502/usr/X11R5/include
27503/usr/X11R4/include
27504
27505/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027506/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027507/usr/include/X11R6
27508/usr/include/X11R5
27509/usr/include/X11R4
27510
27511/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027512/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027513/usr/local/X11R6/include
27514/usr/local/X11R5/include
27515/usr/local/X11R4/include
27516
27517/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027518/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027519/usr/local/include/X11R6
27520/usr/local/include/X11R5
27521/usr/local/include/X11R4
27522
27523/usr/X386/include
27524/usr/x386/include
27525/usr/XFree86/include/X11
27526
27527/usr/include
27528/usr/local/include
27529/usr/unsupported/include
27530/usr/athena/include
27531/usr/local/x11r5/include
27532/usr/lpp/Xamples/include
27533
27534/usr/openwin/include
27535/usr/openwin/share/include'
27536
27537if test "$ac_x_includes" = no; then
27538 # Guess where to find include files, by looking for Xlib.h.
27539 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027541/* end confdefs.h. */
27542#include <X11/Xlib.h>
27543_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027544if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027545 # We can compile using X headers with no special include directory.
27546ac_x_includes=
27547else
cristyc7083c12009-10-14 03:16:55 +000027548 for ac_dir in $ac_x_header_dirs; do
27549 if test -r "$ac_dir/X11/Xlib.h"; then
27550 ac_x_includes=$ac_dir
27551 break
27552 fi
27553done
27554fi
cristyda16f162011-02-19 23:52:17 +000027555rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027556fi # $ac_x_includes = no
27557
27558if test "$ac_x_libraries" = no; then
27559 # Check for the libraries.
27560 # See if we find them without any special options.
27561 # Don't add to $LIBS permanently.
27562 ac_save_LIBS=$LIBS
27563 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027565/* end confdefs.h. */
27566#include <X11/Xlib.h>
27567int
27568main ()
27569{
27570XrmInitialize ()
27571 ;
27572 return 0;
27573}
27574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027575if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027576 LIBS=$ac_save_LIBS
27577# We can link X programs with no special library path.
27578ac_x_libraries=
27579else
cristy8b350f62009-11-15 23:12:43 +000027580 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027581for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27582do
27583 # Don't even attempt the hair of trying to link an X program!
27584 for ac_extension in a so sl dylib la dll; do
27585 if test -r "$ac_dir/libX11.$ac_extension"; then
27586 ac_x_libraries=$ac_dir
27587 break 2
27588 fi
27589 done
27590done
27591fi
cristy8b350f62009-11-15 23:12:43 +000027592rm -f core conftest.err conftest.$ac_objext \
27593 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027594fi # $ac_x_libraries = no
27595
27596case $ac_x_includes,$ac_x_libraries in #(
27597 no,* | *,no | *\'*)
27598 # Didn't find X, or a directory has "'" in its name.
27599 ac_cv_have_x="have_x=no";; #(
27600 *)
27601 # Record where we found X for the cache.
27602 ac_cv_have_x="have_x=yes\
27603 ac_x_includes='$ac_x_includes'\
27604 ac_x_libraries='$ac_x_libraries'"
27605esac
27606fi
27607;; #(
27608 *) have_x=yes;;
27609 esac
27610 eval "$ac_cv_have_x"
27611fi # $with_x != no
27612
27613if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027615$as_echo "$have_x" >&6; }
27616 no_x=yes
27617else
27618 # If each of the values was on the command line, it overrides each guess.
27619 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27620 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27621 # Update the cache value to reflect the command line values.
27622 ac_cv_have_x="have_x=yes\
27623 ac_x_includes='$x_includes'\
27624 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027626$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27627fi
27628
cristy3ed852e2009-09-05 21:47:34 +000027629if test "$no_x" = yes; then
27630 # Not all programs may use this symbol, but it does not hurt to define it.
27631
cristy8b350f62009-11-15 23:12:43 +000027632$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027633
27634 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27635else
27636 if test -n "$x_includes"; then
27637 X_CFLAGS="$X_CFLAGS -I$x_includes"
27638 fi
27639
27640 # It would also be nice to do this for all -L options, not just this one.
27641 if test -n "$x_libraries"; then
27642 X_LIBS="$X_LIBS -L$x_libraries"
27643 # For Solaris; some versions of Sun CC require a space after -R and
27644 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027646$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27647 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27648 ac_xsave_c_werror_flag=$ac_c_werror_flag
27649 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027651/* end confdefs.h. */
27652
27653int
27654main ()
27655{
27656
27657 ;
27658 return 0;
27659}
27660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027661if ac_fn_c_try_link "$LINENO"; then :
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027663$as_echo "no" >&6; }
27664 X_LIBS="$X_LIBS -R$x_libraries"
27665else
cristy8b350f62009-11-15 23:12:43 +000027666 LIBS="$ac_xsave_LIBS -R $x_libraries"
27667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027668/* end confdefs.h. */
27669
27670int
27671main ()
27672{
27673
27674 ;
27675 return 0;
27676}
27677_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027678if ac_fn_c_try_link "$LINENO"; then :
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027680$as_echo "yes" >&6; }
27681 X_LIBS="$X_LIBS -R $x_libraries"
27682else
cristy8b350f62009-11-15 23:12:43 +000027683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027684$as_echo "neither works" >&6; }
27685fi
cristy8b350f62009-11-15 23:12:43 +000027686rm -f core conftest.err conftest.$ac_objext \
27687 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027688fi
cristy8b350f62009-11-15 23:12:43 +000027689rm -f core conftest.err conftest.$ac_objext \
27690 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027691 ac_c_werror_flag=$ac_xsave_c_werror_flag
27692 LIBS=$ac_xsave_LIBS
27693 fi
27694
27695 # Check for system-dependent libraries X programs must link with.
27696 # Do this before checking for the system-independent R6 libraries
27697 # (-lICE), since we may need -lsocket or whatever for X linking.
27698
27699 if test "$ISC" = yes; then
27700 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27701 else
27702 # Martyn Johnson says this is needed for Ultrix, if the X
27703 # libraries were built with DECnet support. And Karl Berry says
27704 # the Alpha needs dnet_stub (dnet does not exist).
27705 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027707/* end confdefs.h. */
27708
27709/* Override any GCC internal prototype to avoid an error.
27710 Use char because int might match the return type of a GCC
27711 builtin and then its argument prototype would still apply. */
27712#ifdef __cplusplus
27713extern "C"
27714#endif
27715char XOpenDisplay ();
27716int
27717main ()
27718{
27719return XOpenDisplay ();
27720 ;
27721 return 0;
27722}
27723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027724if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027725
cristy8b350f62009-11-15 23:12:43 +000027726else
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027728$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027729if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027730 $as_echo_n "(cached) " >&6
27731else
27732 ac_check_lib_save_LIBS=$LIBS
27733LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027735/* end confdefs.h. */
27736
27737/* Override any GCC internal prototype to avoid an error.
27738 Use char because int might match the return type of a GCC
27739 builtin and then its argument prototype would still apply. */
27740#ifdef __cplusplus
27741extern "C"
27742#endif
27743char dnet_ntoa ();
27744int
27745main ()
27746{
27747return dnet_ntoa ();
27748 ;
27749 return 0;
27750}
27751_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027752if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027753 ac_cv_lib_dnet_dnet_ntoa=yes
27754else
cristy8b350f62009-11-15 23:12:43 +000027755 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027756fi
cristy8b350f62009-11-15 23:12:43 +000027757rm -f core conftest.err conftest.$ac_objext \
27758 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027759LIBS=$ac_check_lib_save_LIBS
27760fi
cristy8b350f62009-11-15 23:12:43 +000027761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027762$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027763if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027764 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27765fi
27766
27767 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027769$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027770if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027771 $as_echo_n "(cached) " >&6
27772else
27773 ac_check_lib_save_LIBS=$LIBS
27774LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027776/* end confdefs.h. */
27777
27778/* Override any GCC internal prototype to avoid an error.
27779 Use char because int might match the return type of a GCC
27780 builtin and then its argument prototype would still apply. */
27781#ifdef __cplusplus
27782extern "C"
27783#endif
27784char dnet_ntoa ();
27785int
27786main ()
27787{
27788return dnet_ntoa ();
27789 ;
27790 return 0;
27791}
27792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027793if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027794 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27795else
cristy8b350f62009-11-15 23:12:43 +000027796 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027797fi
cristy8b350f62009-11-15 23:12:43 +000027798rm -f core conftest.err conftest.$ac_objext \
27799 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027800LIBS=$ac_check_lib_save_LIBS
27801fi
cristy8b350f62009-11-15 23:12:43 +000027802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027803$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027804if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027805 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27806fi
27807
27808 fi
27809fi
cristy8b350f62009-11-15 23:12:43 +000027810rm -f core conftest.err conftest.$ac_objext \
27811 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027812 LIBS="$ac_xsave_LIBS"
27813
27814 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27815 # to get the SysV transport functions.
27816 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27817 # needs -lnsl.
27818 # The nsl library prevents programs from opening the X display
27819 # on Irix 5.2, according to T.E. Dickey.
27820 # The functions gethostbyname, getservbyname, and inet_addr are
27821 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027822 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027823if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027824
cristy3ed852e2009-09-05 21:47:34 +000027825fi
27826
cristy3ed852e2009-09-05 21:47:34 +000027827 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027829$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027830if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027831 $as_echo_n "(cached) " >&6
27832else
27833 ac_check_lib_save_LIBS=$LIBS
27834LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027836/* end confdefs.h. */
27837
27838/* Override any GCC internal prototype to avoid an error.
27839 Use char because int might match the return type of a GCC
27840 builtin and then its argument prototype would still apply. */
27841#ifdef __cplusplus
27842extern "C"
27843#endif
27844char gethostbyname ();
27845int
27846main ()
27847{
27848return gethostbyname ();
27849 ;
27850 return 0;
27851}
27852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027853if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027854 ac_cv_lib_nsl_gethostbyname=yes
27855else
cristy8b350f62009-11-15 23:12:43 +000027856 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027857fi
cristy8b350f62009-11-15 23:12:43 +000027858rm -f core conftest.err conftest.$ac_objext \
27859 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027860LIBS=$ac_check_lib_save_LIBS
27861fi
cristy8b350f62009-11-15 23:12:43 +000027862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027863$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027864if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027865 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27866fi
27867
27868 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027870$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027871if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027872 $as_echo_n "(cached) " >&6
27873else
27874 ac_check_lib_save_LIBS=$LIBS
27875LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027877/* end confdefs.h. */
27878
27879/* Override any GCC internal prototype to avoid an error.
27880 Use char because int might match the return type of a GCC
27881 builtin and then its argument prototype would still apply. */
27882#ifdef __cplusplus
27883extern "C"
27884#endif
27885char gethostbyname ();
27886int
27887main ()
27888{
27889return gethostbyname ();
27890 ;
27891 return 0;
27892}
27893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027894if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027895 ac_cv_lib_bsd_gethostbyname=yes
27896else
cristy8b350f62009-11-15 23:12:43 +000027897 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027898fi
cristy8b350f62009-11-15 23:12:43 +000027899rm -f core conftest.err conftest.$ac_objext \
27900 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027901LIBS=$ac_check_lib_save_LIBS
27902fi
cristy8b350f62009-11-15 23:12:43 +000027903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027904$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027905if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027906 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27907fi
27908
27909 fi
27910 fi
27911
27912 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27913 # socket/setsockopt and other routines are undefined under SCO ODT
27914 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27915 # on later versions), says Simon Leinen: it contains gethostby*
27916 # variants that don't use the name server (or something). -lsocket
27917 # must be given before -lnsl if both are needed. We assume that
27918 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027919 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027920if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027921
cristy3ed852e2009-09-05 21:47:34 +000027922fi
27923
cristy3ed852e2009-09-05 21:47:34 +000027924 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027926$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027927if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027928 $as_echo_n "(cached) " >&6
27929else
27930 ac_check_lib_save_LIBS=$LIBS
27931LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027933/* end confdefs.h. */
27934
27935/* Override any GCC internal prototype to avoid an error.
27936 Use char because int might match the return type of a GCC
27937 builtin and then its argument prototype would still apply. */
27938#ifdef __cplusplus
27939extern "C"
27940#endif
27941char connect ();
27942int
27943main ()
27944{
27945return connect ();
27946 ;
27947 return 0;
27948}
27949_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027950if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027951 ac_cv_lib_socket_connect=yes
27952else
cristy8b350f62009-11-15 23:12:43 +000027953 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027954fi
cristy8b350f62009-11-15 23:12:43 +000027955rm -f core conftest.err conftest.$ac_objext \
27956 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027957LIBS=$ac_check_lib_save_LIBS
27958fi
cristy8b350f62009-11-15 23:12:43 +000027959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027960$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027961if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027962 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27963fi
27964
27965 fi
27966
27967 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027968 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027969if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027970
cristy3ed852e2009-09-05 21:47:34 +000027971fi
27972
cristy3ed852e2009-09-05 21:47:34 +000027973 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027975$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027976if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027977 $as_echo_n "(cached) " >&6
27978else
27979 ac_check_lib_save_LIBS=$LIBS
27980LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027982/* end confdefs.h. */
27983
27984/* Override any GCC internal prototype to avoid an error.
27985 Use char because int might match the return type of a GCC
27986 builtin and then its argument prototype would still apply. */
27987#ifdef __cplusplus
27988extern "C"
27989#endif
27990char remove ();
27991int
27992main ()
27993{
27994return remove ();
27995 ;
27996 return 0;
27997}
27998_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027999if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028000 ac_cv_lib_posix_remove=yes
28001else
cristy8b350f62009-11-15 23:12:43 +000028002 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000028003fi
cristy8b350f62009-11-15 23:12:43 +000028004rm -f core conftest.err conftest.$ac_objext \
28005 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028006LIBS=$ac_check_lib_save_LIBS
28007fi
cristy8b350f62009-11-15 23:12:43 +000028008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000028009$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000028010if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028011 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28012fi
28013
28014 fi
28015
28016 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000028017 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000028018if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028019
cristy3ed852e2009-09-05 21:47:34 +000028020fi
28021
cristy3ed852e2009-09-05 21:47:34 +000028022 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000028023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028024$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028025if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028026 $as_echo_n "(cached) " >&6
28027else
28028 ac_check_lib_save_LIBS=$LIBS
28029LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028031/* end confdefs.h. */
28032
28033/* Override any GCC internal prototype to avoid an error.
28034 Use char because int might match the return type of a GCC
28035 builtin and then its argument prototype would still apply. */
28036#ifdef __cplusplus
28037extern "C"
28038#endif
28039char shmat ();
28040int
28041main ()
28042{
28043return shmat ();
28044 ;
28045 return 0;
28046}
28047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028048if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028049 ac_cv_lib_ipc_shmat=yes
28050else
cristy8b350f62009-11-15 23:12:43 +000028051 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028052fi
cristy8b350f62009-11-15 23:12:43 +000028053rm -f core conftest.err conftest.$ac_objext \
28054 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028055LIBS=$ac_check_lib_save_LIBS
28056fi
cristy8b350f62009-11-15 23:12:43 +000028057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028058$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028059if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028060 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28061fi
28062
28063 fi
28064 fi
28065
28066 # Check for libraries that X11R6 Xt/Xaw programs need.
28067 ac_save_LDFLAGS=$LDFLAGS
28068 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28069 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28070 # check for ICE first), but we must link in the order -lSM -lICE or
28071 # we get undefined symbols. So assume we have SM if we have ICE.
28072 # These have to be linked with before -lX11, unlike the other
28073 # libraries we check for below, so use a different variable.
28074 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028076$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028077if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028078 $as_echo_n "(cached) " >&6
28079else
28080 ac_check_lib_save_LIBS=$LIBS
28081LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028083/* end confdefs.h. */
28084
28085/* Override any GCC internal prototype to avoid an error.
28086 Use char because int might match the return type of a GCC
28087 builtin and then its argument prototype would still apply. */
28088#ifdef __cplusplus
28089extern "C"
28090#endif
28091char IceConnectionNumber ();
28092int
28093main ()
28094{
28095return IceConnectionNumber ();
28096 ;
28097 return 0;
28098}
28099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028100if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028101 ac_cv_lib_ICE_IceConnectionNumber=yes
28102else
cristy8b350f62009-11-15 23:12:43 +000028103 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028104fi
cristy8b350f62009-11-15 23:12:43 +000028105rm -f core conftest.err conftest.$ac_objext \
28106 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028107LIBS=$ac_check_lib_save_LIBS
28108fi
cristy8b350f62009-11-15 23:12:43 +000028109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028110$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028111if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028112 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28113fi
28114
28115 LDFLAGS=$ac_save_LDFLAGS
28116
28117fi
28118
28119if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000028120 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28121$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028123$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028124 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28125$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028126 LDFLAGS="$LDFLAGS $X_LIBS"
28127 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28128 LIBS="$X11_LIBS $LIBS"
28129 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28130
28131
cristy8b350f62009-11-15 23:12:43 +000028132$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028133
28134 #
28135 # Check for X11 shared memory extension
28136 #
28137 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028138 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028139if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028140 have_shmctl='yes'
28141fi
28142
28143 if test "$have_shmctl" != 'yes'; then
28144 PERSIST_LIBS=$LIBS
28145 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028147/* end confdefs.h. */
28148
28149/* Override any GCC internal prototype to avoid an error.
28150 Use char because int might match the return type of a GCC
28151 builtin and then its argument prototype would still apply. */
28152#ifdef __cplusplus
28153extern "C"
28154#endif
28155char shmctl ();
28156int
28157main ()
28158{
28159return shmctl ();
28160 ;
28161 return 0;
28162}
28163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028164if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028165 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028166fi
cristy8b350f62009-11-15 23:12:43 +000028167rm -f core conftest.err conftest.$ac_objext \
28168 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028169 LIBS=$PERSIST_LIBS
28170 fi
28171
28172 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028174$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028175if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028176 $as_echo_n "(cached) " >&6
28177else
28178 ac_check_lib_save_LIBS=$LIBS
28179LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028181/* end confdefs.h. */
28182
28183/* Override any GCC internal prototype to avoid an error.
28184 Use char because int might match the return type of a GCC
28185 builtin and then its argument prototype would still apply. */
28186#ifdef __cplusplus
28187extern "C"
28188#endif
28189char XShmAttach ();
28190int
28191main ()
28192{
28193return XShmAttach ();
28194 ;
28195 return 0;
28196}
28197_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028198if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028199 ac_cv_lib_Xext_XShmAttach=yes
28200else
cristy8b350f62009-11-15 23:12:43 +000028201 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028202fi
cristy8b350f62009-11-15 23:12:43 +000028203rm -f core conftest.err conftest.$ac_objext \
28204 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028205LIBS=$ac_check_lib_save_LIBS
28206fi
cristy8b350f62009-11-15 23:12:43 +000028207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028208$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028209if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028210 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028211$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028212
28213fi
28214
28215 fi
28216
28217 #
28218 # Check for X11 shape extension
28219 #
cristy8b350f62009-11-15 23:12:43 +000028220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028221$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028222if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028223 $as_echo_n "(cached) " >&6
28224else
28225 ac_check_lib_save_LIBS=$LIBS
28226LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028228/* end confdefs.h. */
28229
28230/* Override any GCC internal prototype to avoid an error.
28231 Use char because int might match the return type of a GCC
28232 builtin and then its argument prototype would still apply. */
28233#ifdef __cplusplus
28234extern "C"
28235#endif
28236char XShapeCombineMask ();
28237int
28238main ()
28239{
28240return XShapeCombineMask ();
28241 ;
28242 return 0;
28243}
28244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028245if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028246 ac_cv_lib_Xext_XShapeCombineMask=yes
28247else
cristy8b350f62009-11-15 23:12:43 +000028248 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028249fi
cristy8b350f62009-11-15 23:12:43 +000028250rm -f core conftest.err conftest.$ac_objext \
28251 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028252LIBS=$ac_check_lib_save_LIBS
28253fi
cristy8b350f62009-11-15 23:12:43 +000028254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028255$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028256if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028257 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028258$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028259
28260fi
28261
cristy8b350f62009-11-15 23:12:43 +000028262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028263$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028264if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028265 $as_echo_n "(cached) " >&6
28266else
28267 ac_check_lib_save_LIBS=$LIBS
28268LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028270/* end confdefs.h. */
28271
28272/* Override any GCC internal prototype to avoid an error.
28273 Use char because int might match the return type of a GCC
28274 builtin and then its argument prototype would still apply. */
28275#ifdef __cplusplus
28276extern "C"
28277#endif
28278char XtSetEventDispatcher ();
28279int
28280main ()
28281{
28282return XtSetEventDispatcher ();
28283 ;
28284 return 0;
28285}
28286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028287if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028288 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28289else
cristy8b350f62009-11-15 23:12:43 +000028290 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028291fi
cristy8b350f62009-11-15 23:12:43 +000028292rm -f core conftest.err conftest.$ac_objext \
28293 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028294LIBS=$ac_check_lib_save_LIBS
28295fi
cristy8b350f62009-11-15 23:12:43 +000028296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028297$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028298if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028299 XT_LIBS='-lXt'
28300fi
28301
28302 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28303fi
28304if test "$no_x" != 'yes'; then
28305 have_x='yes'
28306else
28307 have_x='no'
28308fi
cristy73bd4a52010-10-05 11:24:23 +000028309 if test "$have_x" = 'yes'; then
28310 X11_DELEGATE_TRUE=
28311 X11_DELEGATE_FALSE='#'
28312else
28313 X11_DELEGATE_TRUE='#'
28314 X11_DELEGATE_FALSE=
28315fi
28316
cristy3ed852e2009-09-05 21:47:34 +000028317
28318
28319
28320
28321#
28322# Check for ZLIB
28323#
28324
28325# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028326if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028327 withval=$with_zlib; with_zlib=$withval
28328else
28329 with_zlib='yes'
28330fi
28331
28332
28333if test "$with_zlib" != 'yes'; then
28334 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28335fi
28336
28337have_zlib='no'
28338ZLIB_LIBS=''
28339if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028340 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28341$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028343$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028344 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28345$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028346 ZLIB_LIBS=''
28347 failed=0
28348 passed=0
cristy8b350f62009-11-15 23:12:43 +000028349 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028350if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028351 passed=`expr $passed + 1`
28352else
28353 failed=`expr $failed + 1`
28354fi
28355
28356
cristy8b350f62009-11-15 23:12:43 +000028357 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028358if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028359 passed=`expr $passed + 1`
28360else
28361 failed=`expr $failed + 1`
28362fi
28363
28364
cristy8b350f62009-11-15 23:12:43 +000028365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028366$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028367if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028368 $as_echo_n "(cached) " >&6
28369else
28370 ac_check_lib_save_LIBS=$LIBS
28371LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028373/* end confdefs.h. */
28374
28375/* Override any GCC internal prototype to avoid an error.
28376 Use char because int might match the return type of a GCC
28377 builtin and then its argument prototype would still apply. */
28378#ifdef __cplusplus
28379extern "C"
28380#endif
28381char compress ();
28382int
28383main ()
28384{
28385return compress ();
28386 ;
28387 return 0;
28388}
28389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028390if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028391 ac_cv_lib_z_compress=yes
28392else
cristy8b350f62009-11-15 23:12:43 +000028393 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028394fi
cristy8b350f62009-11-15 23:12:43 +000028395rm -f core conftest.err conftest.$ac_objext \
28396 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028397LIBS=$ac_check_lib_save_LIBS
28398fi
cristy8b350f62009-11-15 23:12:43 +000028399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028400$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028401if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028402 passed=`expr $passed + 1`
28403else
28404 failed=`expr $failed + 1`
28405fi
28406
cristy8b350f62009-11-15 23:12:43 +000028407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028408$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028409if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028410 $as_echo_n "(cached) " >&6
28411else
28412 ac_check_lib_save_LIBS=$LIBS
28413LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028415/* end confdefs.h. */
28416
28417/* Override any GCC internal prototype to avoid an error.
28418 Use char because int might match the return type of a GCC
28419 builtin and then its argument prototype would still apply. */
28420#ifdef __cplusplus
28421extern "C"
28422#endif
28423char uncompress ();
28424int
28425main ()
28426{
28427return uncompress ();
28428 ;
28429 return 0;
28430}
28431_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028432if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028433 ac_cv_lib_z_uncompress=yes
28434else
cristy8b350f62009-11-15 23:12:43 +000028435 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028436fi
cristy8b350f62009-11-15 23:12:43 +000028437rm -f core conftest.err conftest.$ac_objext \
28438 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028439LIBS=$ac_check_lib_save_LIBS
28440fi
cristy8b350f62009-11-15 23:12:43 +000028441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028442$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028443if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028444 passed=`expr $passed + 1`
28445else
28446 failed=`expr $failed + 1`
28447fi
28448
cristy8b350f62009-11-15 23:12:43 +000028449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028450$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028451if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028452 $as_echo_n "(cached) " >&6
28453else
28454 ac_check_lib_save_LIBS=$LIBS
28455LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028457/* end confdefs.h. */
28458
28459/* Override any GCC internal prototype to avoid an error.
28460 Use char because int might match the return type of a GCC
28461 builtin and then its argument prototype would still apply. */
28462#ifdef __cplusplus
28463extern "C"
28464#endif
28465char deflate ();
28466int
28467main ()
28468{
28469return deflate ();
28470 ;
28471 return 0;
28472}
28473_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028474if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028475 ac_cv_lib_z_deflate=yes
28476else
cristy8b350f62009-11-15 23:12:43 +000028477 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028478fi
cristy8b350f62009-11-15 23:12:43 +000028479rm -f core conftest.err conftest.$ac_objext \
28480 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028481LIBS=$ac_check_lib_save_LIBS
28482fi
cristy8b350f62009-11-15 23:12:43 +000028483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028484$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028485if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028486 passed=`expr $passed + 1`
28487else
28488 failed=`expr $failed + 1`
28489fi
28490
cristy8b350f62009-11-15 23:12:43 +000028491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028492$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028493if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028494 $as_echo_n "(cached) " >&6
28495else
28496 ac_check_lib_save_LIBS=$LIBS
28497LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028499/* end confdefs.h. */
28500
28501/* Override any GCC internal prototype to avoid an error.
28502 Use char because int might match the return type of a GCC
28503 builtin and then its argument prototype would still apply. */
28504#ifdef __cplusplus
28505extern "C"
28506#endif
28507char inflate ();
28508int
28509main ()
28510{
28511return inflate ();
28512 ;
28513 return 0;
28514}
28515_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028516if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028517 ac_cv_lib_z_inflate=yes
28518else
cristy8b350f62009-11-15 23:12:43 +000028519 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028520fi
cristy8b350f62009-11-15 23:12:43 +000028521rm -f core conftest.err conftest.$ac_objext \
28522 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028523LIBS=$ac_check_lib_save_LIBS
28524fi
cristy8b350f62009-11-15 23:12:43 +000028525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028526$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028527if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028528 passed=`expr $passed + 1`
28529else
28530 failed=`expr $failed + 1`
28531fi
28532
cristy8b350f62009-11-15 23:12:43 +000028533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028534$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028535if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028536 $as_echo_n "(cached) " >&6
28537else
28538 ac_check_lib_save_LIBS=$LIBS
28539LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028541/* end confdefs.h. */
28542
28543/* Override any GCC internal prototype to avoid an error.
28544 Use char because int might match the return type of a GCC
28545 builtin and then its argument prototype would still apply. */
28546#ifdef __cplusplus
28547extern "C"
28548#endif
28549char gzseek ();
28550int
28551main ()
28552{
28553return gzseek ();
28554 ;
28555 return 0;
28556}
28557_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028558if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028559 ac_cv_lib_z_gzseek=yes
28560else
cristy8b350f62009-11-15 23:12:43 +000028561 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028562fi
cristy8b350f62009-11-15 23:12:43 +000028563rm -f core conftest.err conftest.$ac_objext \
28564 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028565LIBS=$ac_check_lib_save_LIBS
28566fi
cristy8b350f62009-11-15 23:12:43 +000028567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028568$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028569if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028570 passed=`expr $passed + 1`
28571else
28572 failed=`expr $failed + 1`
28573fi
28574
cristy8b350f62009-11-15 23:12:43 +000028575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028576$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028577if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028578 $as_echo_n "(cached) " >&6
28579else
28580 ac_check_lib_save_LIBS=$LIBS
28581LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028583/* end confdefs.h. */
28584
28585/* Override any GCC internal prototype to avoid an error.
28586 Use char because int might match the return type of a GCC
28587 builtin and then its argument prototype would still apply. */
28588#ifdef __cplusplus
28589extern "C"
28590#endif
28591char gztell ();
28592int
28593main ()
28594{
28595return gztell ();
28596 ;
28597 return 0;
28598}
28599_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028600if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028601 ac_cv_lib_z_gztell=yes
28602else
cristy8b350f62009-11-15 23:12:43 +000028603 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028604fi
cristy8b350f62009-11-15 23:12:43 +000028605rm -f core conftest.err conftest.$ac_objext \
28606 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028607LIBS=$ac_check_lib_save_LIBS
28608fi
cristy8b350f62009-11-15 23:12:43 +000028609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028610$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028611if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028612 passed=`expr $passed + 1`
28613else
28614 failed=`expr $failed + 1`
28615fi
28616
cristy8b350f62009-11-15 23:12:43 +000028617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028618$as_echo_n "checking if ZLIB package is complete... " >&6; }
28619 if test $passed -gt 0; then
28620 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028621 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28622$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028623 have_zlib='no (failed tests)'
28624 else
28625 ZLIB_LIBS='-lz'
28626 LIBS="$ZLIB_LIBS $LIBS"
28627
cristy8b350f62009-11-15 23:12:43 +000028628$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028629
cristy09b53e12011-10-14 12:47:22 +000028630 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28631$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028632 have_zlib='yes'
28633 fi
28634 else
cristy09b53e12011-10-14 12:47:22 +000028635 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28636$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028637 fi
28638fi
cristy73bd4a52010-10-05 11:24:23 +000028639 if test "$have_zlib" = 'yes'; then
28640 ZLIB_DELEGATE_TRUE=
28641 ZLIB_DELEGATE_FALSE='#'
28642else
28643 ZLIB_DELEGATE_TRUE='#'
28644 ZLIB_DELEGATE_FALSE=
28645fi
28646
cristy3ed852e2009-09-05 21:47:34 +000028647
28648
28649#
28650# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28651#
28652LIB_DL=''
28653if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028655$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028656if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028657 $as_echo_n "(cached) " >&6
28658else
28659 ac_check_lib_save_LIBS=$LIBS
28660LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028662/* end confdefs.h. */
28663
28664/* Override any GCC internal prototype to avoid an error.
28665 Use char because int might match the return type of a GCC
28666 builtin and then its argument prototype would still apply. */
28667#ifdef __cplusplus
28668extern "C"
28669#endif
28670char dlopen ();
28671int
28672main ()
28673{
28674return dlopen ();
28675 ;
28676 return 0;
28677}
28678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028679if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028680 ac_cv_lib_dl_dlopen=yes
28681else
cristy8b350f62009-11-15 23:12:43 +000028682 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028683fi
cristy8b350f62009-11-15 23:12:43 +000028684rm -f core conftest.err conftest.$ac_objext \
28685 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028686LIBS=$ac_check_lib_save_LIBS
28687fi
cristy8b350f62009-11-15 23:12:43 +000028688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028689$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028690if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028691 LIB_DL='-ldl'
28692fi
28693
28694 LIBS="$LIB_DL $LIBS"
28695fi
28696
28697
28698
28699#
28700# Check for Autotrace delegate library.
28701#
28702
28703# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028704if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028705 withval=$with_autotrace; with_autotrace=$withval
28706else
28707 with_autotrace='no'
28708fi
28709
28710
28711if test "$with_autotrace" != 'yes'; then
28712 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28713fi
28714
28715have_autotrace='no'
28716AUTOTRACE_CFLAGS=""
28717AUTOTRACE_LIBS=""
28718AUTOTRACE_PKG=""
28719if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028720 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28721$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028722
28723pkg_failed=no
28724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28725$as_echo_n "checking for AUTOTRACE... " >&6; }
28726
28727if test -n "$AUTOTRACE_CFLAGS"; then
28728 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28729 elif test -n "$PKG_CONFIG"; then
28730 if test -n "$PKG_CONFIG" && \
28731 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28732 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28733 ac_status=$?
28734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28735 test $ac_status = 0; }; then
28736 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28737else
28738 pkg_failed=yes
28739fi
28740 else
28741 pkg_failed=untried
28742fi
28743if test -n "$AUTOTRACE_LIBS"; then
28744 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28745 elif test -n "$PKG_CONFIG"; then
28746 if test -n "$PKG_CONFIG" && \
28747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28748 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28749 ac_status=$?
28750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28751 test $ac_status = 0; }; then
28752 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28753else
28754 pkg_failed=yes
28755fi
28756 else
28757 pkg_failed=untried
28758fi
28759
28760
28761
28762if test $pkg_failed = yes; then
28763
28764if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28765 _pkg_short_errors_supported=yes
28766else
28767 _pkg_short_errors_supported=no
28768fi
28769 if test $_pkg_short_errors_supported = yes; then
28770 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28771 else
28772 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28773 fi
28774 # Put the nasty error message in config.log where it belongs
28775 echo "$AUTOTRACE_PKG_ERRORS" >&5
28776
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28778$as_echo "no" >&6; }
28779 have_autotrace=no
28780elif test $pkg_failed = untried; then
28781 have_autotrace=no
28782else
28783 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28784 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28786$as_echo "yes" >&6; }
28787 have_autotrace=yes
28788fi
cristy09b53e12011-10-14 12:47:22 +000028789 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28790$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028791fi
28792
28793if test "$have_autotrace" = 'yes'; then
28794 failed=0
28795
cristy8b350f62009-11-15 23:12:43 +000028796$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028797
cristyc6722092012-10-14 00:19:31 +000028798 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028799 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28800 fi
28801fi
28802
cristy73bd4a52010-10-05 11:24:23 +000028803 if test "$have_autotrace" = 'yes'; then
28804 AUTOTRACE_DELEGATE_TRUE=
28805 AUTOTRACE_DELEGATE_FALSE='#'
28806else
28807 AUTOTRACE_DELEGATE_TRUE='#'
28808 AUTOTRACE_DELEGATE_FALSE=
28809fi
28810
cristy3ed852e2009-09-05 21:47:34 +000028811
28812
28813
28814
28815#
28816# Check for Display Postscript delegate library.
28817#
28818
28819# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028820if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028821 withval=$with_dps; with_dps=$withval
28822else
28823 with_dps='yes'
28824fi
28825
28826
28827if test "$with_dps" != 'yes'; then
28828 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28829fi
28830
28831have_dps='no'
28832DPS_LIBS=''
28833if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028834 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28835$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028837$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028838 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28839$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028840 failed=0
28841 passed=0
28842 PERSIST_CPPFLAGS="$CPPFLAGS"
28843 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028844 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 +000028845if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028846 passed=`expr $passed + 1`
28847else
28848 failed=`expr $failed + 1`
28849fi
28850
28851
28852 # DPS issues:
28853 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28854 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28855 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28856 # ImageMagick itself doesn't use -lXt.
28857 have_libdps='no'
28858 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028860$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028861if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028862 $as_echo_n "(cached) " >&6
28863else
28864 ac_check_lib_save_LIBS=$LIBS
28865LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028867/* end confdefs.h. */
28868
28869/* Override any GCC internal prototype to avoid an error.
28870 Use char because int might match the return type of a GCC
28871 builtin and then its argument prototype would still apply. */
28872#ifdef __cplusplus
28873extern "C"
28874#endif
28875char DPSInitialize ();
28876int
28877main ()
28878{
28879return DPSInitialize ();
28880 ;
28881 return 0;
28882}
28883_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028884if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028885 ac_cv_lib_dps_DPSInitialize=yes
28886else
cristy8b350f62009-11-15 23:12:43 +000028887 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028888fi
cristy8b350f62009-11-15 23:12:43 +000028889rm -f core conftest.err conftest.$ac_objext \
28890 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028891LIBS=$ac_check_lib_save_LIBS
28892fi
cristy8b350f62009-11-15 23:12:43 +000028893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028894$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028895if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028896 have_libdps='yes'
28897else
28898 have_libdps='no'
28899fi
28900
28901 if test "$have_libdps" != 'yes'; then
28902 # Unset cache variable so we can try again.
28903 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028905$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028906if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028907 $as_echo_n "(cached) " >&6
28908else
28909 ac_check_lib_save_LIBS=$LIBS
28910LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028912/* end confdefs.h. */
28913
28914/* Override any GCC internal prototype to avoid an error.
28915 Use char because int might match the return type of a GCC
28916 builtin and then its argument prototype would still apply. */
28917#ifdef __cplusplus
28918extern "C"
28919#endif
28920char DPSInitialize ();
28921int
28922main ()
28923{
28924return DPSInitialize ();
28925 ;
28926 return 0;
28927}
28928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028929if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028930 ac_cv_lib_dps_DPSInitialize=yes
28931else
cristy8b350f62009-11-15 23:12:43 +000028932 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028933fi
cristy8b350f62009-11-15 23:12:43 +000028934rm -f core conftest.err conftest.$ac_objext \
28935 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028936LIBS=$ac_check_lib_save_LIBS
28937fi
cristy8b350f62009-11-15 23:12:43 +000028938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028939$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028940if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028941 have_libdps='yes'
28942else
28943 have_libdps='no'
28944fi
28945
28946 if test "$have_libdps" = 'yes'; then
28947 LIBDPS_XT='-lXt'
28948 fi
28949 fi
28950 if test "$have_libdps" = 'yes'; then
28951 passed=`expr $passed + 1`
28952 else
28953 failed=`expr $failed + 1`
28954 fi
cristy8b350f62009-11-15 23:12:43 +000028955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028956$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028957if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028958 $as_echo_n "(cached) " >&6
28959else
28960 ac_check_lib_save_LIBS=$LIBS
28961LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028963/* end confdefs.h. */
28964
28965/* Override any GCC internal prototype to avoid an error.
28966 Use char because int might match the return type of a GCC
28967 builtin and then its argument prototype would still apply. */
28968#ifdef __cplusplus
28969extern "C"
28970#endif
28971char XDPSPixelsPerPoint ();
28972int
28973main ()
28974{
28975return XDPSPixelsPerPoint ();
28976 ;
28977 return 0;
28978}
28979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028980if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028981 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28982else
cristy8b350f62009-11-15 23:12:43 +000028983 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028984fi
cristy8b350f62009-11-15 23:12:43 +000028985rm -f core conftest.err conftest.$ac_objext \
28986 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028987LIBS=$ac_check_lib_save_LIBS
28988fi
cristy8b350f62009-11-15 23:12:43 +000028989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028990$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028991if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028992 passed=`expr $passed + 1`
28993else
28994 failed=`expr $failed + 1`
28995fi
28996
cristy8b350f62009-11-15 23:12:43 +000028997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028998$as_echo_n "checking if DPS package is complete... " >&6; }
28999 if test $passed -gt 0; then
29000 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029001 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29002$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029003 have_dps='no (failed tests)'
29004 CPPFLAGS="$PERSIST_CPPFLAGS"
29005 else
29006 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29007 LIBS="$DPS_LIBS $LIBS"
29008
cristy8b350f62009-11-15 23:12:43 +000029009$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029010
cristy09b53e12011-10-14 12:47:22 +000029011 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29012$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029013 have_dps='yes'
29014 fi
29015 else
cristy09b53e12011-10-14 12:47:22 +000029016 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29017$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029018 CPPFLAGS=$PERSIST_CPPFLAGS
29019 fi
29020fi
cristy73bd4a52010-10-05 11:24:23 +000029021 if test "$have_dps" = 'yes'; then
29022 DPS_DELEGATE_TRUE=
29023 DPS_DELEGATE_FALSE='#'
29024else
29025 DPS_DELEGATE_TRUE='#'
29026 DPS_DELEGATE_FALSE=
29027fi
29028
cristy3ed852e2009-09-05 21:47:34 +000029029
29030
29031
29032#
29033# Check for DJVU delegate library.
29034#
29035
29036# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000029037if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029038 withval=$with_djvu; with_djvu=$withval
29039else
29040 with_djvu='yes'
29041fi
29042
29043
29044if test "$with_djvu" != 'yes'; then
29045 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29046fi
29047
29048have_djvu='no'
29049DJVU_LIBS=''
29050if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029051 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29052$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000029054$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029055 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29056$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029057 failed=0
29058 passed=0
cristy8b350f62009-11-15 23:12:43 +000029059 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 +000029060if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029061 passed=`expr $passed + 1`
29062else
29063 failed=`expr $failed + 1`
29064fi
29065
29066
cristy8b350f62009-11-15 23:12:43 +000029067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000029068$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029069if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029070 $as_echo_n "(cached) " >&6
29071else
29072 ac_check_lib_save_LIBS=$LIBS
29073LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029075/* end confdefs.h. */
29076
29077/* Override any GCC internal prototype to avoid an error.
29078 Use char because int might match the return type of a GCC
29079 builtin and then its argument prototype would still apply. */
29080#ifdef __cplusplus
29081extern "C"
29082#endif
29083char ddjvu_context_create ();
29084int
29085main ()
29086{
29087return ddjvu_context_create ();
29088 ;
29089 return 0;
29090}
29091_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029092if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029093 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29094else
cristy8b350f62009-11-15 23:12:43 +000029095 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000029096fi
cristy8b350f62009-11-15 23:12:43 +000029097rm -f core conftest.err conftest.$ac_objext \
29098 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029099LIBS=$ac_check_lib_save_LIBS
29100fi
cristy8b350f62009-11-15 23:12:43 +000029101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000029102$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000029103if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029104 passed=`expr $passed + 1`
29105else
29106 failed=`expr $failed + 1`
29107fi
29108
cristy8b350f62009-11-15 23:12:43 +000029109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029110$as_echo_n "checking if DJVU package is complete... " >&6; }
29111 if test $passed -gt 0; then
29112 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029113 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29114$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029115 have_djvu='no (failed tests)'
29116 else
29117 DJVU_LIBS='-ldjvulibre'
29118 LIBS="$DJVU_LIBS $LIBS"
29119
cristy8b350f62009-11-15 23:12:43 +000029120$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029121
cristy09b53e12011-10-14 12:47:22 +000029122 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29123$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029124 have_djvu='yes'
29125 fi
29126 else
cristy09b53e12011-10-14 12:47:22 +000029127 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29128$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029129 fi
29130fi
cristy73bd4a52010-10-05 11:24:23 +000029131 if test "$have_djvu" = 'yes'; then
29132 DJVU_DELEGATE_TRUE=
29133 DJVU_DELEGATE_FALSE='#'
29134else
29135 DJVU_DELEGATE_TRUE='#'
29136 DJVU_DELEGATE_FALSE=
29137fi
29138
cristy3ed852e2009-09-05 21:47:34 +000029139
29140
29141
29142#
cristy430a7312010-01-21 20:44:04 +000029143# Set DejaVu font directory.
29144#
29145
29146# Check whether --with-dejavu-font-dir was given.
29147if test "${with_dejavu_font_dir+set}" = set; then :
29148 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29149else
29150 with_dejavu_font_dir='default'
29151fi
29152
29153
29154if test "$with_dejavu_font_dir" != 'default'; then
29155 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29156fi
29157
29158
29159#
cristy3ed852e2009-09-05 21:47:34 +000029160# Check for FFTW delegate library.
29161#
29162
29163# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029164if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029165 withval=$with_fftw; with_fftw=$withval
29166else
29167 with_fftw='yes'
29168fi
29169
29170
29171if test "$with_fftw" != 'yes'; then
29172 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29173fi
29174
cristy81beccd2011-10-03 18:17:24 +000029175have_fftw='no'
29176FFTW_LIBS=''
29177if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029178 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29179$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29181$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029182 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29183$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029184 failed=0
29185 passed=0
29186 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29187if test "x$ac_cv_header_fftw3_h" = xyes; then :
29188 passed=`expr $passed + 1`
29189else
29190 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029191fi
29192
cristy81beccd2011-10-03 18:17:24 +000029193
29194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29195$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29196if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29197 $as_echo_n "(cached) " >&6
29198else
29199 ac_check_lib_save_LIBS=$LIBS
29200LIBS="-lfftw3 $LIBS"
29201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29202/* end confdefs.h. */
29203
29204/* Override any GCC internal prototype to avoid an error.
29205 Use char because int might match the return type of a GCC
29206 builtin and then its argument prototype would still apply. */
29207#ifdef __cplusplus
29208extern "C"
29209#endif
29210char fftw_execute ();
29211int
29212main ()
29213{
29214return fftw_execute ();
29215 ;
29216 return 0;
29217}
29218_ACEOF
29219if ac_fn_c_try_link "$LINENO"; then :
29220 ac_cv_lib_fftw3_fftw_execute=yes
29221else
29222 ac_cv_lib_fftw3_fftw_execute=no
29223fi
29224rm -f core conftest.err conftest.$ac_objext \
29225 conftest$ac_exeext conftest.$ac_ext
29226LIBS=$ac_check_lib_save_LIBS
29227fi
29228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29229$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29230if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29231 passed=`expr $passed + 1`
29232else
29233 failed=`expr $failed + 1`
29234fi
29235
29236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29237$as_echo_n "checking if FFTW package is complete... " >&6; }
29238 if test $passed -gt 0; then
29239 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029240 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29241$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029242 have_fftw='no (failed tests)'
29243 else
29244 FFTW_LIBS='-lfftw3'
29245 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029246
cristy8b350f62009-11-15 23:12:43 +000029247$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029248
cristy09b53e12011-10-14 12:47:22 +000029249 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29250$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029251 have_fftw='yes'
29252 fi
29253 else
cristy09b53e12011-10-14 12:47:22 +000029254 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29255$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029256 fi
29257fi
cristy73bd4a52010-10-05 11:24:23 +000029258 if test "$have_fftw" = 'yes'; then
29259 FFTW_DELEGATE_TRUE=
29260 FFTW_DELEGATE_FALSE='#'
29261else
29262 FFTW_DELEGATE_TRUE='#'
29263 FFTW_DELEGATE_FALSE=
29264fi
29265
cristy3ed852e2009-09-05 21:47:34 +000029266
29267
29268
29269#
29270# Check for FlashPIX delegate library.
29271#
29272
29273# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029274if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029275 withval=$with_fpx; with_fpx=$withval
29276else
29277 with_fpx='yes'
29278fi
29279
29280
29281if test "$with_fpx" != 'yes'; then
29282 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29283fi
29284
29285have_fpx='no'
29286FPX_LIBS=''
29287if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029288 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29289$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029291$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029292 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29293$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029294 failed=0
29295 passed=0
29296 ac_ext=cpp
29297ac_cpp='$CXXCPP $CPPFLAGS'
29298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29301
29302
cristy8b350f62009-11-15 23:12:43 +000029303ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029304if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029305 passed=`expr $passed + 1`
29306else
29307 failed=`expr $failed + 1`
29308fi
29309
29310
cristy8b350f62009-11-15 23:12:43 +000029311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029312$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029313if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029314 $as_echo_n "(cached) " >&6
29315else
29316 ac_check_lib_save_LIBS=$LIBS
29317LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029319/* end confdefs.h. */
29320
29321/* Override any GCC internal prototype to avoid an error.
29322 Use char because int might match the return type of a GCC
29323 builtin and then its argument prototype would still apply. */
29324#ifdef __cplusplus
29325extern "C"
29326#endif
29327char FPX_OpenImageByFilename ();
29328int
29329main ()
29330{
29331return FPX_OpenImageByFilename ();
29332 ;
29333 return 0;
29334}
29335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029336if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029337 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29338else
cristy8b350f62009-11-15 23:12:43 +000029339 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029340fi
cristy8b350f62009-11-15 23:12:43 +000029341rm -f core conftest.err conftest.$ac_objext \
29342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029343LIBS=$ac_check_lib_save_LIBS
29344fi
cristy8b350f62009-11-15 23:12:43 +000029345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029346$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029347if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029348 passed=`expr $passed + 1`
29349else
29350 failed=`expr $failed + 1`
29351fi
29352
29353 ac_ext=c
29354ac_cpp='$CPP $CPPFLAGS'
29355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29357ac_compiler_gnu=$ac_cv_c_compiler_gnu
29358
cristy8b350f62009-11-15 23:12:43 +000029359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029360$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29361 if test $passed -gt 0; then
29362 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029363 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29364$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029365 have_fpx='no (failed tests)'
29366 else
29367 FPX_LIBS='-lfpx'
29368
cristy8b350f62009-11-15 23:12:43 +000029369$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029370
cristy09b53e12011-10-14 12:47:22 +000029371 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29372$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029373 have_fpx='yes'
29374 PERLMAINCC="$CXX"
29375 fi
29376 else
cristy09b53e12011-10-14 12:47:22 +000029377 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29378$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029379 fi
29380fi
cristy73bd4a52010-10-05 11:24:23 +000029381 if test "$have_fpx" = 'yes'; then
29382 FPX_DELEGATE_TRUE=
29383 FPX_DELEGATE_FALSE='#'
29384else
29385 FPX_DELEGATE_TRUE='#'
29386 FPX_DELEGATE_FALSE=
29387fi
29388
cristy3ed852e2009-09-05 21:47:34 +000029389
29390
29391
29392#
29393# Check for fontconfig delegate library.
29394#
29395
29396# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029397if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029398 withval=$with_fontconfig; with_fontconfig=$withval
29399else
cristyfc3d0222012-02-07 15:05:57 +000029400 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029401fi
29402
29403
29404if test "$with_fontconfig" != 'yes'; then
29405 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29406fi
29407
29408have_fontconfig='no'
29409FONTCONFIG_CFLAGS=""
29410FONTCONFIG_LIBS=""
29411FONTCONFIG_PKG=""
29412if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029413 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29414$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029415
29416pkg_failed=no
29417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29418$as_echo_n "checking for FONTCONFIG... " >&6; }
29419
29420if test -n "$FONTCONFIG_CFLAGS"; then
29421 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29422 elif test -n "$PKG_CONFIG"; then
29423 if test -n "$PKG_CONFIG" && \
29424 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29425 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29426 ac_status=$?
29427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29428 test $ac_status = 0; }; then
29429 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29430else
29431 pkg_failed=yes
29432fi
29433 else
29434 pkg_failed=untried
29435fi
29436if test -n "$FONTCONFIG_LIBS"; then
29437 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29438 elif test -n "$PKG_CONFIG"; then
29439 if test -n "$PKG_CONFIG" && \
29440 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29441 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29442 ac_status=$?
29443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29444 test $ac_status = 0; }; then
29445 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29446else
29447 pkg_failed=yes
29448fi
29449 else
29450 pkg_failed=untried
29451fi
29452
29453
29454
29455if test $pkg_failed = yes; then
29456
29457if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29458 _pkg_short_errors_supported=yes
29459else
29460 _pkg_short_errors_supported=no
29461fi
29462 if test $_pkg_short_errors_supported = yes; then
29463 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29464 else
29465 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29466 fi
29467 # Put the nasty error message in config.log where it belongs
29468 echo "$FONTCONFIG_PKG_ERRORS" >&5
29469
29470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29471$as_echo "no" >&6; }
29472 have_fontconfig=no
29473elif test $pkg_failed = untried; then
29474 have_fontconfig=no
29475else
29476 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29477 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29479$as_echo "yes" >&6; }
29480 have_fontconfig=yes
29481fi
cristy09b53e12011-10-14 12:47:22 +000029482 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29483$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029484fi
29485
29486if test "$have_fontconfig" = 'yes'; then
29487
cristy8b350f62009-11-15 23:12:43 +000029488$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029489
cristyc6722092012-10-14 00:19:31 +000029490 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029491 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029492 fi
cristy3ed852e2009-09-05 21:47:34 +000029493fi
29494
cristy73bd4a52010-10-05 11:24:23 +000029495 if test "$have_fontconfig" = 'yes'; then
29496 FONTCONFIG_DELEGATE_TRUE=
29497 FONTCONFIG_DELEGATE_FALSE='#'
29498else
29499 FONTCONFIG_DELEGATE_TRUE='#'
29500 FONTCONFIG_DELEGATE_FALSE=
29501fi
29502
cristy3ed852e2009-09-05 21:47:34 +000029503
29504
29505
29506
29507#
cristy81beccd2011-10-03 18:17:24 +000029508# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029509#
29510
29511# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029512if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029513 withval=$with_freetype; with_freetype=$withval
29514else
29515 with_freetype='yes'
29516fi
29517
29518
cristy81beccd2011-10-03 18:17:24 +000029519
cristy3ed852e2009-09-05 21:47:34 +000029520if test "$with_freetype" != 'yes'; then
29521 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29522fi
29523
cristy81beccd2011-10-03 18:17:24 +000029524have_freetype='no'
29525FREETYPE_LIBS=''
29526if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029527 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29528$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29530$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029531 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29532$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029533 failed=0
29534 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029535 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029536 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029537 freetype_config=''
29538 # Allow the user to specify the location of freetype.
29539 if test "$with_freetype" != 'yes'; then
29540 if test -x "${with_freetype}/bin/freetype-config"; then
29541 freetype_config="${with_freetype}/bin/freetype-config"
29542 elif test -x "${with_freetype}"; then
29543 freetype_config=${with_freetype}
29544 fi
29545 fi
29546 if test -z "$freetype_config"; then
29547 # Extract the first word of "freetype-config", so it can be a program name with args.
29548set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29550$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029551if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029552 $as_echo_n "(cached) " >&6
29553else
cristy98ca0f52011-10-08 23:19:10 +000029554 case $freetype_config in
29555 [\\/]* | ?:[\\/]*)
29556 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29557 ;;
29558 *)
29559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029560for as_dir in $PATH
29561do
29562 IFS=$as_save_IFS
29563 test -z "$as_dir" && as_dir=.
29564 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000029565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000029566 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29568 break 2
29569 fi
29570done
29571 done
29572IFS=$as_save_IFS
29573
cristy98ca0f52011-10-08 23:19:10 +000029574 ;;
29575esac
cristy81beccd2011-10-03 18:17:24 +000029576fi
cristy98ca0f52011-10-08 23:19:10 +000029577freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029578if test -n "$freetype_config"; then
29579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29580$as_echo "$freetype_config" >&6; }
29581else
29582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29583$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029584fi
29585
cristy98ca0f52011-10-08 23:19:10 +000029586 fi
29587 if test -n "$freetype_config"; then
29588 freetype_prefix=`${freetype_config} --prefix`
29589 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29590 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29591 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029592 fi
29593
29594 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029596$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29597if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29598 $as_echo_n "(cached) " >&6
29599else
29600 ac_check_lib_save_LIBS=$LIBS
29601LIBS="-lfreetype $LIBS"
29602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29603/* end confdefs.h. */
29604
29605/* Override any GCC internal prototype to avoid an error.
29606 Use char because int might match the return type of a GCC
29607 builtin and then its argument prototype would still apply. */
29608#ifdef __cplusplus
29609extern "C"
29610#endif
29611char FT_Init_FreeType ();
29612int
29613main ()
29614{
29615return FT_Init_FreeType ();
29616 ;
29617 return 0;
29618}
29619_ACEOF
29620if ac_fn_c_try_link "$LINENO"; then :
29621 ac_cv_lib_freetype_FT_Init_FreeType=yes
29622else
29623 ac_cv_lib_freetype_FT_Init_FreeType=no
29624fi
29625rm -f core conftest.err conftest.$ac_objext \
29626 conftest$ac_exeext conftest.$ac_ext
29627LIBS=$ac_check_lib_save_LIBS
29628fi
29629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29630$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29631if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29632 FREETYPE_LIBS='-lfreetype'
29633fi
29634
cristy98ca0f52011-10-08 23:19:10 +000029635 if test "$FREETYPE_LIBS" != ''; then
29636 passed=`expr $passed + 1`
29637 else
29638 failed=`expr $failed + 1`
29639 LDFLAGS="$PERSIST_LDFLAGS"
29640 fi
cristy81beccd2011-10-03 18:17:24 +000029641 fi
29642
29643 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29644if test "x$ac_cv_header_ft2build_h" = xyes; then :
29645 FT2BUILD_H='#include <ft2build.h>'
29646else
29647 ft2build=''
29648fi
29649
29650
29651 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29652"
29653if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29654 have_freetype_h='yes'
29655else
29656 have_freetype_h='no'
29657fi
29658
29659
cristy98ca0f52011-10-08 23:19:10 +000029660 if test "$have_freetype_h" = 'yes'; then
29661 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029662 else
cristy98ca0f52011-10-08 23:19:10 +000029663 failed=`expr $failed + 1`
29664 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029665 fi
29666
29667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29668$as_echo_n "checking if FreeType package is complete... " >&6; }
29669 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029670 if test $failed -gt 0; then
29671 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029672 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29673$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029674 have_freetype='no (failed tests)'
29675 else
29676 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029677
cristy8b350f62009-11-15 23:12:43 +000029678$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029679
cristy98ca0f52011-10-08 23:19:10 +000029680 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029681
29682$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29683
cristy81beccd2011-10-03 18:17:24 +000029684 fi
cristy09b53e12011-10-14 12:47:22 +000029685 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29686$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029687 have_freetype='yes'
29688 fi
cristy81beccd2011-10-03 18:17:24 +000029689 else
cristy09b53e12011-10-14 12:47:22 +000029690 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29691$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029692 fi
29693fi
cristy73bd4a52010-10-05 11:24:23 +000029694 if test "$have_freetype" = 'yes'; then
29695 FREETYPE_DELEGATE_TRUE=
29696 FREETYPE_DELEGATE_FALSE='#'
29697else
29698 FREETYPE_DELEGATE_TRUE='#'
29699 FREETYPE_DELEGATE_FALSE=
29700fi
29701
cristy3ed852e2009-09-05 21:47:34 +000029702
29703
29704
cristy3ed852e2009-09-05 21:47:34 +000029705#
29706# Check for Ghostscript library or framework.
29707#
29708# Test for iapi.h & test for gsapi_new_instance in -lgs
29709# or -framework Ghostscript
29710
29711
29712# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029713if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029714 withval=$with_gslib; with_gslib=$withval
29715else
29716 with_gslib='no'
29717fi
29718
29719
cristyb7931f12009-09-25 10:22:21 +000029720gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029721if test "$with_gslib" != 'yes'; then
29722 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29723fi
29724
29725have_gslib='no'
29726GS_LIBS=''
29727if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029728 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29729$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029731$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029732 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29733$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029734 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029735 failed=0
29736 passed=0
cristy8b350f62009-11-15 23:12:43 +000029737 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 +000029738if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029739 passed=`expr $passed + 1`
29740else
29741 failed=`expr $failed + 1`
29742fi
29743
29744
cristy8b350f62009-11-15 23:12:43 +000029745 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 +000029746if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029747 passed=`expr $passed + 1`
29748else
29749 failed=`expr $failed + 1`
29750fi
29751
29752
cristy73bd4a52010-10-05 11:24:23 +000029753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29754$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029755if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029756 $as_echo_n "(cached) " >&6
29757else
29758 ac_check_framework_save_LIBS=$LIBS
29759LIBS="-framework Ghostscript $LIBS"
29760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29761/* end confdefs.h. */
29762
29763/* Override any GCC internal prototype to avoid an error.
29764 Use char because int might match the return type of a GCC
29765 builtin and then its argument prototype would still apply. */
29766#ifdef __cplusplus
29767extern "C"
29768#endif
29769char gsapi_new_instance ();
29770int
29771main ()
29772{
29773return gsapi_new_instance ();
29774 ;
29775 return 0;
29776}
29777_ACEOF
29778if ac_fn_c_try_link "$LINENO"; then :
29779 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29780else
29781 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29782fi
29783rm -f core conftest.err conftest.$ac_objext \
29784 conftest$ac_exeext conftest.$ac_ext
29785LIBS=$ac_check_framework_save_LIBS
29786fi
29787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29788$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29789if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29790 framework=`expr $framework + 1`
29791else
29792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029793$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029794if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029795 $as_echo_n "(cached) " >&6
29796else
29797 ac_check_lib_save_LIBS=$LIBS
29798LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029800/* end confdefs.h. */
29801
29802/* Override any GCC internal prototype to avoid an error.
29803 Use char because int might match the return type of a GCC
29804 builtin and then its argument prototype would still apply. */
29805#ifdef __cplusplus
29806extern "C"
29807#endif
29808char gsapi_new_instance ();
29809int
29810main ()
29811{
29812return gsapi_new_instance ();
29813 ;
29814 return 0;
29815}
29816_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029817if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029818 ac_cv_lib_gs_gsapi_new_instance=yes
29819else
cristy8b350f62009-11-15 23:12:43 +000029820 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029821fi
cristy8b350f62009-11-15 23:12:43 +000029822rm -f core conftest.err conftest.$ac_objext \
29823 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029824LIBS=$ac_check_lib_save_LIBS
29825fi
cristy8b350f62009-11-15 23:12:43 +000029826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029827$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029828if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029829 passed=`expr $passed + 1`
29830else
29831 failed=`expr $failed + 1`
29832fi
cristy73bd4a52010-10-05 11:24:23 +000029833
29834fi
cristy8b350f62009-11-15 23:12:43 +000029835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029836$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29837 if test $passed -gt 0; then
29838 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029839 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29840$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029841 have_gslib='no (failed tests)'
29842 else
29843 if test $framework -gt 0; then
29844 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029845 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029846 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29847$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029848 else
cristy09b53e12011-10-14 12:47:22 +000029849 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29850$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029851 GS_LIBS='-lgs'
29852 fi
29853 LIBS="$GS_LIBS $LIBS"
29854
cristy8b350f62009-11-15 23:12:43 +000029855$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029856
29857 have_gslib='yes'
29858 fi
29859 else
cristy09b53e12011-10-14 12:47:22 +000029860 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29861$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029862 fi
29863fi
cristy73bd4a52010-10-05 11:24:23 +000029864 if test "$have_gslib" = 'yes'; then
29865 GS_DELEGATE_TRUE=
29866 GS_DELEGATE_FALSE='#'
29867else
29868 GS_DELEGATE_TRUE='#'
29869 GS_DELEGATE_FALSE=
29870fi
29871
cristy3ed852e2009-09-05 21:47:34 +000029872
29873
29874# Set default font search path
29875
29876# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029877if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029878 withval=$with_fontpath; with_fontpath=$withval
29879else
29880 with_fontpath=''
29881fi
29882
29883
29884if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29885 with_fontpath=''
29886else
29887
29888cat >>confdefs.h <<_ACEOF
29889#define MAGICK_FONT_PATH "$with_fontpath"
29890_ACEOF
29891
29892fi
29893if test "$with_fontpath=" != ''; then
29894 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29895fi
29896
29897# Set Ghostscript font directory
29898
29899# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029900if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029901 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29902else
29903 with_gs_font_dir='default'
29904fi
29905
29906
29907if test "$with_gs_font_dir" != 'default'; then
29908 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29909fi
29910
29911
29912#
29913# Check for GVC delegate library.
29914#
29915
29916# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029917if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029918 withval=$with_gvc; with_gvc=$withval
29919else
cristy1b70dc82012-07-01 23:15:05 +000029920 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029921fi
29922
29923
29924if test "$with_gvc" != 'yes'; then
29925 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29926fi
29927
29928GVC_PKG=""
29929if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029930 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29931$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029932
29933pkg_failed=no
29934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29935$as_echo_n "checking for GVC... " >&6; }
29936
29937if test -n "$GVC_CFLAGS"; then
29938 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29939 elif test -n "$PKG_CONFIG"; then
29940 if test -n "$PKG_CONFIG" && \
29941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29942 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29943 ac_status=$?
29944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29945 test $ac_status = 0; }; then
29946 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29947else
29948 pkg_failed=yes
29949fi
29950 else
29951 pkg_failed=untried
29952fi
29953if test -n "$GVC_LIBS"; then
29954 pkg_cv_GVC_LIBS="$GVC_LIBS"
29955 elif test -n "$PKG_CONFIG"; then
29956 if test -n "$PKG_CONFIG" && \
29957 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29958 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29959 ac_status=$?
29960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29961 test $ac_status = 0; }; then
29962 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29963else
29964 pkg_failed=yes
29965fi
29966 else
29967 pkg_failed=untried
29968fi
29969
29970
29971
29972if test $pkg_failed = yes; then
29973
29974if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29975 _pkg_short_errors_supported=yes
29976else
29977 _pkg_short_errors_supported=no
29978fi
29979 if test $_pkg_short_errors_supported = yes; then
29980 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29981 else
29982 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29983 fi
29984 # Put the nasty error message in config.log where it belongs
29985 echo "$GVC_PKG_ERRORS" >&5
29986
29987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29988$as_echo "no" >&6; }
29989 have_gvc=no
29990elif test $pkg_failed = untried; then
29991 have_gvc=no
29992else
29993 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29994 GVC_LIBS=$pkg_cv_GVC_LIBS
29995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29996$as_echo "yes" >&6; }
29997 have_gvc=yes
29998fi
cristy09b53e12011-10-14 12:47:22 +000029999 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30000$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030001fi
30002
30003if test "$have_gvc" = 'yes'; then
30004
cristy8b350f62009-11-15 23:12:43 +000030005$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030006
cristyc6722092012-10-14 00:19:31 +000030007 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030008 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
30009 fi
30010fi
30011
cristy73bd4a52010-10-05 11:24:23 +000030012 if test "$have_gvc" = 'yes'; then
30013 GVC_DELEGATE_TRUE=
30014 GVC_DELEGATE_FALSE='#'
30015else
30016 GVC_DELEGATE_TRUE='#'
30017 GVC_DELEGATE_FALSE=
30018fi
30019
cristy3ed852e2009-09-05 21:47:34 +000030020
30021
30022
30023
30024#
30025# Check for JBIG delegate library.
30026#
30027
30028
30029# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000030030if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030031 withval=$with_jbig; with_jbig=$withval
30032else
30033 with_jbig='yes'
30034fi
30035
30036
30037have_jbig='no'
30038JBIG_LIBS=''
30039if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030040 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30041$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030043$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030044 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30045$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030046 failed=0
30047 passed=0
cristy8b350f62009-11-15 23:12:43 +000030048 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030049if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030050 passed=`expr $passed + 1`
30051else
30052 failed=`expr $failed + 1`
30053fi
30054
30055
cristy8b350f62009-11-15 23:12:43 +000030056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030057$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030058if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030059 $as_echo_n "(cached) " >&6
30060else
30061 ac_check_lib_save_LIBS=$LIBS
30062LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030064/* end confdefs.h. */
30065
30066/* Override any GCC internal prototype to avoid an error.
30067 Use char because int might match the return type of a GCC
30068 builtin and then its argument prototype would still apply. */
30069#ifdef __cplusplus
30070extern "C"
30071#endif
30072char jbg_dec_init ();
30073int
30074main ()
30075{
30076return jbg_dec_init ();
30077 ;
30078 return 0;
30079}
30080_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030081if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030082 ac_cv_lib_jbig_jbg_dec_init=yes
30083else
cristy8b350f62009-11-15 23:12:43 +000030084 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030085fi
cristy8b350f62009-11-15 23:12:43 +000030086rm -f core conftest.err conftest.$ac_objext \
30087 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030088LIBS=$ac_check_lib_save_LIBS
30089fi
cristy8b350f62009-11-15 23:12:43 +000030090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030091$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030092if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030093 passed=`expr $passed + 1`
30094else
30095 failed=`expr $failed + 1`
30096fi
30097
cristy8b350f62009-11-15 23:12:43 +000030098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030099$as_echo_n "checking if JBIG package is complete... " >&6; }
30100 if test $passed -gt 0; then
30101 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030102 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30103$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030104 have_jbig='no (failed tests)'
30105 else
30106 JBIG_LIBS='-ljbig'
30107 LIBS="$JBIG_LIBS $LIBS"
30108
cristy8b350f62009-11-15 23:12:43 +000030109$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030110
cristy09b53e12011-10-14 12:47:22 +000030111 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30112$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030113 have_jbig='yes'
30114 fi
30115 else
cristy09b53e12011-10-14 12:47:22 +000030116 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30117$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030118 fi
30119fi
cristy73bd4a52010-10-05 11:24:23 +000030120 if test "$have_jbig" = 'yes'; then
30121 JBIG_DELEGATE_TRUE=
30122 JBIG_DELEGATE_FALSE='#'
30123else
30124 JBIG_DELEGATE_TRUE='#'
30125 JBIG_DELEGATE_FALSE=
30126fi
30127
cristy3ed852e2009-09-05 21:47:34 +000030128
30129
30130
30131#
30132# Check for JPEG delegate library.
30133#
30134
30135# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030136if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030137 withval=$with_jpeg; with_jpeg=$withval
30138else
30139 with_jpeg='yes'
30140fi
30141
30142
30143if test "$with_jpeg" != 'yes'; then
30144 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30145fi
30146
30147have_jpeg='no'
30148JPEG_LIBS=''
30149if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030150 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30151$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030153$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030154 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30155$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030156 failed=0
30157 passed=0
cristy8b350f62009-11-15 23:12:43 +000030158 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030159if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030160 passed=`expr $passed + 1`
30161else
30162 failed=`expr $failed + 1`
30163fi
30164
30165
cristy8b350f62009-11-15 23:12:43 +000030166 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030167if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030168 passed=`expr $passed + 1`
30169else
30170 failed=`expr $failed + 1`
30171fi
30172
30173
cristy8b350f62009-11-15 23:12:43 +000030174 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030175if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030176 passed=`expr $passed + 1`
30177else
30178 failed=`expr $failed + 1`
30179fi
30180
30181
cristy8b350f62009-11-15 23:12:43 +000030182 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030183if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030184 passed=`expr $passed + 1`
30185else
30186 failed=`expr $failed + 1`
30187fi
30188
30189
cristy8b350f62009-11-15 23:12:43 +000030190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030191$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030192if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030193 $as_echo_n "(cached) " >&6
30194else
30195 ac_check_lib_save_LIBS=$LIBS
30196LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030198/* end confdefs.h. */
30199
30200/* Override any GCC internal prototype to avoid an error.
30201 Use char because int might match the return type of a GCC
30202 builtin and then its argument prototype would still apply. */
30203#ifdef __cplusplus
30204extern "C"
30205#endif
30206char jpeg_read_header ();
30207int
30208main ()
30209{
30210return jpeg_read_header ();
30211 ;
30212 return 0;
30213}
30214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030216 ac_cv_lib_jpeg_jpeg_read_header=yes
30217else
cristy8b350f62009-11-15 23:12:43 +000030218 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030219fi
cristy8b350f62009-11-15 23:12:43 +000030220rm -f core conftest.err conftest.$ac_objext \
30221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030222LIBS=$ac_check_lib_save_LIBS
30223fi
cristy8b350f62009-11-15 23:12:43 +000030224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030225$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030226if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030227 passed=`expr $passed + 1`
30228else
30229 failed=`expr $failed + 1`
30230fi
30231
30232
30233# Test for compatible JPEG library
30234if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030236$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030237if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030238 $as_echo_n "(cached) " >&6
30239else
cristy8b350f62009-11-15 23:12:43 +000030240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030241/* end confdefs.h. */
30242#include <stdio.h>
30243#include <stdlib.h>
30244#include <jpeglib.h>
30245
30246int
30247main ()
30248{
30249
30250#if JPEG_LIB_VERSION < 62
30251#error IJG JPEG library must be version 6b or newer!
30252#endif
30253return 0;
30254
30255 ;
30256 return 0;
30257}
30258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030259if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030260 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30261else
cristy8b350f62009-11-15 23:12:43 +000030262 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030263fi
cristy3ed852e2009-09-05 21:47:34 +000030264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30265fi
cristy8b350f62009-11-15 23:12:43 +000030266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030267$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30268fi
cristy8b350f62009-11-15 23:12:43 +000030269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030270$as_echo_n "checking if JPEG package is complete... " >&6; }
30271 if test $passed -gt 0; then
30272 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030273 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30274$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030275 have_jpeg='no (failed tests)'
30276 else
30277 JPEG_LIBS='-ljpeg'
30278 LIBS="$JPEG_LIBS $LIBS"
30279
cristy8b350f62009-11-15 23:12:43 +000030280$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030281
cristy09b53e12011-10-14 12:47:22 +000030282 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30283$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030284 have_jpeg='yes'
30285 fi
30286 else
cristy09b53e12011-10-14 12:47:22 +000030287 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30288$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030289 fi
30290fi
cristy73bd4a52010-10-05 11:24:23 +000030291 if test "$have_jpeg" = 'yes'; then
30292 JPEG_DELEGATE_TRUE=
30293 JPEG_DELEGATE_FALSE='#'
30294else
30295 JPEG_DELEGATE_TRUE='#'
30296 JPEG_DELEGATE_FALSE=
30297fi
30298
cristy3ed852e2009-09-05 21:47:34 +000030299
30300
30301
30302#
30303# Check for JPEG Version 2 delegate library.
30304#
30305
30306# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030307if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030308 withval=$with_jp2; with_jp2=$withval
30309else
30310 with_jp2='yes'
30311fi
30312
30313
30314if test "$with_jp2" != 'yes'; then
30315 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30316fi
30317
30318have_jp2='no'
30319JP2_LIBS=''
30320if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030321 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30322$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030324$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030325 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30326$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030327 failed=0
30328 passed=0
cristy8b350f62009-11-15 23:12:43 +000030329 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 +000030330if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030331 passed=`expr $passed + 1`
30332else
30333 failed=`expr $failed + 1`
30334fi
30335
30336
cristy8b350f62009-11-15 23:12:43 +000030337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030338$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030339if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030340 $as_echo_n "(cached) " >&6
30341else
30342 ac_check_lib_save_LIBS=$LIBS
30343LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030345/* end confdefs.h. */
30346
30347/* Override any GCC internal prototype to avoid an error.
30348 Use char because int might match the return type of a GCC
30349 builtin and then its argument prototype would still apply. */
30350#ifdef __cplusplus
30351extern "C"
30352#endif
30353char jas_stream_fopen ();
30354int
30355main ()
30356{
30357return jas_stream_fopen ();
30358 ;
30359 return 0;
30360}
30361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030362if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030363 ac_cv_lib_jasper_jas_stream_fopen=yes
30364else
cristy8b350f62009-11-15 23:12:43 +000030365 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030366fi
cristy8b350f62009-11-15 23:12:43 +000030367rm -f core conftest.err conftest.$ac_objext \
30368 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030369LIBS=$ac_check_lib_save_LIBS
30370fi
cristy8b350f62009-11-15 23:12:43 +000030371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030372$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030373if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030374 passed=`expr $passed + 1`
30375else
30376 failed=`expr $failed + 1`
30377fi
30378
cristy8b350f62009-11-15 23:12:43 +000030379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030380$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30381 if test $passed -gt 0; then
30382 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030383 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30384$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030385 have_jp2='no (failed tests)'
30386 else
30387 JP2_LIBS='-ljasper'
30388 LIBS="$JP2_LIBS $LIBS"
30389
cristy8b350f62009-11-15 23:12:43 +000030390$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030391
cristy09b53e12011-10-14 12:47:22 +000030392 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30393$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030394 have_jp2='yes'
30395 fi
30396 else
cristy09b53e12011-10-14 12:47:22 +000030397 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30398$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030399 fi
30400fi
cristy73bd4a52010-10-05 11:24:23 +000030401 if test "$have_jp2" = 'yes'; then
30402 JP2_DELEGATE_TRUE=
30403 JP2_DELEGATE_FALSE='#'
30404else
30405 JP2_DELEGATE_TRUE='#'
30406 JP2_DELEGATE_FALSE=
30407fi
30408
cristy3ed852e2009-09-05 21:47:34 +000030409
30410
30411
30412#
30413# Check for LCMS delegate library.
30414#
cristy71203402010-06-18 13:12:03 +000030415# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030416
30417# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030418if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030419 withval=$with_lcms; with_lcms=$withval
30420else
30421 with_lcms='yes'
30422fi
30423
cristy71203402010-06-18 13:12:03 +000030424if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030425 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30426fi
30427
cristy71203402010-06-18 13:12:03 +000030428# Disable LCMS2.
30429
30430# Check whether --with-lcms2 was given.
30431if test "${with_lcms2+set}" = set; then :
30432 withval=$with_lcms2; with_lcms2=$withval
30433else
30434 with_lcms2='yes'
30435fi
30436
30437if test "$with_lcms2" != 'yes' ; then
30438 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30439fi
30440
30441have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030442LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030443if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030444 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30445$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30447$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030448 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30449$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030450 failed=0
30451 passed=0
30452 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030453
30454 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030455 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030456if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030457 have_lcms_header='yes'
30458fi
30459
30460
30461 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030462
30463$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30464
cristy71203402010-06-18 13:12:03 +000030465 passed=`expr $passed + 1`
30466 fi
30467
30468 # Check for <lcms2/lcms2.h)
30469 if test "$have_lcms_header" != 'yes'; then
30470 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 +000030471if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030472 have_lcms_header='yes'
30473fi
30474
30475
cristy71203402010-06-18 13:12:03 +000030476 if test "$have_lcms_header" = 'yes'; then
30477 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030478
cristy71203402010-06-18 13:12:03 +000030479$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030480
cristy71203402010-06-18 13:12:03 +000030481 fi
cristyd09bcf92010-03-25 03:04:45 +000030482 fi
cristy71203402010-06-18 13:12:03 +000030483
30484 # Failed to find lcms header?
30485 if test "$have_lcms_header" != 'yes'; then
30486 failed=`expr $failed + 1`
30487 fi
30488
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30490$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030491if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030492 $as_echo_n "(cached) " >&6
30493else
30494 ac_check_lib_save_LIBS=$LIBS
30495LIBS="-llcms2 $LIBS"
30496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30497/* end confdefs.h. */
30498
30499/* Override any GCC internal prototype to avoid an error.
30500 Use char because int might match the return type of a GCC
30501 builtin and then its argument prototype would still apply. */
30502#ifdef __cplusplus
30503extern "C"
30504#endif
cristy71203402010-06-18 13:12:03 +000030505char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030506int
30507main ()
30508{
cristy71203402010-06-18 13:12:03 +000030509return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030510 ;
30511 return 0;
30512}
30513_ACEOF
30514if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030515 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030516else
cristy71203402010-06-18 13:12:03 +000030517 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030518fi
30519rm -f core conftest.err conftest.$ac_objext \
30520 conftest$ac_exeext conftest.$ac_ext
30521LIBS=$ac_check_lib_save_LIBS
30522fi
cristy71203402010-06-18 13:12:03 +000030523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30524$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030525if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030526 passed=`expr $passed + 1`
30527else
30528 failed=`expr $failed + 1`
30529fi
30530
cristy71203402010-06-18 13:12:03 +000030531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30532$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030533 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030534 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030535 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30536$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030537 have_lcms2='no (failed tests)'
30538 else
30539 LCMS_LIBS='-llcms2'
30540 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030541 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30542$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030543 have_lcms2='yes'
30544 fi
cristyd09bcf92010-03-25 03:04:45 +000030545 else
cristy09b53e12011-10-14 12:47:22 +000030546 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30547$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030548 fi
30549fi
30550
cristy71203402010-06-18 13:12:03 +000030551#
30552# Check for LCMS v1 (1.11 or later)
30553#
30554if test $have_lcms2 = 'yes'; then
30555 with_lcms='no'
30556fi
30557
30558have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030559if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030560 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30561$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30563$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030564 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30565$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030566 failed=0
30567 passed=0
30568 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030569
30570 # Check for <lcms.h>
30571 if test "$have_lcms_header" != 'yes'; then
30572 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030573if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030574 have_lcms_header='yes'
30575fi
30576
30577
cristy71203402010-06-18 13:12:03 +000030578 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030579 passed=`expr $passed + 1`
30580
cristy8b350f62009-11-15 23:12:43 +000030581$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030582
cristy71203402010-06-18 13:12:03 +000030583 fi
30584 fi
30585
30586 # Check for <lcms/lcms.h>
30587 if test "$have_lcms_header" != 'yes'; then
30588 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 +000030589if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030590 have_lcms_header='yes'
30591fi
30592
30593
cristy71203402010-06-18 13:12:03 +000030594 if test "$have_lcms_header" = 'yes'; then
30595 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030596
cristy8b350f62009-11-15 23:12:43 +000030597$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030598
cristy71203402010-06-18 13:12:03 +000030599 fi
cristy3ed852e2009-09-05 21:47:34 +000030600 fi
cristy71203402010-06-18 13:12:03 +000030601
30602 # Failed to find lcms header?
30603 if test "$have_lcms_header" != 'yes'; then
30604 failed=`expr $failed + 1`
30605 fi
30606
30607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30608$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030609if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030610 $as_echo_n "(cached) " >&6
30611else
30612 ac_check_lib_save_LIBS=$LIBS
30613LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030615/* end confdefs.h. */
30616
30617/* Override any GCC internal prototype to avoid an error.
30618 Use char because int might match the return type of a GCC
30619 builtin and then its argument prototype would still apply. */
30620#ifdef __cplusplus
30621extern "C"
30622#endif
cristy71203402010-06-18 13:12:03 +000030623char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030624int
30625main ()
30626{
cristy71203402010-06-18 13:12:03 +000030627return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030628 ;
30629 return 0;
30630}
30631_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030632if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030633 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030634else
cristy71203402010-06-18 13:12:03 +000030635 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030636fi
cristy8b350f62009-11-15 23:12:43 +000030637rm -f core conftest.err conftest.$ac_objext \
30638 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030639LIBS=$ac_check_lib_save_LIBS
30640fi
cristy71203402010-06-18 13:12:03 +000030641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30642$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030643if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030644 passed=`expr $passed + 1`
30645else
30646 failed=`expr $failed + 1`
30647fi
30648
cristy8b350f62009-11-15 23:12:43 +000030649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030650$as_echo_n "checking if LCMS package is complete... " >&6; }
30651 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030652 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030653 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30654$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030655 have_lcms='no (failed tests)'
30656 else
30657 LCMS_LIBS='-llcms'
30658 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030659 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30660$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030661 have_lcms='yes'
30662 fi
cristy3ed852e2009-09-05 21:47:34 +000030663 else
cristy09b53e12011-10-14 12:47:22 +000030664 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30665$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030666 fi
30667fi
cristy71203402010-06-18 13:12:03 +000030668
cristy73bd4a52010-10-05 11:24:23 +000030669 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30670 LCMS_DELEGATE_TRUE=
30671 LCMS_DELEGATE_FALSE='#'
30672else
30673 LCMS_DELEGATE_TRUE='#'
30674 LCMS_DELEGATE_FALSE=
30675fi
30676
cristy71203402010-06-18 13:12:03 +000030677if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30678
30679$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30680
30681fi
30682
cristy3ed852e2009-09-05 21:47:34 +000030683
30684
30685
30686#
30687# Check for the LQR (Liquid Rescale) delegate library.
30688#
30689
30690# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030691if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030692 withval=$with_lqr; with_lqr=$withval
30693else
30694 with_lqr='yes'
30695fi
30696
30697
30698if test "$with_lqr" != 'yes'; then
30699 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30700fi
30701
30702have_lqr='no'
30703LQR_CFLAGS=""
30704LQR_LIBS=""
30705LQR_PKG=""
30706if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030707 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30708$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030709
30710pkg_failed=no
30711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30712$as_echo_n "checking for LQR... " >&6; }
30713
30714if test -n "$LQR_CFLAGS"; then
30715 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30716 elif test -n "$PKG_CONFIG"; then
30717 if test -n "$PKG_CONFIG" && \
30718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30719 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30720 ac_status=$?
30721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30722 test $ac_status = 0; }; then
30723 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30724else
30725 pkg_failed=yes
30726fi
30727 else
30728 pkg_failed=untried
30729fi
30730if test -n "$LQR_LIBS"; then
30731 pkg_cv_LQR_LIBS="$LQR_LIBS"
30732 elif test -n "$PKG_CONFIG"; then
30733 if test -n "$PKG_CONFIG" && \
30734 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30735 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30736 ac_status=$?
30737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30738 test $ac_status = 0; }; then
30739 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30740else
30741 pkg_failed=yes
30742fi
30743 else
30744 pkg_failed=untried
30745fi
30746
30747
30748
30749if test $pkg_failed = yes; then
30750
30751if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30752 _pkg_short_errors_supported=yes
30753else
30754 _pkg_short_errors_supported=no
30755fi
30756 if test $_pkg_short_errors_supported = yes; then
30757 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30758 else
30759 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30760 fi
30761 # Put the nasty error message in config.log where it belongs
30762 echo "$LQR_PKG_ERRORS" >&5
30763
30764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30765$as_echo "no" >&6; }
30766 have_lqr=no
30767elif test $pkg_failed = untried; then
30768 have_lqr=no
30769else
30770 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30771 LQR_LIBS=$pkg_cv_LQR_LIBS
30772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30773$as_echo "yes" >&6; }
30774 have_lqr=yes
30775fi
cristy09b53e12011-10-14 12:47:22 +000030776 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30777$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030778fi
30779
30780if test "$have_lqr" = 'yes'; then
30781
cristy8b350f62009-11-15 23:12:43 +000030782$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030783
30784 CFLAGS="$LQR_CFLAGS $CFLAGS"
30785fi
30786
cristy73bd4a52010-10-05 11:24:23 +000030787 if test "$have_lqr" = 'yes'; then
30788 LQR_DELEGATE_TRUE=
30789 LQR_DELEGATE_FALSE='#'
30790else
30791 LQR_DELEGATE_TRUE='#'
30792 LQR_DELEGATE_FALSE=
30793fi
30794
cristy3ed852e2009-09-05 21:47:34 +000030795
30796
30797
30798
cristy81beccd2011-10-03 18:17:24 +000030799# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030800
30801# Check whether --with-lzma was given.
30802if test "${with_lzma+set}" = set; then :
30803 withval=$with_lzma; with_lzma=$withval
30804else
30805 with_lzma='yes'
30806fi
30807
cristy81beccd2011-10-03 18:17:24 +000030808if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030809 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30810fi
30811
cristyb94e5002011-11-14 13:20:10 +000030812LZMA_PKG=""
30813if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030814 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30815$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030816
30817pkg_failed=no
30818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030819$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030820
30821if test -n "$LZMA_CFLAGS"; then
30822 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30823 elif test -n "$PKG_CONFIG"; then
30824 if test -n "$PKG_CONFIG" && \
30825 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30826 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30827 ac_status=$?
30828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30829 test $ac_status = 0; }; then
30830 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30831else
30832 pkg_failed=yes
30833fi
30834 else
30835 pkg_failed=untried
30836fi
30837if test -n "$LZMA_LIBS"; then
30838 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30839 elif test -n "$PKG_CONFIG"; then
30840 if test -n "$PKG_CONFIG" && \
30841 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30842 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30843 ac_status=$?
30844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30845 test $ac_status = 0; }; then
30846 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30847else
30848 pkg_failed=yes
30849fi
30850 else
30851 pkg_failed=untried
30852fi
30853
30854
30855
30856if test $pkg_failed = yes; then
30857
30858if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30859 _pkg_short_errors_supported=yes
30860else
30861 _pkg_short_errors_supported=no
30862fi
30863 if test $_pkg_short_errors_supported = yes; then
30864 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30865 else
30866 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30867 fi
30868 # Put the nasty error message in config.log where it belongs
30869 echo "$LZMA_PKG_ERRORS" >&5
30870
30871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30872$as_echo "no" >&6; }
30873 have_lzma=no
30874elif test $pkg_failed = untried; then
30875 have_lzma=no
30876else
30877 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30878 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30880$as_echo "yes" >&6; }
30881 have_lzma=yes
30882fi
30883 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030884$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030885fi
30886
cristyb94e5002011-11-14 13:20:10 +000030887if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030888
30889$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30890
cristyc6722092012-10-14 00:19:31 +000030891 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030892 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030893 fi
cristyfbb0ef02010-12-19 02:32:11 +000030894fi
cristyb94e5002011-11-14 13:20:10 +000030895
cristyfbb0ef02010-12-19 02:32:11 +000030896 if test "$have_lzma" = 'yes'; then
30897 LZMA_DELEGATE_TRUE=
30898 LZMA_DELEGATE_FALSE='#'
30899else
30900 LZMA_DELEGATE_TRUE='#'
30901 LZMA_DELEGATE_FALSE=
30902fi
30903
30904
30905
30906
cristyb94e5002011-11-14 13:20:10 +000030907
cristy3ed852e2009-09-05 21:47:34 +000030908#
30909# Check for the OpenEXR delegate library.
30910#
30911
30912# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030913if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030914 withval=$with_openexr; with_openexr=$withval
30915else
30916 with_openexr='yes'
30917fi
30918
30919
30920if test "$with_openexr" != 'yes'; then
30921 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30922fi
30923
30924have_openexr='no'
30925OPENEXR_CFLAGS=""
30926OPENEXR_LIBS=""
30927OPENEXR_PKG=""
30928if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030929 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30930$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030931
30932pkg_failed=no
30933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30934$as_echo_n "checking for OPENEXR... " >&6; }
30935
30936if test -n "$OPENEXR_CFLAGS"; then
30937 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30938 elif test -n "$PKG_CONFIG"; then
30939 if test -n "$PKG_CONFIG" && \
30940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30941 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30942 ac_status=$?
30943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30944 test $ac_status = 0; }; then
30945 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30946else
30947 pkg_failed=yes
30948fi
30949 else
30950 pkg_failed=untried
30951fi
30952if test -n "$OPENEXR_LIBS"; then
30953 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30954 elif test -n "$PKG_CONFIG"; then
30955 if test -n "$PKG_CONFIG" && \
30956 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30957 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30958 ac_status=$?
30959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30960 test $ac_status = 0; }; then
30961 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30962else
30963 pkg_failed=yes
30964fi
30965 else
30966 pkg_failed=untried
30967fi
30968
30969
30970
30971if test $pkg_failed = yes; then
30972
30973if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30974 _pkg_short_errors_supported=yes
30975else
30976 _pkg_short_errors_supported=no
30977fi
30978 if test $_pkg_short_errors_supported = yes; then
30979 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30980 else
30981 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30982 fi
30983 # Put the nasty error message in config.log where it belongs
30984 echo "$OPENEXR_PKG_ERRORS" >&5
30985
30986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30987$as_echo "no" >&6; }
30988 have_openexr=no
30989elif test $pkg_failed = untried; then
30990 have_openexr=no
30991else
30992 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30993 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30995$as_echo "yes" >&6; }
30996 have_openexr=yes
30997fi
cristy09b53e12011-10-14 12:47:22 +000030998 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30999$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031000fi
31001
31002if test "$have_openexr" = 'yes'; then
31003
cristy8b350f62009-11-15 23:12:43 +000031004$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031005
cristyc6722092012-10-14 00:19:31 +000031006 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031007 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
31008 fi
31009fi
31010
cristy73bd4a52010-10-05 11:24:23 +000031011 if test "$have_openexr" = 'yes'; then
31012 OPENEXR_DELEGATE_TRUE=
31013 OPENEXR_DELEGATE_FALSE='#'
31014else
31015 OPENEXR_DELEGATE_TRUE='#'
31016 OPENEXR_DELEGATE_FALSE=
31017fi
31018
cristy3ed852e2009-09-05 21:47:34 +000031019
31020
31021
31022
31023#
cristy41cbe8a2011-10-27 01:35:18 +000031024# Check for PANGO delegate library.
31025#
31026
31027# Check whether --with-pango was given.
31028if test "${with_pango+set}" = set; then :
31029 withval=$with_pango; with_pango=$withval
31030else
cristyfc3d0222012-02-07 15:05:57 +000031031 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000031032fi
31033
31034
31035if test "$with_pango" != 'yes'; then
31036 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31037fi
31038
31039have_pango='no'
cristya054b762012-03-26 23:16:00 +000031040have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031041PANGO_CFLAGS=""
31042PANGO_LIBS=""
31043PANGO_PKG=""
31044if test "x$with_pango" = "xyes"; then
31045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31046$as_echo "-------------------------------------------------------------" >&6; }
31047
31048pkg_failed=no
31049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31050$as_echo_n "checking for PANGO... " >&6; }
31051
31052if test -n "$PANGO_CFLAGS"; then
31053 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31054 elif test -n "$PKG_CONFIG"; then
31055 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031056 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31057 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031058 ac_status=$?
31059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31060 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031061 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031062else
31063 pkg_failed=yes
31064fi
31065 else
31066 pkg_failed=untried
31067fi
31068if test -n "$PANGO_LIBS"; then
31069 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31070 elif test -n "$PKG_CONFIG"; then
31071 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031072 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31073 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031074 ac_status=$?
31075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31076 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031077 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031078else
31079 pkg_failed=yes
31080fi
31081 else
31082 pkg_failed=untried
31083fi
31084
31085
31086
31087if test $pkg_failed = yes; then
31088
31089if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31090 _pkg_short_errors_supported=yes
31091else
31092 _pkg_short_errors_supported=no
31093fi
31094 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031095 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031096 else
cristya054b762012-03-26 23:16:00 +000031097 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031098 fi
31099 # Put the nasty error message in config.log where it belongs
31100 echo "$PANGO_PKG_ERRORS" >&5
31101
31102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31103$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031104 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031105elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031106 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031107else
31108 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31109 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31111$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031112 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031113fi
31114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31115$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031116
31117pkg_failed=no
31118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31119$as_echo_n "checking for PANGO... " >&6; }
31120
31121if test -n "$PANGO_CFLAGS"; then
31122 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31123 elif test -n "$PKG_CONFIG"; then
31124 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031125 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31126 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031127 ac_status=$?
31128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31129 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031130 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031131else
31132 pkg_failed=yes
31133fi
31134 else
31135 pkg_failed=untried
31136fi
31137if test -n "$PANGO_LIBS"; then
31138 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31139 elif test -n "$PKG_CONFIG"; then
31140 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31142 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031143 ac_status=$?
31144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31145 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031146 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031147else
31148 pkg_failed=yes
31149fi
31150 else
31151 pkg_failed=untried
31152fi
31153
31154
31155
31156if test $pkg_failed = yes; then
31157
31158if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31159 _pkg_short_errors_supported=yes
31160else
31161 _pkg_short_errors_supported=no
31162fi
31163 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031164 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031165 else
cristy2542fc62011-12-06 17:50:25 +000031166 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031167 fi
31168 # Put the nasty error message in config.log where it belongs
31169 echo "$PANGO_PKG_ERRORS" >&5
31170
31171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31172$as_echo "no" >&6; }
31173 have_pango=no
31174elif test $pkg_failed = untried; then
31175 have_pango=no
31176else
31177 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31178 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31180$as_echo "yes" >&6; }
31181 have_pango=yes
31182fi
31183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31184$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031185fi
31186
31187if test "$have_pango" = 'yes'; then
31188
31189$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31190
cristyc6722092012-10-14 00:19:31 +000031191 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000031192 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31193 fi
31194fi
31195
cristya054b762012-03-26 23:16:00 +000031196if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031197
cristya054b762012-03-26 23:16:00 +000031198$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031199
cristyc6722092012-10-14 00:19:31 +000031200 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031201 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031202 fi
31203fi
31204
31205 if test "$have_pango" = 'yes'; then
31206 PANGO_DELEGATE_TRUE=
31207 PANGO_DELEGATE_FALSE='#'
31208else
31209 PANGO_DELEGATE_TRUE='#'
31210 PANGO_DELEGATE_FALSE=
31211fi
31212
cristya054b762012-03-26 23:16:00 +000031213 if test "$have_pangocairo" = 'yes'; then
31214 PANGOCAIRO_DELEGATE_TRUE=
31215 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031216else
cristya054b762012-03-26 23:16:00 +000031217 PANGOCAIRO_DELEGATE_TRUE='#'
31218 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031219fi
31220
31221
31222
31223
31224
31225#
cristy3ed852e2009-09-05 21:47:34 +000031226# Check for PNG delegate library.
31227#
31228
31229# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031230if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031231 withval=$with_png; with_png=$withval
31232else
31233 with_png='yes'
31234fi
31235
31236
31237if test "$with_png" != 'yes'; then
31238 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31239fi
31240
cristy81beccd2011-10-03 18:17:24 +000031241have_png='no'
31242PNG_LIBS=''
31243
31244if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031245 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31246$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31248$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031249 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31250$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031251 failed=0
31252 passed=0
31253 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31254if test "x$ac_cv_header_png_h" = xyes; then :
31255 passed=`expr $passed + 1`
31256else
31257 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031258fi
31259
cristy81beccd2011-10-03 18:17:24 +000031260
31261
31262 if test $passed -gt 0; then
31263 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031264 if test "$have_png" = 'no' ; then
31265 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031266 pnglib='png'
31267 else
31268 pnglib="png1${var}"
31269 fi
31270
31271# Test for compatible LIBPNG library
31272 failed=0
31273 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031274 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031275 if test "${pnglib}" != 'png' ; then
31276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31277$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31279/* end confdefs.h. */
31280#include <stdio.h>
31281#include <stdlib.h>
31282#include <png.h>
31283
31284int
31285main ()
31286{
31287
31288#if PNG_LIBPNG_VER_MINOR != ${var}
31289#error LIBPNG library must be version 1${var}!
31290Kaboom, Kaboom
31291#endif
31292return 0;
31293
31294 ;
31295 return 0;
31296}
31297_ACEOF
31298if ac_fn_c_try_compile "$LINENO"; then :
31299 ac_cv_libpng_ok='yes'
31300else
31301 ac_cv_libpng_ok='no'
31302fi
31303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31304 if test "$ac_cv_libpng_ok" = 'yes' ; then
31305 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031306 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31307$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031308 else
31309 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031310 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31311$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031312 fi
31313 else
31314 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031315 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31316$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031317 fi
31318 fi
31319
31320 if test $passed -gt 0 -a $failed -le 0; then
31321 if test "1${var}" = '15' ; then
31322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31323$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31324if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31325 $as_echo_n "(cached) " >&6
31326else
31327 ac_check_lib_save_LIBS=$LIBS
31328LIBS="-lpng15 $LIBS"
31329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31330/* end confdefs.h. */
31331
31332/* Override any GCC internal prototype to avoid an error.
31333 Use char because int might match the return type of a GCC
31334 builtin and then its argument prototype would still apply. */
31335#ifdef __cplusplus
31336extern "C"
31337#endif
31338char png_get_io_ptr ();
31339int
31340main ()
31341{
31342return png_get_io_ptr ();
31343 ;
31344 return 0;
31345}
31346_ACEOF
31347if ac_fn_c_try_link "$LINENO"; then :
31348 ac_cv_lib_png15_png_get_io_ptr=yes
31349else
31350 ac_cv_lib_png15_png_get_io_ptr=no
31351fi
31352rm -f core conftest.err conftest.$ac_objext \
31353 conftest$ac_exeext conftest.$ac_ext
31354LIBS=$ac_check_lib_save_LIBS
31355fi
31356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31357$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31358if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31359 passed=`expr $passed + 1`
31360else
31361 failed=`expr $failed + 1`
31362fi
31363
31364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31365$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31366if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31367 $as_echo_n "(cached) " >&6
31368else
31369 ac_check_lib_save_LIBS=$LIBS
31370LIBS="-lpng15 $LIBS"
31371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31372/* end confdefs.h. */
31373
31374/* Override any GCC internal prototype to avoid an error.
31375 Use char because int might match the return type of a GCC
31376 builtin and then its argument prototype would still apply. */
31377#ifdef __cplusplus
31378extern "C"
31379#endif
31380char png_longjmp ();
31381int
31382main ()
31383{
31384return png_longjmp ();
31385 ;
31386 return 0;
31387}
31388_ACEOF
31389if ac_fn_c_try_link "$LINENO"; then :
31390 ac_cv_lib_png15_png_longjmp=yes
31391else
31392 ac_cv_lib_png15_png_longjmp=no
31393fi
31394rm -f core conftest.err conftest.$ac_objext \
31395 conftest$ac_exeext conftest.$ac_ext
31396LIBS=$ac_check_lib_save_LIBS
31397fi
31398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31399$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31400if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31401 passed=`expr $passed + 1`
31402else
31403 failed=`expr $failed + 1`
31404fi
31405
31406 fi
31407 if test "1${var}" = '14' ; then
31408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31409$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31410if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31411 $as_echo_n "(cached) " >&6
31412else
31413 ac_check_lib_save_LIBS=$LIBS
31414LIBS="-lpng14 $LIBS"
31415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31416/* end confdefs.h. */
31417
31418/* Override any GCC internal prototype to avoid an error.
31419 Use char because int might match the return type of a GCC
31420 builtin and then its argument prototype would still apply. */
31421#ifdef __cplusplus
31422extern "C"
31423#endif
31424char png_get_io_ptr ();
31425int
31426main ()
31427{
31428return png_get_io_ptr ();
31429 ;
31430 return 0;
31431}
31432_ACEOF
31433if ac_fn_c_try_link "$LINENO"; then :
31434 ac_cv_lib_png14_png_get_io_ptr=yes
31435else
31436 ac_cv_lib_png14_png_get_io_ptr=no
31437fi
31438rm -f core conftest.err conftest.$ac_objext \
31439 conftest$ac_exeext conftest.$ac_ext
31440LIBS=$ac_check_lib_save_LIBS
31441fi
31442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31443$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31444if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31445 passed=`expr $passed + 1`
31446else
31447 failed=`expr $failed + 1`
31448fi
31449
31450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31451$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31452if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31453 $as_echo_n "(cached) " >&6
31454else
31455 ac_check_lib_save_LIBS=$LIBS
31456LIBS="-lpng14 $LIBS"
31457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31458/* end confdefs.h. */
31459
31460/* Override any GCC internal prototype to avoid an error.
31461 Use char because int might match the return type of a GCC
31462 builtin and then its argument prototype would still apply. */
31463#ifdef __cplusplus
31464extern "C"
31465#endif
31466char png_get_io_state ();
31467int
31468main ()
31469{
31470return png_get_io_state ();
31471 ;
31472 return 0;
31473}
31474_ACEOF
31475if ac_fn_c_try_link "$LINENO"; then :
31476 ac_cv_lib_png14_png_get_io_state=yes
31477else
31478 ac_cv_lib_png14_png_get_io_state=no
31479fi
31480rm -f core conftest.err conftest.$ac_objext \
31481 conftest$ac_exeext conftest.$ac_ext
31482LIBS=$ac_check_lib_save_LIBS
31483fi
31484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31485$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31486if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31487 passed=`expr $passed + 1`
31488else
31489 failed=`expr $failed + 1`
31490fi
31491
31492 fi
31493 if test "1${var}" = '12' ; then
31494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31495$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31496if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31497 $as_echo_n "(cached) " >&6
31498else
31499 ac_check_lib_save_LIBS=$LIBS
31500LIBS="-lpng12 $LIBS"
31501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31502/* end confdefs.h. */
31503
31504/* Override any GCC internal prototype to avoid an error.
31505 Use char because int might match the return type of a GCC
31506 builtin and then its argument prototype would still apply. */
31507#ifdef __cplusplus
31508extern "C"
31509#endif
31510char png_get_io_ptr ();
31511int
31512main ()
31513{
31514return png_get_io_ptr ();
31515 ;
31516 return 0;
31517}
31518_ACEOF
31519if ac_fn_c_try_link "$LINENO"; then :
31520 ac_cv_lib_png12_png_get_io_ptr=yes
31521else
31522 ac_cv_lib_png12_png_get_io_ptr=no
31523fi
31524rm -f core conftest.err conftest.$ac_objext \
31525 conftest$ac_exeext conftest.$ac_ext
31526LIBS=$ac_check_lib_save_LIBS
31527fi
31528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31529$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31530if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31531 passed=`expr $passed + 1`
31532else
31533 failed=`expr $failed + 1`
31534fi
31535
31536 fi
31537 if test "1${var}" = '1' ; then
31538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31539$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31540if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31541 $as_echo_n "(cached) " >&6
31542else
31543 ac_check_lib_save_LIBS=$LIBS
31544LIBS="-lpng $LIBS"
31545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31546/* end confdefs.h. */
31547
31548/* Override any GCC internal prototype to avoid an error.
31549 Use char because int might match the return type of a GCC
31550 builtin and then its argument prototype would still apply. */
31551#ifdef __cplusplus
31552extern "C"
31553#endif
31554char png_get_io_ptr ();
31555int
31556main ()
31557{
31558return png_get_io_ptr ();
31559 ;
31560 return 0;
31561}
31562_ACEOF
31563if ac_fn_c_try_link "$LINENO"; then :
31564 ac_cv_lib_png_png_get_io_ptr=yes
31565else
31566 ac_cv_lib_png_png_get_io_ptr=no
31567fi
31568rm -f core conftest.err conftest.$ac_objext \
31569 conftest$ac_exeext conftest.$ac_ext
31570LIBS=$ac_check_lib_save_LIBS
31571fi
31572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31573$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31574if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31575 passed=`expr $passed + 1`
31576else
31577 failed=`expr $failed + 1`
31578fi
31579
31580 fi
31581 if test $passed -gt 0 -a $failed -le 0 ; then
31582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31583$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31584 if test $passed -gt 0 ; then
31585 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031586 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31587$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031588 have_png='no (failed tests)'
31589 else
31590 PNG_LIBS="-l${pnglib}"
31591 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031592
cristy8b350f62009-11-15 23:12:43 +000031593$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031594
cristy09b53e12011-10-14 12:47:22 +000031595 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31596$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031597 have_png='yes'
31598 fi
31599 fi
31600 fi
31601 fi
31602 fi
31603 done
31604 fi
cristy3ed852e2009-09-05 21:47:34 +000031605fi
cristy64877302011-08-23 19:10:31 +000031606
cristy73bd4a52010-10-05 11:24:23 +000031607 if test "$have_png" = 'yes'; then
31608 PNG_DELEGATE_TRUE=
31609 PNG_DELEGATE_FALSE='#'
31610else
31611 PNG_DELEGATE_TRUE='#'
31612 PNG_DELEGATE_FALSE=
31613fi
31614
cristy3ed852e2009-09-05 21:47:34 +000031615
cristy50d3f5c2011-09-10 20:09:06 +000031616
cristy3ed852e2009-09-05 21:47:34 +000031617
31618
31619#
31620# Check for RSVG delegate library.
31621#
31622
31623# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031624if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031625 withval=$with_rsvg; with_rsvg=$withval
31626else
cristy1164d5f2012-08-15 00:58:25 +000031627 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031628fi
31629
31630
31631if test "$with_rsvg" != 'yes'; then
31632 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31633fi
31634
31635have_rsvg='no'
31636have_cairo='no'
31637RSVG_CFLAGS=""
31638RSVG_LIBS=""
31639RSVG_PKG=""
31640if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031641 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31642$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031643
31644pkg_failed=no
31645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31646$as_echo_n "checking for RSVG... " >&6; }
31647
31648if test -n "$RSVG_CFLAGS"; then
31649 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31650 elif test -n "$PKG_CONFIG"; then
31651 if test -n "$PKG_CONFIG" && \
31652 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31653 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31654 ac_status=$?
31655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31656 test $ac_status = 0; }; then
31657 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31658else
31659 pkg_failed=yes
31660fi
31661 else
31662 pkg_failed=untried
31663fi
31664if test -n "$RSVG_LIBS"; then
31665 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31666 elif test -n "$PKG_CONFIG"; then
31667 if test -n "$PKG_CONFIG" && \
31668 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31669 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31670 ac_status=$?
31671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31672 test $ac_status = 0; }; then
31673 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31674else
31675 pkg_failed=yes
31676fi
31677 else
31678 pkg_failed=untried
31679fi
31680
31681
31682
31683if test $pkg_failed = yes; then
31684
31685if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31686 _pkg_short_errors_supported=yes
31687else
31688 _pkg_short_errors_supported=no
31689fi
31690 if test $_pkg_short_errors_supported = yes; then
31691 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31692 else
31693 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31694 fi
31695 # Put the nasty error message in config.log where it belongs
31696 echo "$RSVG_PKG_ERRORS" >&5
31697
31698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31699$as_echo "no" >&6; }
31700 have_rsvg=no
31701elif test $pkg_failed = untried; then
31702 have_rsvg=no
31703else
31704 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31705 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31707$as_echo "yes" >&6; }
31708 have_rsvg=yes
31709fi
cristy09b53e12011-10-14 12:47:22 +000031710 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31711$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031712
31713pkg_failed=no
31714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31715$as_echo_n "checking for CAIRO_SVG... " >&6; }
31716
31717if test -n "$CAIRO_SVG_CFLAGS"; then
31718 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31719 elif test -n "$PKG_CONFIG"; then
31720 if test -n "$PKG_CONFIG" && \
31721 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31722 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31723 ac_status=$?
31724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31725 test $ac_status = 0; }; then
31726 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31727else
31728 pkg_failed=yes
31729fi
31730 else
31731 pkg_failed=untried
31732fi
31733if test -n "$CAIRO_SVG_LIBS"; then
31734 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31735 elif test -n "$PKG_CONFIG"; then
31736 if test -n "$PKG_CONFIG" && \
31737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31738 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31739 ac_status=$?
31740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31741 test $ac_status = 0; }; then
31742 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31743else
31744 pkg_failed=yes
31745fi
31746 else
31747 pkg_failed=untried
31748fi
31749
31750
31751
31752if test $pkg_failed = yes; then
31753
31754if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31755 _pkg_short_errors_supported=yes
31756else
31757 _pkg_short_errors_supported=no
31758fi
31759 if test $_pkg_short_errors_supported = yes; then
31760 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31761 else
31762 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31763 fi
31764 # Put the nasty error message in config.log where it belongs
31765 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31766
31767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31768$as_echo "no" >&6; }
31769 have_cairo=no
31770elif test $pkg_failed = untried; then
31771 have_cairo=no
31772else
31773 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31774 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31776$as_echo "yes" >&6; }
31777 have_cairo=yes
31778fi
cristy09b53e12011-10-14 12:47:22 +000031779 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31780$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031781fi
31782
31783if test "$have_rsvg" = 'yes'; then
31784
cristy8b350f62009-11-15 23:12:43 +000031785$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031786
cristyc6722092012-10-14 00:19:31 +000031787 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031788 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31789 fi
31790fi
31791
31792if test "$have_cairo" = 'yes'; then
31793
cristy8b350f62009-11-15 23:12:43 +000031794$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031795
cristyc6722092012-10-14 00:19:31 +000031796 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031797 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31798 fi
31799fi
31800
cristy73bd4a52010-10-05 11:24:23 +000031801 if test "$have_rsvg" = 'yes'; then
31802 RSVG_DELEGATE_TRUE=
31803 RSVG_DELEGATE_FALSE='#'
31804else
31805 RSVG_DELEGATE_TRUE='#'
31806 RSVG_DELEGATE_FALSE=
31807fi
31808
31809 if test "$have_cairo" = 'yes'; then
31810 CAIRO_DELEGATE_TRUE=
31811 CAIRO_DELEGATE_FALSE='#'
31812else
31813 CAIRO_DELEGATE_TRUE='#'
31814 CAIRO_DELEGATE_FALSE=
31815fi
31816
cristy3ed852e2009-09-05 21:47:34 +000031817
31818
31819
31820
31821#
31822# Check for TIFF delegate library.
31823#
31824
31825# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031826if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031827 withval=$with_tiff; with_tiff=$withval
31828else
31829 with_tiff='yes'
31830fi
31831
31832
31833if test "$with_tiff" != 'yes'; then
31834 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31835fi
31836
31837have_tiff='no'
31838TIFF_LIBS=''
31839if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031840 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31841$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031843$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031844 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31845$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031846 failed=0
31847 passed=0
cristy8b350f62009-11-15 23:12:43 +000031848 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031849if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031850 passed=`expr $passed + 1`
31851else
31852 failed=`expr $failed + 1`
31853fi
31854
31855
cristy8b350f62009-11-15 23:12:43 +000031856 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031857if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031858 passed=`expr $passed + 1`
31859else
31860 failed=`expr $failed + 1`
31861fi
31862
31863
cristy8b350f62009-11-15 23:12:43 +000031864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031865$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031866if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031867 $as_echo_n "(cached) " >&6
31868else
31869 ac_check_lib_save_LIBS=$LIBS
31870LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031872/* end confdefs.h. */
31873
31874/* Override any GCC internal prototype to avoid an error.
31875 Use char because int might match the return type of a GCC
31876 builtin and then its argument prototype would still apply. */
31877#ifdef __cplusplus
31878extern "C"
31879#endif
31880char TIFFOpen ();
31881int
31882main ()
31883{
31884return TIFFOpen ();
31885 ;
31886 return 0;
31887}
31888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031889if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031890 ac_cv_lib_tiff_TIFFOpen=yes
31891else
cristy8b350f62009-11-15 23:12:43 +000031892 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031893fi
cristy8b350f62009-11-15 23:12:43 +000031894rm -f core conftest.err conftest.$ac_objext \
31895 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031896LIBS=$ac_check_lib_save_LIBS
31897fi
cristy8b350f62009-11-15 23:12:43 +000031898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031899$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031900if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031901 passed=`expr $passed + 1`
31902else
31903 failed=`expr $failed + 1`
31904fi
31905
cristy8b350f62009-11-15 23:12:43 +000031906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031907$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031908if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031909 $as_echo_n "(cached) " >&6
31910else
31911 ac_check_lib_save_LIBS=$LIBS
31912LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031914/* end confdefs.h. */
31915
31916/* Override any GCC internal prototype to avoid an error.
31917 Use char because int might match the return type of a GCC
31918 builtin and then its argument prototype would still apply. */
31919#ifdef __cplusplus
31920extern "C"
31921#endif
31922char TIFFClientOpen ();
31923int
31924main ()
31925{
31926return TIFFClientOpen ();
31927 ;
31928 return 0;
31929}
31930_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031931if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031932 ac_cv_lib_tiff_TIFFClientOpen=yes
31933else
cristy8b350f62009-11-15 23:12:43 +000031934 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031935fi
cristy8b350f62009-11-15 23:12:43 +000031936rm -f core conftest.err conftest.$ac_objext \
31937 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031938LIBS=$ac_check_lib_save_LIBS
31939fi
cristy8b350f62009-11-15 23:12:43 +000031940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031941$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031942if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031943 passed=`expr $passed + 1`
31944else
31945 failed=`expr $failed + 1`
31946fi
31947
cristy8b350f62009-11-15 23:12:43 +000031948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031949$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031950if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031951 $as_echo_n "(cached) " >&6
31952else
31953 ac_check_lib_save_LIBS=$LIBS
31954LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031956/* end confdefs.h. */
31957
31958/* Override any GCC internal prototype to avoid an error.
31959 Use char because int might match the return type of a GCC
31960 builtin and then its argument prototype would still apply. */
31961#ifdef __cplusplus
31962extern "C"
31963#endif
31964char TIFFIsByteSwapped ();
31965int
31966main ()
31967{
31968return TIFFIsByteSwapped ();
31969 ;
31970 return 0;
31971}
31972_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031973if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031974 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31975else
cristy8b350f62009-11-15 23:12:43 +000031976 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031977fi
cristy8b350f62009-11-15 23:12:43 +000031978rm -f core conftest.err conftest.$ac_objext \
31979 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031980LIBS=$ac_check_lib_save_LIBS
31981fi
cristy8b350f62009-11-15 23:12:43 +000031982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031983$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031984if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031985 passed=`expr $passed + 1`
31986else
31987 failed=`expr $failed + 1`
31988fi
31989
cristy8b350f62009-11-15 23:12:43 +000031990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031991$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031992if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031993 $as_echo_n "(cached) " >&6
31994else
31995 ac_check_lib_save_LIBS=$LIBS
31996LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031998/* end confdefs.h. */
31999
32000/* Override any GCC internal prototype to avoid an error.
32001 Use char because int might match the return type of a GCC
32002 builtin and then its argument prototype would still apply. */
32003#ifdef __cplusplus
32004extern "C"
32005#endif
32006char TIFFReadRGBATile ();
32007int
32008main ()
32009{
32010return TIFFReadRGBATile ();
32011 ;
32012 return 0;
32013}
32014_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032015if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032016 ac_cv_lib_tiff_TIFFReadRGBATile=yes
32017else
cristy8b350f62009-11-15 23:12:43 +000032018 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000032019fi
cristy8b350f62009-11-15 23:12:43 +000032020rm -f core conftest.err conftest.$ac_objext \
32021 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032022LIBS=$ac_check_lib_save_LIBS
32023fi
cristy8b350f62009-11-15 23:12:43 +000032024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000032025$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000032026if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032027 passed=`expr $passed + 1`
32028else
32029 failed=`expr $failed + 1`
32030fi
32031
cristy8b350f62009-11-15 23:12:43 +000032032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032033$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032034if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032035 $as_echo_n "(cached) " >&6
32036else
32037 ac_check_lib_save_LIBS=$LIBS
32038LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032040/* end confdefs.h. */
32041
32042/* Override any GCC internal prototype to avoid an error.
32043 Use char because int might match the return type of a GCC
32044 builtin and then its argument prototype would still apply. */
32045#ifdef __cplusplus
32046extern "C"
32047#endif
32048char TIFFReadRGBAStrip ();
32049int
32050main ()
32051{
32052return TIFFReadRGBAStrip ();
32053 ;
32054 return 0;
32055}
32056_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032057if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032058 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32059else
cristy8b350f62009-11-15 23:12:43 +000032060 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032061fi
cristy8b350f62009-11-15 23:12:43 +000032062rm -f core conftest.err conftest.$ac_objext \
32063 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032064LIBS=$ac_check_lib_save_LIBS
32065fi
cristy8b350f62009-11-15 23:12:43 +000032066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032067$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032068if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032069 passed=`expr $passed + 1`
32070else
32071 failed=`expr $failed + 1`
32072fi
32073
cristy8b350f62009-11-15 23:12:43 +000032074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032075$as_echo_n "checking if TIFF package is complete... " >&6; }
32076 if test $passed -gt 0; then
32077 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032078 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32079$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032080 have_tiff='no (failed tests)'
32081 else
32082 TIFF_LIBS='-ltiff'
32083 LIBS="$TIFF_LIBS $LIBS"
32084
cristy8b350f62009-11-15 23:12:43 +000032085$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032086
cristy09b53e12011-10-14 12:47:22 +000032087 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32088$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032089 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032090 for ac_header in tiffconf.h
32091do :
32092 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032093if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032094 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032095#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032096_ACEOF
32097
32098fi
32099
32100done
32101
cristy8b350f62009-11-15 23:12:43 +000032102 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032103 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32104 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32105 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032106do :
32107 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32108ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032109if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032110 cat >>confdefs.h <<_ACEOF
32111#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32112_ACEOF
32113
32114fi
32115done
32116
32117 fi
32118 else
cristy09b53e12011-10-14 12:47:22 +000032119 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32120$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032121 fi
32122fi
cristy73bd4a52010-10-05 11:24:23 +000032123 if test "$have_tiff" = 'yes'; then
32124 TIFF_DELEGATE_TRUE=
32125 TIFF_DELEGATE_FALSE='#'
32126else
32127 TIFF_DELEGATE_TRUE='#'
32128 TIFF_DELEGATE_FALSE=
32129fi
32130
cristy3ed852e2009-09-05 21:47:34 +000032131
32132
32133
32134#
cristyb1860752011-03-14 00:27:46 +000032135# Check for WEBP delegate library.
32136#
32137
32138# Check whether --with-webp was given.
32139if test "${with_webp+set}" = set; then :
32140 withval=$with_webp; with_webp=$withval
32141else
32142 with_webp='yes'
32143fi
32144
32145
32146if test "$with_webp" != 'yes'; then
32147 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32148fi
32149
32150have_webp='no'
32151WEBP_LIBS=''
32152if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032153 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32154$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000032155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32156$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032157 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32158$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000032159 failed=0
32160 passed=0
32161 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32162if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32163 passed=`expr $passed + 1`
32164else
32165 failed=`expr $failed + 1`
32166fi
32167
32168
32169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32170$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32171if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32172 $as_echo_n "(cached) " >&6
32173else
32174 ac_check_lib_save_LIBS=$LIBS
32175LIBS="-lwebp $LIBS"
32176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32177/* end confdefs.h. */
32178
32179/* Override any GCC internal prototype to avoid an error.
32180 Use char because int might match the return type of a GCC
32181 builtin and then its argument prototype would still apply. */
32182#ifdef __cplusplus
32183extern "C"
32184#endif
32185char WebPDecodeRGB ();
32186int
32187main ()
32188{
32189return WebPDecodeRGB ();
32190 ;
32191 return 0;
32192}
32193_ACEOF
32194if ac_fn_c_try_link "$LINENO"; then :
32195 ac_cv_lib_webp_WebPDecodeRGB=yes
32196else
32197 ac_cv_lib_webp_WebPDecodeRGB=no
32198fi
32199rm -f core conftest.err conftest.$ac_objext \
32200 conftest$ac_exeext conftest.$ac_ext
32201LIBS=$ac_check_lib_save_LIBS
32202fi
32203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32204$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32205if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32206 passed=`expr $passed + 1`
32207else
32208 failed=`expr $failed + 1`
32209fi
32210
32211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32212$as_echo_n "checking if WEBP package is complete... " >&6; }
32213 if test $passed -gt 0; then
32214 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032215 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32216$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032217 have_webp='no (failed tests)'
32218 else
32219 WEBP_LIBS='-lwebp'
32220 LIBS="$WEBP_LIBS $LIBS"
32221
32222$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32223
cristy09b53e12011-10-14 12:47:22 +000032224 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32225$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032226 have_webp='yes'
32227 fi
32228 else
cristy09b53e12011-10-14 12:47:22 +000032229 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32230$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032231 fi
32232fi
32233 if test "$have_webp" = 'yes'; then
32234 WEBP_DELEGATE_TRUE=
32235 WEBP_DELEGATE_FALSE='#'
32236else
32237 WEBP_DELEGATE_TRUE='#'
32238 WEBP_DELEGATE_FALSE=
32239fi
32240
32241
32242
32243
32244#
cristy3ed852e2009-09-05 21:47:34 +000032245# Set Windows font directory.
32246#
32247
32248# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032249if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032250 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32251else
32252 with_windows_font_dir=''
32253fi
32254
32255if test "$with_windows_font_dir" != '' ; then
32256 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32257fi
32258
32259
32260#
32261# Check for WMF delegate library.
32262#
32263
32264# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032265if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032266 withval=$with_wmf; with_wmf=$withval
32267else
cristyfc3d0222012-02-07 15:05:57 +000032268 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032269fi
32270
32271
32272if test "$with_wmf" != 'yes'; then
32273 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32274fi
32275
32276have_wmf='no'
32277WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032278WMF_LIBS_DEPS=''
32279OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032280if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32282$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032284$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32286$as_echo "" >&6; }
32287 have_libwmf='no'
32288 have_libwmflite='no'
32289 have_libwmf_ipa_h='no'
32290
32291 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32292"
32293if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32294 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032295fi
32296
32297
cristy03f7cf92011-12-15 01:40:41 +000032298 if test "$have_libwmf_ipa_h" = 'yes'; then
32299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32300$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32301if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032302 $as_echo_n "(cached) " >&6
32303else
32304 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032305LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032307/* end confdefs.h. */
32308
32309/* Override any GCC internal prototype to avoid an error.
32310 Use char because int might match the return type of a GCC
32311 builtin and then its argument prototype would still apply. */
32312#ifdef __cplusplus
32313extern "C"
32314#endif
cristy03f7cf92011-12-15 01:40:41 +000032315char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032316int
32317main ()
32318{
cristy03f7cf92011-12-15 01:40:41 +000032319return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032320 ;
32321 return 0;
32322}
32323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032324if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032325 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032326else
cristy03f7cf92011-12-15 01:40:41 +000032327 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032328fi
cristy8b350f62009-11-15 23:12:43 +000032329rm -f core conftest.err conftest.$ac_objext \
32330 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032331LIBS=$ac_check_lib_save_LIBS
32332fi
cristy03f7cf92011-12-15 01:40:41 +000032333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32334$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32335if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32336 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032337fi
32338
cristy03f7cf92011-12-15 01:40:41 +000032339 if test "$have_libwmflite" = 'yes'; then
32340
32341$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32342
32343 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032344 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032345 have_wmf='yes'
32346 else
32347 WMF_LIBS_DEPS=''
32348 WMF_CONFIG_LIBS=`libwmf-config --libs`
32349 for lib in xml2 expat freetype jpeg png z; do
32350 testlib="-l${lib}"
32351 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32352 done
32353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32354$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32355if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32356 $as_echo_n "(cached) " >&6
32357else
32358 ac_check_lib_save_LIBS=$LIBS
32359LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32361/* end confdefs.h. */
32362
32363/* Override any GCC internal prototype to avoid an error.
32364 Use char because int might match the return type of a GCC
32365 builtin and then its argument prototype would still apply. */
32366#ifdef __cplusplus
32367extern "C"
32368#endif
32369char wmf_api_create ();
32370int
32371main ()
32372{
32373return wmf_api_create ();
32374 ;
32375 return 0;
32376}
32377_ACEOF
32378if ac_fn_c_try_link "$LINENO"; then :
32379 ac_cv_lib_wmf_wmf_api_create=yes
32380else
32381 ac_cv_lib_wmf_wmf_api_create=no
32382fi
32383rm -f core conftest.err conftest.$ac_objext \
32384 conftest$ac_exeext conftest.$ac_ext
32385LIBS=$ac_check_lib_save_LIBS
32386fi
32387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32388$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32389if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32390 have_libwmf='yes'
32391fi
32392
32393 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032394
cristy8b350f62009-11-15 23:12:43 +000032395$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032396
cristy03f7cf92011-12-15 01:40:41 +000032397 WMF_LIBS='-lwmf'
32398 LIBS="$WMF_LIBS $LIBS"
32399 have_wmf='yes'
32400 else
32401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32402$as_echo "no -- some components failed test" >&6; }
32403 have_wmf='no (failed tests)'
32404 have_wmflite='no (failed tests)'
32405 LIBS="$OLIBS"
32406 WMF_LIBS=''
32407 fi
glennrp33e524b2011-08-24 17:41:57 +000032408 fi
cristy03f7cf92011-12-15 01:40:41 +000032409 fi
32410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32411$as_echo_n "checking if WMF package is complete... " >&6; }
32412 if test "$have_wmf" = 'yes'; then
32413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32414$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032415 else
cristy03f7cf92011-12-15 01:40:41 +000032416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32417$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032418 fi
cristy3ed852e2009-09-05 21:47:34 +000032419fi
cristy73bd4a52010-10-05 11:24:23 +000032420 if test "$have_wmf" = 'yes'; then
32421 WMF_DELEGATE_TRUE=
32422 WMF_DELEGATE_FALSE='#'
32423else
32424 WMF_DELEGATE_TRUE='#'
32425 WMF_DELEGATE_FALSE=
32426fi
32427
cristy3ed852e2009-09-05 21:47:34 +000032428
32429
32430
cristy81beccd2011-10-03 18:17:24 +000032431
32432
cristy3ed852e2009-09-05 21:47:34 +000032433#
32434# Check for XML delegate library.
32435#
32436
32437# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032438if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032439 withval=$with_xml; with_xml=$withval
32440else
cristyfc3d0222012-02-07 15:05:57 +000032441 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032442fi
32443
32444
cristy81beccd2011-10-03 18:17:24 +000032445if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032446 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32447fi
32448
cristy81beccd2011-10-03 18:17:24 +000032449have_xml='no'
32450XML_LIBS=''
32451if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032452 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32453$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32455$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032456 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32457$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032458 PERSIST_LDFLAGS=$LDFLAGS
32459 PERSIST_CPPFLAGS=$CPPFLAGS
32460 xml2_config=''
32461 # Extract the first word of "xml2-config", so it can be a program name with args.
32462set dummy xml2-config; ac_word=$2
32463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32464$as_echo_n "checking for $ac_word... " >&6; }
32465if ${ac_cv_path_xml2_config+:} false; then :
32466 $as_echo_n "(cached) " >&6
32467else
32468 case $xml2_config in
32469 [\\/]* | ?:[\\/]*)
32470 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32471 ;;
32472 *)
32473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32474for as_dir in $PATH
32475do
32476 IFS=$as_save_IFS
32477 test -z "$as_dir" && as_dir=.
32478 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032480 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32482 break 2
32483 fi
32484done
32485 done
32486IFS=$as_save_IFS
32487
32488 ;;
32489esac
32490fi
32491xml2_config=$ac_cv_path_xml2_config
32492if test -n "$xml2_config"; then
32493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32494$as_echo "$xml2_config" >&6; }
32495else
32496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32497$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032498fi
32499
cristy81beccd2011-10-03 18:17:24 +000032500 if test -n "$xml2_config"; then
32501 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32502 # the shared library installed under /usr/lib, whereas the package
32503 # installs itself under $prefix/libxml and $prefix/lib.
32504 xml2_prefix=`xml2-config --prefix`
32505 if test -d "${xml2_prefix}/include/libxml2"; then
32506 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32507 fi
32508 if test "${xml2_prefix}" != '/usr'; then
32509 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32510 fi
32511 fi
32512 failed=0
32513 passed=0
32514 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32515if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32516 passed=`expr $passed + 1`
32517else
32518 failed=`expr $failed + 1`
32519fi
32520
32521
32522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32523$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32524if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32525 $as_echo_n "(cached) " >&6
32526else
32527 ac_check_lib_save_LIBS=$LIBS
32528LIBS="-lxml2 $LIBS"
32529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32530/* end confdefs.h. */
32531
32532/* Override any GCC internal prototype to avoid an error.
32533 Use char because int might match the return type of a GCC
32534 builtin and then its argument prototype would still apply. */
32535#ifdef __cplusplus
32536extern "C"
32537#endif
32538char xmlSAXVersion ();
32539int
32540main ()
32541{
32542return xmlSAXVersion ();
32543 ;
32544 return 0;
32545}
32546_ACEOF
32547if ac_fn_c_try_link "$LINENO"; then :
32548 ac_cv_lib_xml2_xmlSAXVersion=yes
32549else
32550 ac_cv_lib_xml2_xmlSAXVersion=no
32551fi
32552rm -f core conftest.err conftest.$ac_objext \
32553 conftest$ac_exeext conftest.$ac_ext
32554LIBS=$ac_check_lib_save_LIBS
32555fi
32556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32557$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32558if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32559 passed=`expr $passed + 1`
32560else
32561 failed=`expr $failed + 1`
32562fi
32563
32564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32565$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32566if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32567 $as_echo_n "(cached) " >&6
32568else
32569 ac_check_lib_save_LIBS=$LIBS
32570LIBS="-lxml2 $LIBS"
32571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32572/* end confdefs.h. */
32573
32574/* Override any GCC internal prototype to avoid an error.
32575 Use char because int might match the return type of a GCC
32576 builtin and then its argument prototype would still apply. */
32577#ifdef __cplusplus
32578extern "C"
32579#endif
32580char xmlParseChunk ();
32581int
32582main ()
32583{
32584return xmlParseChunk ();
32585 ;
32586 return 0;
32587}
32588_ACEOF
32589if ac_fn_c_try_link "$LINENO"; then :
32590 ac_cv_lib_xml2_xmlParseChunk=yes
32591else
32592 ac_cv_lib_xml2_xmlParseChunk=no
32593fi
32594rm -f core conftest.err conftest.$ac_objext \
32595 conftest$ac_exeext conftest.$ac_ext
32596LIBS=$ac_check_lib_save_LIBS
32597fi
32598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32599$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32600if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32601 passed=`expr $passed + 1`
32602else
32603 failed=`expr $failed + 1`
32604fi
32605
32606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32607$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32608if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32609 $as_echo_n "(cached) " >&6
32610else
32611 ac_check_lib_save_LIBS=$LIBS
32612LIBS="-lxml2 $LIBS"
32613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32614/* end confdefs.h. */
32615
32616/* Override any GCC internal prototype to avoid an error.
32617 Use char because int might match the return type of a GCC
32618 builtin and then its argument prototype would still apply. */
32619#ifdef __cplusplus
32620extern "C"
32621#endif
32622char xmlCreatePushParserCtxt ();
32623int
32624main ()
32625{
32626return xmlCreatePushParserCtxt ();
32627 ;
32628 return 0;
32629}
32630_ACEOF
32631if ac_fn_c_try_link "$LINENO"; then :
32632 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32633else
32634 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32635fi
32636rm -f core conftest.err conftest.$ac_objext \
32637 conftest$ac_exeext conftest.$ac_ext
32638LIBS=$ac_check_lib_save_LIBS
32639fi
32640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32641$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32642if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32643 passed=`expr $passed + 1`
32644else
32645 failed=`expr $failed + 1`
32646fi
32647
32648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32649$as_echo_n "checking if XML package is complete... " >&6; }
32650 if test $passed -gt 0; then
32651 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032652 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32653$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032654 have_xml='no (failed tests)'
32655 LDFLAGS="$PERSIST_LDFLAGS"
32656 CPPFLAGS="$PERSIST_CPPFLAGS"
32657 else
32658 XML_LIBS='-lxml2'
32659 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032660
cristy8b350f62009-11-15 23:12:43 +000032661$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032662
cristy09b53e12011-10-14 12:47:22 +000032663 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32664$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032665 have_xml='yes'
32666 fi
32667 else
cristy09b53e12011-10-14 12:47:22 +000032668 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32669$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032670 fi
32671fi
cristy73bd4a52010-10-05 11:24:23 +000032672 if test "$have_xml" = 'yes'; then
32673 XML_DELEGATE_TRUE=
32674 XML_DELEGATE_FALSE='#'
32675else
32676 XML_DELEGATE_TRUE='#'
32677 XML_DELEGATE_FALSE=
32678fi
32679
cristy3ed852e2009-09-05 21:47:34 +000032680
32681
32682
32683# Substitute compiler name to build/link PerlMagick
32684#
32685
32686
32687#
32688# Configure install Paths
32689#
cristy7def36a2011-10-28 19:04:41 +000032690
cristy2a11bef2011-10-28 18:33:11 +000032691# Path to ImageMagick header files
32692INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032693INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32694DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032695case "${build_os}" in
32696 mingw* )
32697 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32698 ;;
32699esac
32700
32701cat >>confdefs.h <<_ACEOF
32702#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32703_ACEOF
32704
32705
cristy3ed852e2009-09-05 21:47:34 +000032706
32707# Subdirectory under lib to place ImageMagick lib files
32708LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32709
32710cat >>confdefs.h <<_ACEOF
32711#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32712_ACEOF
32713
32714
32715# Path to ImageMagick bin directory
32716EXECUTABLE_PATH="${BIN_DIR}"
32717DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32718case "${build_os}" in
32719 mingw* )
32720 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32721 ;;
32722esac
32723
32724cat >>confdefs.h <<_ACEOF
32725#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32726_ACEOF
32727
32728
32729
32730# Path to ImageMagick lib
32731LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32732DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32733case "${build_os}" in
32734 mingw* )
32735 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32736 ;;
32737esac
32738
32739cat >>confdefs.h <<_ACEOF
32740#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32741_ACEOF
32742
32743
32744
cristy3ed852e2009-09-05 21:47:34 +000032745#
32746# Subdirectory under lib to place ImageMagick coder module files
32747CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32748
32749cat >>confdefs.h <<_ACEOF
32750#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32751_ACEOF
32752
32753CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32754DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32755case "${build_os}" in
32756 mingw* )
32757 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32758 ;;
32759esac
32760
32761cat >>confdefs.h <<_ACEOF
32762#define CODER_PATH "$DEFINE_CODER_PATH"
32763_ACEOF
32764
32765
32766
32767#
32768# Subdirectory under lib to place ImageMagick filter module files
32769FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32770
32771cat >>confdefs.h <<_ACEOF
32772#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32773_ACEOF
32774
32775FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32776DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32777case "${build_os}" in
32778 mingw* )
32779 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32780 ;;
32781esac
32782
32783cat >>confdefs.h <<_ACEOF
32784#define FILTER_PATH "$DEFINE_FILTER_PATH"
32785_ACEOF
32786
32787
32788
32789#
32790# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032791DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032792DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32793DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032794case "${build_os}" in
32795 mingw* )
32796 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32797 ;;
32798esac
32799
32800cat >>confdefs.h <<_ACEOF
32801#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32802_ACEOF
32803
32804
32805
cristy2a11bef2011-10-28 18:33:11 +000032806# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032807CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032808
32809cat >>confdefs.h <<_ACEOF
32810#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32811_ACEOF
32812
cristy7def36a2011-10-28 19:04:41 +000032813CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032814DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32815case "${build_os}" in
32816 mingw* )
32817 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32818 ;;
32819esac
32820
32821cat >>confdefs.h <<_ACEOF
32822#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32823_ACEOF
32824
32825
32826
cristy2a11bef2011-10-28 18:33:11 +000032827# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032828SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032829
32830cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032831#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032832_ACEOF
32833
cristy670aa3c2011-11-03 00:54:00 +000032834SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032835DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032836case "${build_os}" in
32837 mingw* )
cristy4f820712011-04-01 12:35:43 +000032838 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032839 ;;
32840esac
32841
32842cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032843#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032844_ACEOF
32845
32846
32847
cristy408ebcd2011-11-14 01:36:57 +000032848# Subdirectory to place architecture-dependent configuration files
32849SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032850
32851cat >>confdefs.h <<_ACEOF
32852#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32853_ACEOF
32854
cristy408ebcd2011-11-14 01:36:57 +000032855SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32856DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032857case "${build_os}" in
32858 mingw* )
32859 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32860 ;;
32861esac
32862
32863cat >>confdefs.h <<_ACEOF
32864#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32865_ACEOF
32866
32867
32868
cristy3ed852e2009-09-05 21:47:34 +000032869#
32870# program_transform_name is formed for use in a Makefile, so create a
32871# modified version for use in a shell script.
32872configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32873
32874# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032875{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32876$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032878$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032879{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32880$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032881AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032882BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032883BZIPDelegateDefault='bzip2'
32884BrowseDelegateDefault='xdg-open'
32885CGMDecodeDelegateDefault='ralcgm'
32886CatDelegateDefault='cat'
32887DNGDecodeDelegateDefault='ufraw-batch'
32888GVCDecodeDelegateDefault='dot'
32889DVIDecodeDelegateDefault='dvips'
32890EchoDelegateDefault='echo'
32891EditorDelegateDefault='xterm'
32892FIGDecodeDelegateDefault='fig2dev'
32893ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32894DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32895MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32896GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032897HPGLDecodeDelegateDefault='hp2xx'
32898HTMLDecodeDelegateDefault='html2ps'
32899ILBMDecodeDelegateDefault='ilbmtoppm'
32900ILBMEncodeDelegateDefault='ppmtoilbm'
32901LPDelegateDefault='lp'
32902LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032903LaunchDelegateDefault='gimp'
32904MANDelegateDefault='groff'
32905MPEGDecodeDelegateDefault='ffmpeg'
32906MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032907MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032908MVDelegateDefault='mv'
32909PCLDelegateDefault='pcl6'
32910PGPDecodeDelegateDefault='pgpv'
32911POVDelegateDefault='povray'
32912if test "$native_win32_build" = 'yes'; then
32913 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032914elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032915 PSDelegateDefault='gsc'
32916else
32917 PSDelegateDefault='gs'
32918fi
32919RLEEncodeDelegateDefault='rawtorle'
32920RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032921RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032922SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032923SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032924TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032925UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032926WMFDecodeDelegateDefault='wmf2eps'
32927WWWDecodeDelegateDefault='curl'
32928XPSDelegateDefault='gxps'
32929ZipDelegateDefault='gzip'
32930
32931# Search for delegates
32932# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32933set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032935$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032936if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032937 $as_echo_n "(cached) " >&6
32938else
32939 case $AutotraceDecodeDelegate in
32940 [\\/]* | ?:[\\/]*)
32941 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32942 ;;
32943 *)
32944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32945for as_dir in $PATH
32946do
32947 IFS=$as_save_IFS
32948 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032951 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032953 break 2
32954 fi
32955done
cristy8b350f62009-11-15 23:12:43 +000032956 done
cristy3ed852e2009-09-05 21:47:34 +000032957IFS=$as_save_IFS
32958
32959 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32960 ;;
32961esac
32962fi
32963AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32964if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032966$as_echo "$AutotraceDecodeDelegate" >&6; }
32967else
cristy8b350f62009-11-15 23:12:43 +000032968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032969$as_echo "no" >&6; }
32970fi
32971
32972
cristy3ed852e2009-09-05 21:47:34 +000032973# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32974set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032976$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032977if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032978 $as_echo_n "(cached) " >&6
32979else
32980 case $BlenderDecodeDelegate in
32981 [\\/]* | ?:[\\/]*)
32982 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32983 ;;
32984 *)
32985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32986for as_dir in $PATH
32987do
32988 IFS=$as_save_IFS
32989 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032990 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032992 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032994 break 2
32995 fi
32996done
cristy8b350f62009-11-15 23:12:43 +000032997 done
cristy3ed852e2009-09-05 21:47:34 +000032998IFS=$as_save_IFS
32999
33000 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33001 ;;
33002esac
33003fi
33004BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33005if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033007$as_echo "$BlenderDecodeDelegate" >&6; }
33008else
cristy8b350f62009-11-15 23:12:43 +000033009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033010$as_echo "no" >&6; }
33011fi
33012
33013
33014# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33015set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033017$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033018if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033019 $as_echo_n "(cached) " >&6
33020else
33021 case $BZIPDelegate in
33022 [\\/]* | ?:[\\/]*)
33023 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33024 ;;
33025 *)
33026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33027for as_dir in $PATH
33028do
33029 IFS=$as_save_IFS
33030 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033031 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033033 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033035 break 2
33036 fi
33037done
cristy8b350f62009-11-15 23:12:43 +000033038 done
cristy3ed852e2009-09-05 21:47:34 +000033039IFS=$as_save_IFS
33040
33041 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33042 ;;
33043esac
33044fi
33045BZIPDelegate=$ac_cv_path_BZIPDelegate
33046if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033048$as_echo "$BZIPDelegate" >&6; }
33049else
cristy8b350f62009-11-15 23:12:43 +000033050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033051$as_echo "no" >&6; }
33052fi
33053
33054
cristyc59f0e72012-08-27 12:59:33 +000033055for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33056do
33057 # Extract the first word of "$ac_prog", so it can be a program name with args.
33058set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033060$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033061if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033062 $as_echo_n "(cached) " >&6
33063else
33064 case $BrowseDelegate in
33065 [\\/]* | ?:[\\/]*)
33066 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33067 ;;
33068 *)
33069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33070for as_dir in $PATH
33071do
33072 IFS=$as_save_IFS
33073 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033074 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033076 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033078 break 2
33079 fi
33080done
cristy8b350f62009-11-15 23:12:43 +000033081 done
cristy3ed852e2009-09-05 21:47:34 +000033082IFS=$as_save_IFS
33083
cristy3ed852e2009-09-05 21:47:34 +000033084 ;;
33085esac
33086fi
33087BrowseDelegate=$ac_cv_path_BrowseDelegate
33088if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033090$as_echo "$BrowseDelegate" >&6; }
33091else
cristy8b350f62009-11-15 23:12:43 +000033092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033093$as_echo "no" >&6; }
33094fi
33095
33096
cristyc59f0e72012-08-27 12:59:33 +000033097 test -n "$BrowseDelegate" && break
33098done
33099test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33100
cristy3ed852e2009-09-05 21:47:34 +000033101# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
33102set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033104$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033105if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033106 $as_echo_n "(cached) " >&6
33107else
33108 case $CGMDecodeDelegate in
33109 [\\/]* | ?:[\\/]*)
33110 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
33111 ;;
33112 *)
33113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33114for as_dir in $PATH
33115do
33116 IFS=$as_save_IFS
33117 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033118 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033120 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033122 break 2
33123 fi
33124done
cristy8b350f62009-11-15 23:12:43 +000033125 done
cristy3ed852e2009-09-05 21:47:34 +000033126IFS=$as_save_IFS
33127
33128 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
33129 ;;
33130esac
33131fi
33132CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
33133if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033135$as_echo "$CGMDecodeDelegate" >&6; }
33136else
cristy8b350f62009-11-15 23:12:43 +000033137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033138$as_echo "no" >&6; }
33139fi
33140
33141
33142# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33143set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033145$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033146if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033147 $as_echo_n "(cached) " >&6
33148else
33149 case $CatDelegate in
33150 [\\/]* | ?:[\\/]*)
33151 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33152 ;;
33153 *)
33154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33155for as_dir in $PATH
33156do
33157 IFS=$as_save_IFS
33158 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033159 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033161 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033163 break 2
33164 fi
33165done
cristy8b350f62009-11-15 23:12:43 +000033166 done
cristy3ed852e2009-09-05 21:47:34 +000033167IFS=$as_save_IFS
33168
33169 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33170 ;;
33171esac
33172fi
33173CatDelegate=$ac_cv_path_CatDelegate
33174if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033176$as_echo "$CatDelegate" >&6; }
33177else
cristy8b350f62009-11-15 23:12:43 +000033178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033179$as_echo "no" >&6; }
33180fi
33181
33182
33183# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33184set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033186$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033187if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033188 $as_echo_n "(cached) " >&6
33189else
33190 case $DNGDecodeDelegate in
33191 [\\/]* | ?:[\\/]*)
33192 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33193 ;;
33194 *)
33195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33196for as_dir in $PATH
33197do
33198 IFS=$as_save_IFS
33199 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033200 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033202 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033204 break 2
33205 fi
33206done
cristy8b350f62009-11-15 23:12:43 +000033207 done
cristy3ed852e2009-09-05 21:47:34 +000033208IFS=$as_save_IFS
33209
33210 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33211 ;;
33212esac
33213fi
33214DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33215if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033217$as_echo "$DNGDecodeDelegate" >&6; }
33218else
cristy8b350f62009-11-15 23:12:43 +000033219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033220$as_echo "no" >&6; }
33221fi
33222
33223
33224# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33225set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033227$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033228if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033229 $as_echo_n "(cached) " >&6
33230else
33231 case $GVCDecodeDelegate in
33232 [\\/]* | ?:[\\/]*)
33233 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33234 ;;
33235 *)
33236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33237for as_dir in $PATH
33238do
33239 IFS=$as_save_IFS
33240 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033241 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033243 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033245 break 2
33246 fi
33247done
cristy8b350f62009-11-15 23:12:43 +000033248 done
cristy3ed852e2009-09-05 21:47:34 +000033249IFS=$as_save_IFS
33250
33251 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33252 ;;
33253esac
33254fi
33255GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33256if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033258$as_echo "$GVCDecodeDelegate" >&6; }
33259else
cristy8b350f62009-11-15 23:12:43 +000033260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033261$as_echo "no" >&6; }
33262fi
33263
33264
33265# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33266set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033268$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033269if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033270 $as_echo_n "(cached) " >&6
33271else
33272 case $DVIDecodeDelegate in
33273 [\\/]* | ?:[\\/]*)
33274 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33275 ;;
33276 *)
33277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33278for as_dir in $PATH
33279do
33280 IFS=$as_save_IFS
33281 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033282 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033284 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033286 break 2
33287 fi
33288done
cristy8b350f62009-11-15 23:12:43 +000033289 done
cristy3ed852e2009-09-05 21:47:34 +000033290IFS=$as_save_IFS
33291
33292 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33293 ;;
33294esac
33295fi
33296DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33297if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033299$as_echo "$DVIDecodeDelegate" >&6; }
33300else
cristy8b350f62009-11-15 23:12:43 +000033301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033302$as_echo "no" >&6; }
33303fi
33304
33305
33306# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33307set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033309$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033310if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033311 $as_echo_n "(cached) " >&6
33312else
33313 case $EchoDelegate in
33314 [\\/]* | ?:[\\/]*)
33315 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33316 ;;
33317 *)
33318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33319for as_dir in $PATH
33320do
33321 IFS=$as_save_IFS
33322 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033325 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033327 break 2
33328 fi
33329done
cristy8b350f62009-11-15 23:12:43 +000033330 done
cristy3ed852e2009-09-05 21:47:34 +000033331IFS=$as_save_IFS
33332
33333 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33334 ;;
33335esac
33336fi
33337EchoDelegate=$ac_cv_path_EchoDelegate
33338if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033340$as_echo "$EchoDelegate" >&6; }
33341else
cristy8b350f62009-11-15 23:12:43 +000033342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033343$as_echo "no" >&6; }
33344fi
33345
33346
33347# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33348set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033350$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033351if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033352 $as_echo_n "(cached) " >&6
33353else
33354 case $EditorDelegate in
33355 [\\/]* | ?:[\\/]*)
33356 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33357 ;;
33358 *)
33359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33360for as_dir in $PATH
33361do
33362 IFS=$as_save_IFS
33363 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033364 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033366 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033368 break 2
33369 fi
33370done
cristy8b350f62009-11-15 23:12:43 +000033371 done
cristy3ed852e2009-09-05 21:47:34 +000033372IFS=$as_save_IFS
33373
33374 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33375 ;;
33376esac
33377fi
33378EditorDelegate=$ac_cv_path_EditorDelegate
33379if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033381$as_echo "$EditorDelegate" >&6; }
33382else
cristy8b350f62009-11-15 23:12:43 +000033383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033384$as_echo "no" >&6; }
33385fi
33386
33387
33388# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33389set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033392if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033393 $as_echo_n "(cached) " >&6
33394else
33395 case $FIGDecodeDelegate in
33396 [\\/]* | ?:[\\/]*)
33397 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33398 ;;
33399 *)
33400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33401for as_dir in $PATH
33402do
33403 IFS=$as_save_IFS
33404 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033405 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033407 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033409 break 2
33410 fi
33411done
cristy8b350f62009-11-15 23:12:43 +000033412 done
cristy3ed852e2009-09-05 21:47:34 +000033413IFS=$as_save_IFS
33414
33415 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33416 ;;
33417esac
33418fi
33419FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33420if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033422$as_echo "$FIGDecodeDelegate" >&6; }
33423else
cristy8b350f62009-11-15 23:12:43 +000033424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033425$as_echo "no" >&6; }
33426fi
33427
33428
33429# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33430set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033432$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033433if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033434 $as_echo_n "(cached) " >&6
33435else
33436 case $ConvertDelegate in
33437 [\\/]* | ?:[\\/]*)
33438 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33439 ;;
33440 *)
33441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33442for as_dir in $PATH
33443do
33444 IFS=$as_save_IFS
33445 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033448 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033450 break 2
33451 fi
33452done
cristy8b350f62009-11-15 23:12:43 +000033453 done
cristy3ed852e2009-09-05 21:47:34 +000033454IFS=$as_save_IFS
33455
33456 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33457 ;;
33458esac
33459fi
33460ConvertDelegate=$ac_cv_path_ConvertDelegate
33461if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033463$as_echo "$ConvertDelegate" >&6; }
33464else
cristy8b350f62009-11-15 23:12:43 +000033465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033466$as_echo "no" >&6; }
33467fi
33468
33469
33470# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33471set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033473$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033474if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033475 $as_echo_n "(cached) " >&6
33476else
33477 case $DisplayDelegate in
33478 [\\/]* | ?:[\\/]*)
33479 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33480 ;;
33481 *)
33482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33483for as_dir in $PATH
33484do
33485 IFS=$as_save_IFS
33486 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033487 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033489 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033491 break 2
33492 fi
33493done
cristy8b350f62009-11-15 23:12:43 +000033494 done
cristy3ed852e2009-09-05 21:47:34 +000033495IFS=$as_save_IFS
33496
33497 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33498 ;;
33499esac
33500fi
33501DisplayDelegate=$ac_cv_path_DisplayDelegate
33502if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033504$as_echo "$DisplayDelegate" >&6; }
33505else
cristy8b350f62009-11-15 23:12:43 +000033506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033507$as_echo "no" >&6; }
33508fi
33509
33510
33511# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33512set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033514$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033515if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033516 $as_echo_n "(cached) " >&6
33517else
33518 case $MogrifyDelegate in
33519 [\\/]* | ?:[\\/]*)
33520 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33521 ;;
33522 *)
33523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33524for as_dir in $PATH
33525do
33526 IFS=$as_save_IFS
33527 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033528 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033530 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033532 break 2
33533 fi
33534done
cristy8b350f62009-11-15 23:12:43 +000033535 done
cristy3ed852e2009-09-05 21:47:34 +000033536IFS=$as_save_IFS
33537
33538 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33539 ;;
33540esac
33541fi
33542MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33543if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033545$as_echo "$MogrifyDelegate" >&6; }
33546else
cristy8b350f62009-11-15 23:12:43 +000033547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033548$as_echo "no" >&6; }
33549fi
33550
33551
33552# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33553set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033555$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033556if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033557 $as_echo_n "(cached) " >&6
33558else
33559 case $GnuplotDecodeDelegate in
33560 [\\/]* | ?:[\\/]*)
33561 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33562 ;;
33563 *)
33564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33565for as_dir in $PATH
33566do
33567 IFS=$as_save_IFS
33568 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033569 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033571 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033573 break 2
33574 fi
33575done
cristy8b350f62009-11-15 23:12:43 +000033576 done
cristy3ed852e2009-09-05 21:47:34 +000033577IFS=$as_save_IFS
33578
33579 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33580 ;;
33581esac
33582fi
33583GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33584if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033586$as_echo "$GnuplotDecodeDelegate" >&6; }
33587else
cristy8b350f62009-11-15 23:12:43 +000033588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033589$as_echo "no" >&6; }
33590fi
33591
33592
cristy3ed852e2009-09-05 21:47:34 +000033593# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33594set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033596$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033597if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033598 $as_echo_n "(cached) " >&6
33599else
33600 case $HPGLDecodeDelegate in
33601 [\\/]* | ?:[\\/]*)
33602 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33603 ;;
33604 *)
33605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33606for as_dir in $PATH
33607do
33608 IFS=$as_save_IFS
33609 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033610 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033612 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033614 break 2
33615 fi
33616done
cristy8b350f62009-11-15 23:12:43 +000033617 done
cristy3ed852e2009-09-05 21:47:34 +000033618IFS=$as_save_IFS
33619
33620 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33621 ;;
33622esac
33623fi
33624HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33625if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033627$as_echo "$HPGLDecodeDelegate" >&6; }
33628else
cristy8b350f62009-11-15 23:12:43 +000033629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033630$as_echo "no" >&6; }
33631fi
33632
33633
33634# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33635set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033637$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033638if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033639 $as_echo_n "(cached) " >&6
33640else
33641 case $HTMLDecodeDelegate in
33642 [\\/]* | ?:[\\/]*)
33643 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33644 ;;
33645 *)
33646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33647for as_dir in $PATH
33648do
33649 IFS=$as_save_IFS
33650 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033651 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033653 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033655 break 2
33656 fi
33657done
cristy8b350f62009-11-15 23:12:43 +000033658 done
cristy3ed852e2009-09-05 21:47:34 +000033659IFS=$as_save_IFS
33660
33661 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33662 ;;
33663esac
33664fi
33665HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33666if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033668$as_echo "$HTMLDecodeDelegate" >&6; }
33669else
cristy8b350f62009-11-15 23:12:43 +000033670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033671$as_echo "no" >&6; }
33672fi
33673
33674
33675# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33676set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033678$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033679if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033680 $as_echo_n "(cached) " >&6
33681else
33682 case $ILBMDecodeDelegate in
33683 [\\/]* | ?:[\\/]*)
33684 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33685 ;;
33686 *)
33687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33688for as_dir in $PATH
33689do
33690 IFS=$as_save_IFS
33691 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033692 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033694 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033696 break 2
33697 fi
33698done
cristy8b350f62009-11-15 23:12:43 +000033699 done
cristy3ed852e2009-09-05 21:47:34 +000033700IFS=$as_save_IFS
33701
33702 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33703 ;;
33704esac
33705fi
33706ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33707if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033709$as_echo "$ILBMDecodeDelegate" >&6; }
33710else
cristy8b350f62009-11-15 23:12:43 +000033711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033712$as_echo "no" >&6; }
33713fi
33714
33715
33716# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33717set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033719$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033720if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033721 $as_echo_n "(cached) " >&6
33722else
33723 case $ILBMEncodeDelegate in
33724 [\\/]* | ?:[\\/]*)
33725 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33726 ;;
33727 *)
33728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33729for as_dir in $PATH
33730do
33731 IFS=$as_save_IFS
33732 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033733 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033735 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033737 break 2
33738 fi
33739done
cristy8b350f62009-11-15 23:12:43 +000033740 done
cristy3ed852e2009-09-05 21:47:34 +000033741IFS=$as_save_IFS
33742
33743 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33744 ;;
33745esac
33746fi
33747ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33748if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033750$as_echo "$ILBMEncodeDelegate" >&6; }
33751else
cristy8b350f62009-11-15 23:12:43 +000033752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033753$as_echo "no" >&6; }
33754fi
33755
33756
33757# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33758set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033760$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033761if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033762 $as_echo_n "(cached) " >&6
33763else
33764 case $LPDelegate in
33765 [\\/]* | ?:[\\/]*)
33766 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33767 ;;
33768 *)
33769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33770for as_dir in $PATH
33771do
33772 IFS=$as_save_IFS
33773 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033774 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033776 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033778 break 2
33779 fi
33780done
cristy8b350f62009-11-15 23:12:43 +000033781 done
cristy3ed852e2009-09-05 21:47:34 +000033782IFS=$as_save_IFS
33783
33784 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33785 ;;
33786esac
33787fi
33788LPDelegate=$ac_cv_path_LPDelegate
33789if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033791$as_echo "$LPDelegate" >&6; }
33792else
cristy8b350f62009-11-15 23:12:43 +000033793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033794$as_echo "no" >&6; }
33795fi
33796
33797
33798# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33799set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033801$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033802if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033803 $as_echo_n "(cached) " >&6
33804else
33805 case $LPRDelegate in
33806 [\\/]* | ?:[\\/]*)
33807 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33808 ;;
33809 *)
33810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33811for as_dir in $PATH
33812do
33813 IFS=$as_save_IFS
33814 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033815 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033817 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033819 break 2
33820 fi
33821done
cristy8b350f62009-11-15 23:12:43 +000033822 done
cristy3ed852e2009-09-05 21:47:34 +000033823IFS=$as_save_IFS
33824
33825 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33826 ;;
33827esac
33828fi
33829LPRDelegate=$ac_cv_path_LPRDelegate
33830if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033832$as_echo "$LPRDelegate" >&6; }
33833else
cristy8b350f62009-11-15 23:12:43 +000033834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033835$as_echo "no" >&6; }
33836fi
33837
33838
cristy3ed852e2009-09-05 21:47:34 +000033839# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33840set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033842$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033843if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033844 $as_echo_n "(cached) " >&6
33845else
33846 case $LaunchDelegate in
33847 [\\/]* | ?:[\\/]*)
33848 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33849 ;;
33850 *)
33851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33852for as_dir in $PATH
33853do
33854 IFS=$as_save_IFS
33855 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033856 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033858 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033860 break 2
33861 fi
33862done
cristy8b350f62009-11-15 23:12:43 +000033863 done
cristy3ed852e2009-09-05 21:47:34 +000033864IFS=$as_save_IFS
33865
33866 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33867 ;;
33868esac
33869fi
33870LaunchDelegate=$ac_cv_path_LaunchDelegate
33871if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033873$as_echo "$LaunchDelegate" >&6; }
33874else
cristy8b350f62009-11-15 23:12:43 +000033875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033876$as_echo "no" >&6; }
33877fi
33878
33879
33880# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33881set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033883$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033884if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033885 $as_echo_n "(cached) " >&6
33886else
33887 case $MANDelegate in
33888 [\\/]* | ?:[\\/]*)
33889 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33890 ;;
33891 *)
33892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33893for as_dir in $PATH
33894do
33895 IFS=$as_save_IFS
33896 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033897 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033899 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033901 break 2
33902 fi
33903done
cristy8b350f62009-11-15 23:12:43 +000033904 done
cristy3ed852e2009-09-05 21:47:34 +000033905IFS=$as_save_IFS
33906
33907 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33908 ;;
33909esac
33910fi
33911MANDelegate=$ac_cv_path_MANDelegate
33912if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033914$as_echo "$MANDelegate" >&6; }
33915else
cristy8b350f62009-11-15 23:12:43 +000033916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033917$as_echo "no" >&6; }
33918fi
33919
33920
33921# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33922set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033924$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033925if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033926 $as_echo_n "(cached) " >&6
33927else
33928 case $MPEGDecodeDelegate in
33929 [\\/]* | ?:[\\/]*)
33930 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33931 ;;
33932 *)
33933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33934for as_dir in $PATH
33935do
33936 IFS=$as_save_IFS
33937 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033938 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033940 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033942 break 2
33943 fi
33944done
cristy8b350f62009-11-15 23:12:43 +000033945 done
cristy3ed852e2009-09-05 21:47:34 +000033946IFS=$as_save_IFS
33947
33948 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33949 ;;
33950esac
33951fi
33952MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33953if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033955$as_echo "$MPEGDecodeDelegate" >&6; }
33956else
cristy8b350f62009-11-15 23:12:43 +000033957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033958$as_echo "no" >&6; }
33959fi
33960
33961
33962# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33963set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033965$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033966if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033967 $as_echo_n "(cached) " >&6
33968else
33969 case $MPEGEncodeDelegate in
33970 [\\/]* | ?:[\\/]*)
33971 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33972 ;;
33973 *)
33974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33975for as_dir in $PATH
33976do
33977 IFS=$as_save_IFS
33978 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033979 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033981 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033983 break 2
33984 fi
33985done
cristy8b350f62009-11-15 23:12:43 +000033986 done
cristy3ed852e2009-09-05 21:47:34 +000033987IFS=$as_save_IFS
33988
33989 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33990 ;;
33991esac
33992fi
33993MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33994if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033996$as_echo "$MPEGEncodeDelegate" >&6; }
33997else
cristy8b350f62009-11-15 23:12:43 +000033998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033999$as_echo "no" >&6; }
34000fi
34001
34002
cristy935c86e2010-06-05 23:50:07 +000034003# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34004set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34006$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034007if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034008 $as_echo_n "(cached) " >&6
34009else
34010 case $MrSIDDecodeDelegate in
34011 [\\/]* | ?:[\\/]*)
34012 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34013 ;;
34014 *)
34015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34016for as_dir in $PATH
34017do
34018 IFS=$as_save_IFS
34019 test -z "$as_dir" && as_dir=.
34020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034022 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34024 break 2
34025 fi
34026done
34027 done
34028IFS=$as_save_IFS
34029
34030 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34031 ;;
34032esac
34033fi
34034MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34035if test -n "$MrSIDDecodeDelegate"; then
34036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34037$as_echo "$MrSIDDecodeDelegate" >&6; }
34038else
34039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34040$as_echo "no" >&6; }
34041fi
34042
34043
cristy3ed852e2009-09-05 21:47:34 +000034044# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34045set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034047$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034048if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034049 $as_echo_n "(cached) " >&6
34050else
34051 case $MVDelegate in
34052 [\\/]* | ?:[\\/]*)
34053 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34054 ;;
34055 *)
34056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34057for as_dir in $PATH
34058do
34059 IFS=$as_save_IFS
34060 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034061 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034063 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034065 break 2
34066 fi
34067done
cristy8b350f62009-11-15 23:12:43 +000034068 done
cristy3ed852e2009-09-05 21:47:34 +000034069IFS=$as_save_IFS
34070
34071 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34072 ;;
34073esac
34074fi
34075MVDelegate=$ac_cv_path_MVDelegate
34076if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034078$as_echo "$MVDelegate" >&6; }
34079else
cristy8b350f62009-11-15 23:12:43 +000034080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034081$as_echo "no" >&6; }
34082fi
34083
34084
34085# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34086set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034088$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034089if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034090 $as_echo_n "(cached) " >&6
34091else
34092 case $PCLDelegate in
34093 [\\/]* | ?:[\\/]*)
34094 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34095 ;;
34096 *)
34097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34098for as_dir in $PATH
34099do
34100 IFS=$as_save_IFS
34101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034102 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034104 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034106 break 2
34107 fi
34108done
cristy8b350f62009-11-15 23:12:43 +000034109 done
cristy3ed852e2009-09-05 21:47:34 +000034110IFS=$as_save_IFS
34111
34112 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34113 ;;
34114esac
34115fi
34116PCLDelegate=$ac_cv_path_PCLDelegate
34117if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034119$as_echo "$PCLDelegate" >&6; }
34120else
cristy8b350f62009-11-15 23:12:43 +000034121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034122$as_echo "no" >&6; }
34123fi
34124
34125
34126# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34127set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034129$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034130if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034131 $as_echo_n "(cached) " >&6
34132else
34133 case $PGPDecodeDelegate in
34134 [\\/]* | ?:[\\/]*)
34135 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34136 ;;
34137 *)
34138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34139for as_dir in $PATH
34140do
34141 IFS=$as_save_IFS
34142 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034143 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034145 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034147 break 2
34148 fi
34149done
cristy8b350f62009-11-15 23:12:43 +000034150 done
cristy3ed852e2009-09-05 21:47:34 +000034151IFS=$as_save_IFS
34152
34153 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34154 ;;
34155esac
34156fi
34157PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34158if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034160$as_echo "$PGPDecodeDelegate" >&6; }
34161else
cristy8b350f62009-11-15 23:12:43 +000034162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034163$as_echo "no" >&6; }
34164fi
34165
34166
34167# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34168set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034170$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034171if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034172 $as_echo_n "(cached) " >&6
34173else
34174 case $POVDelegate in
34175 [\\/]* | ?:[\\/]*)
34176 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34177 ;;
34178 *)
34179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34180for as_dir in $PATH
34181do
34182 IFS=$as_save_IFS
34183 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034184 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034186 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034188 break 2
34189 fi
34190done
cristy8b350f62009-11-15 23:12:43 +000034191 done
cristy3ed852e2009-09-05 21:47:34 +000034192IFS=$as_save_IFS
34193
34194 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34195 ;;
34196esac
34197fi
34198POVDelegate=$ac_cv_path_POVDelegate
34199if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034201$as_echo "$POVDelegate" >&6; }
34202else
cristy8b350f62009-11-15 23:12:43 +000034203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034204$as_echo "no" >&6; }
34205fi
34206
34207
34208for ac_prog in gsx gsc "$PSDelegateDefault"
34209do
34210 # Extract the first word of "$ac_prog", so it can be a program name with args.
34211set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034214if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034215 $as_echo_n "(cached) " >&6
34216else
34217 case $PSDelegate in
34218 [\\/]* | ?:[\\/]*)
34219 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34220 ;;
34221 *)
34222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34223for as_dir in $PATH
34224do
34225 IFS=$as_save_IFS
34226 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034227 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034229 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034231 break 2
34232 fi
34233done
cristy8b350f62009-11-15 23:12:43 +000034234 done
cristy3ed852e2009-09-05 21:47:34 +000034235IFS=$as_save_IFS
34236
34237 ;;
34238esac
34239fi
34240PSDelegate=$ac_cv_path_PSDelegate
34241if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034243$as_echo "$PSDelegate" >&6; }
34244else
cristy8b350f62009-11-15 23:12:43 +000034245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034246$as_echo "no" >&6; }
34247fi
34248
34249
34250 test -n "$PSDelegate" && break
34251done
34252test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34253
34254# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34255set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034257$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034258if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034259 $as_echo_n "(cached) " >&6
34260else
34261 case $RLEEncodeDelegate in
34262 [\\/]* | ?:[\\/]*)
34263 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34264 ;;
34265 *)
34266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34267for as_dir in $PATH
34268do
34269 IFS=$as_save_IFS
34270 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034271 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034273 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034275 break 2
34276 fi
34277done
cristy8b350f62009-11-15 23:12:43 +000034278 done
cristy3ed852e2009-09-05 21:47:34 +000034279IFS=$as_save_IFS
34280
34281 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34282 ;;
34283esac
34284fi
34285RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34286if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034288$as_echo "$RLEEncodeDelegate" >&6; }
34289else
cristy8b350f62009-11-15 23:12:43 +000034290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034291$as_echo "no" >&6; }
34292fi
34293
34294
34295# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34296set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034298$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034299if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034300 $as_echo_n "(cached) " >&6
34301else
34302 case $RMDelegate in
34303 [\\/]* | ?:[\\/]*)
34304 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34305 ;;
34306 *)
34307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34308for as_dir in $PATH
34309do
34310 IFS=$as_save_IFS
34311 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034312 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034314 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034316 break 2
34317 fi
34318done
cristy8b350f62009-11-15 23:12:43 +000034319 done
cristy3ed852e2009-09-05 21:47:34 +000034320IFS=$as_save_IFS
34321
34322 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34323 ;;
34324esac
34325fi
34326RMDelegate=$ac_cv_path_RMDelegate
34327if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034329$as_echo "$RMDelegate" >&6; }
34330else
cristy8b350f62009-11-15 23:12:43 +000034331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034332$as_echo "no" >&6; }
34333fi
34334
34335
cristy4689cf02010-02-17 21:15:45 +000034336# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34337set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34339$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034340if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034341 $as_echo_n "(cached) " >&6
34342else
34343 case $RSVGDecodeDelegate in
34344 [\\/]* | ?:[\\/]*)
34345 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34346 ;;
34347 *)
34348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34349for as_dir in $PATH
34350do
34351 IFS=$as_save_IFS
34352 test -z "$as_dir" && as_dir=.
34353 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034355 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34357 break 2
34358 fi
34359done
34360 done
34361IFS=$as_save_IFS
34362
34363 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34364 ;;
34365esac
34366fi
34367RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34368if test -n "$RSVGDecodeDelegate"; then
34369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34370$as_echo "$RSVGDecodeDelegate" >&6; }
34371else
34372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34373$as_echo "no" >&6; }
34374fi
34375
34376
cristy3ed852e2009-09-05 21:47:34 +000034377# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34378set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034380$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034381if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034382 $as_echo_n "(cached) " >&6
34383else
34384 case $SCANDecodeDelegate in
34385 [\\/]* | ?:[\\/]*)
34386 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34387 ;;
34388 *)
34389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34390for as_dir in $PATH
34391do
34392 IFS=$as_save_IFS
34393 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034394 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034396 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034398 break 2
34399 fi
34400done
cristy8b350f62009-11-15 23:12:43 +000034401 done
cristy3ed852e2009-09-05 21:47:34 +000034402IFS=$as_save_IFS
34403
34404 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34405 ;;
34406esac
34407fi
34408SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34409if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034411$as_echo "$SCANDecodeDelegate" >&6; }
34412else
cristy8b350f62009-11-15 23:12:43 +000034413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034414$as_echo "no" >&6; }
34415fi
34416
34417
cristyec6934f2012-08-14 18:38:40 +000034418# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34419set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34421$as_echo_n "checking for $ac_word... " >&6; }
34422if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34423 $as_echo_n "(cached) " >&6
34424else
34425 case $SVGDecodeDelegate in
34426 [\\/]* | ?:[\\/]*)
34427 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34428 ;;
34429 *)
34430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34431for as_dir in $PATH
34432do
34433 IFS=$as_save_IFS
34434 test -z "$as_dir" && as_dir=.
34435 for ac_exec_ext in '' $ac_executable_extensions; do
34436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34437 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34439 break 2
34440 fi
34441done
34442 done
34443IFS=$as_save_IFS
34444
34445 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34446 ;;
34447esac
34448fi
34449SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34450if test -n "$SVGDecodeDelegate"; then
34451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34452$as_echo "$SVGDecodeDelegate" >&6; }
34453else
34454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34455$as_echo "no" >&6; }
34456fi
34457
34458
cristy3ed852e2009-09-05 21:47:34 +000034459# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34460set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034462$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034463if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034464 $as_echo_n "(cached) " >&6
34465else
34466 case $TXTDelegate in
34467 [\\/]* | ?:[\\/]*)
34468 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34469 ;;
34470 *)
34471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34472for as_dir in $PATH
34473do
34474 IFS=$as_save_IFS
34475 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034476 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034478 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034480 break 2
34481 fi
34482done
cristy8b350f62009-11-15 23:12:43 +000034483 done
cristy3ed852e2009-09-05 21:47:34 +000034484IFS=$as_save_IFS
34485
34486 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34487 ;;
34488esac
34489fi
34490TXTDelegate=$ac_cv_path_TXTDelegate
34491if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034493$as_echo "$TXTDelegate" >&6; }
34494else
cristy8b350f62009-11-15 23:12:43 +000034495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034496$as_echo "no" >&6; }
34497fi
34498
34499
cristy5ac9ac82010-07-29 13:24:24 +000034500# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34501set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34503$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034504if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034505 $as_echo_n "(cached) " >&6
34506else
34507 case $UniconvertorDelegate in
34508 [\\/]* | ?:[\\/]*)
34509 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34510 ;;
34511 *)
34512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34513for as_dir in $PATH
34514do
34515 IFS=$as_save_IFS
34516 test -z "$as_dir" && as_dir=.
34517 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034519 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34521 break 2
34522 fi
34523done
34524 done
34525IFS=$as_save_IFS
34526
34527 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34528 ;;
34529esac
34530fi
34531UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34532if test -n "$UniconvertorDelegate"; then
34533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34534$as_echo "$UniconvertorDelegate" >&6; }
34535else
34536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34537$as_echo "no" >&6; }
34538fi
34539
34540
cristy3ed852e2009-09-05 21:47:34 +000034541# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34542set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034544$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034545if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034546 $as_echo_n "(cached) " >&6
34547else
34548 case $WMFDecodeDelegate in
34549 [\\/]* | ?:[\\/]*)
34550 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34551 ;;
34552 *)
34553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34554for as_dir in $PATH
34555do
34556 IFS=$as_save_IFS
34557 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034558 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034560 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034562 break 2
34563 fi
34564done
cristy8b350f62009-11-15 23:12:43 +000034565 done
cristy3ed852e2009-09-05 21:47:34 +000034566IFS=$as_save_IFS
34567
34568 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34569 ;;
34570esac
34571fi
34572WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34573if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034575$as_echo "$WMFDecodeDelegate" >&6; }
34576else
cristy8b350f62009-11-15 23:12:43 +000034577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034578$as_echo "no" >&6; }
34579fi
34580
34581
34582# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34583set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034585$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034586if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034587 $as_echo_n "(cached) " >&6
34588else
34589 case $WWWDecodeDelegate in
34590 [\\/]* | ?:[\\/]*)
34591 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34592 ;;
34593 *)
34594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34595for as_dir in $PATH
34596do
34597 IFS=$as_save_IFS
34598 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034599 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034601 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034603 break 2
34604 fi
34605done
cristy8b350f62009-11-15 23:12:43 +000034606 done
cristy3ed852e2009-09-05 21:47:34 +000034607IFS=$as_save_IFS
34608
34609 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34610 ;;
34611esac
34612fi
34613WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34614if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034616$as_echo "$WWWDecodeDelegate" >&6; }
34617else
cristy8b350f62009-11-15 23:12:43 +000034618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034619$as_echo "no" >&6; }
34620fi
34621
34622
34623# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34624set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034626$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034627if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034628 $as_echo_n "(cached) " >&6
34629else
34630 case $XPSDelegate in
34631 [\\/]* | ?:[\\/]*)
34632 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34633 ;;
34634 *)
34635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34636for as_dir in $PATH
34637do
34638 IFS=$as_save_IFS
34639 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034640 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034642 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034644 break 2
34645 fi
34646done
cristy8b350f62009-11-15 23:12:43 +000034647 done
cristy3ed852e2009-09-05 21:47:34 +000034648IFS=$as_save_IFS
34649
34650 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34651 ;;
34652esac
34653fi
34654XPSDelegate=$ac_cv_path_XPSDelegate
34655if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034657$as_echo "$XPSDelegate" >&6; }
34658else
cristy8b350f62009-11-15 23:12:43 +000034659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034660$as_echo "no" >&6; }
34661fi
34662
34663
34664# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34665set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034667$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034668if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034669 $as_echo_n "(cached) " >&6
34670else
34671 case $ZipDelegate in
34672 [\\/]* | ?:[\\/]*)
34673 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34674 ;;
34675 *)
34676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34677for as_dir in $PATH
34678do
34679 IFS=$as_save_IFS
34680 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034681 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034683 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034685 break 2
34686 fi
34687done
cristy8b350f62009-11-15 23:12:43 +000034688 done
cristy3ed852e2009-09-05 21:47:34 +000034689IFS=$as_save_IFS
34690
34691 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34692 ;;
34693esac
34694fi
34695ZipDelegate=$ac_cv_path_ZipDelegate
34696if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034698$as_echo "$ZipDelegate" >&6; }
34699else
cristy8b350f62009-11-15 23:12:43 +000034700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034701$as_echo "no" >&6; }
34702fi
34703
34704
34705
34706# Prefer lpr to lp; lp needs options tacked on.
34707if test "$LPRDelegate" != no; then
34708 PrintDelegate="$LPRDelegate"
34709else
34710 PrintDelegate="$LPDelegate -c -s"
34711fi
34712
34713
34714# Installed ImageMagick utiltity paths
34715ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34716DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34717MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34718
34719# Set delegate booleans
34720have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34721have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34722have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34723have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34724have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034725have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034726have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34727have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034728have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34729have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34730
34731#
34732# Test for font directories
34733#
34734type_include_files=''
34735
cristy430a7312010-01-21 20:44:04 +000034736# Dejavu fonts.
34737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34738$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34739dejavu_font_dir=''
34740if test "${with_dejavu_font_dir}" != 'default'; then
34741 dejavu_font_dir="${with_dejavu_font_dir}/"
34742else
34743 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34744 if test -f "${font_dir}DejaVuSerif.ttf"; then
34745 dejavu_font_dir="${font_dir}"
34746 break 1
34747 fi
34748 done
34749fi
34750if test "${dejavu_font_dir}x" != 'x'; then
34751 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034752 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34753$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034754else
cristy09b53e12011-10-14 12:47:22 +000034755 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34756$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034757fi
34758
34759
cristy3ed852e2009-09-05 21:47:34 +000034760# Windows
34761windows_font_dir=''
34762if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34763 windows_font_dir="${with_windows_font_dir}/"
34764fi
cristy430a7312010-01-21 20:44:04 +000034765if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034766 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34767 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34768 fi
34769 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34770 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34771 fi
34772 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34773 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34774 fi
34775fi
cristy430a7312010-01-21 20:44:04 +000034776if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034777 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34778fi
34779
34780
34781# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034783$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34784ghostscript_font_dir=''
34785if test "${with_gs_font_dir}" != 'default'; then
34786 ghostscript_font_dir="${with_gs_font_dir}/"
34787else
34788 if test "${native_win32_build}" = 'yes'; then
34789 # Native Windows Build
34790 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34791 if test -f "${font_dir}a010013l.pfb"; then
34792 ghostscript_font_dir="$font_dir"
34793 break 1
34794 fi
34795 done
34796 if test "${PSDelegate}" != 'gswin32c'; then
34797 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34798 fi
34799 else
34800 # Linux / Mac OS X / Unix Build
34801 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
34802 if test -f "${font_dir}a010013l.pfb"; then
34803 ghostscript_font_dir="${font_dir}"
34804 break 1
34805 fi
34806 done
34807 if test "${ghostscript_font_dir}x" = 'x'; then
34808 if test "$PSDelegate" != 'gs'; then
34809 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34810 fi
34811 fi
34812 fi
34813fi
34814if test "${ghostscript_font_dir}x" != 'x'; then
34815 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034816 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34817$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034818else
cristy09b53e12011-10-14 12:47:22 +000034819 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34820$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034821fi
34822
34823case "${build_os}" in
34824 mingw* )
34825 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34826 ;;
34827esac
34828
34829
34830
34831#
34832# Handle case where user doesn't want frozen paths
34833#
34834if test "$with_frozenpaths" != 'yes'; then
34835 # Re-set delegate definitions to default (no paths)
34836 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034837 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34838 BZIPDelegate="$BZIPDelegateDefault"
34839 BrowseDelegate="$BrowseDelegateDefault"
34840 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34841 CatDelegate="$CatDelegateDefault"
34842 ConvertDelegate="$ConvertDelegateDefault"
34843 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34844 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34845 EchoDelegate="$EchoDelegateDefault"
34846 EditorDelegate="$EditorDelegateDefault"
34847 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34848 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34849 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34850 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34851 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34852 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34853 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034854 LaunchDelegate="$LaunchDelegateDefault"
34855 MANDelegate="$MANDelegateDefault"
34856 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34857 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034858 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034859 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34860 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034861 PCLDelegate="$PCLDelegateDefault"
34862 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34863 POVDelegate="$POVDelegateDefault"
34864 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034865 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34866 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034867 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034868 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034869 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034870 ShowImageDelegate="$ShowImageDelegateDefault"
34871 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034872 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034873 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34874 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34875 XPSDelegate="$XPSDelegateDefault"
34876 ZipDelegate="$ZipDelegateDefault"
34877fi
34878
34879# Delegate substitutions
34880
34881
34882
34883
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
34917
34918
34919
cristy3ed852e2009-09-05 21:47:34 +000034920#
34921# RPM support.
34922#
34923RPM=''
34924for ac_prog in gnutar gtar tar
34925do
34926 # Extract the first word of "$ac_prog", so it can be a program name with args.
34927set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034929$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034930if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034931 $as_echo_n "(cached) " >&6
34932else
34933 if test -n "$TAR"; then
34934 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34935else
34936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34937for as_dir in $PATH
34938do
34939 IFS=$as_save_IFS
34940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034943 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034945 break 2
34946 fi
34947done
cristy8b350f62009-11-15 23:12:43 +000034948 done
cristy3ed852e2009-09-05 21:47:34 +000034949IFS=$as_save_IFS
34950
34951fi
34952fi
34953TAR=$ac_cv_prog_TAR
34954if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034956$as_echo "$TAR" >&6; }
34957else
cristy8b350f62009-11-15 23:12:43 +000034958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034959$as_echo "no" >&6; }
34960fi
34961
34962
34963 test -n "$TAR" && break
34964done
34965
34966for ac_prog in perl
34967do
34968 # Extract the first word of "$ac_prog", so it can be a program name with args.
34969set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034971$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034972if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034973 $as_echo_n "(cached) " >&6
34974else
34975 if test -n "$PERL"; then
34976 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34977else
34978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34979for as_dir in $PATH
34980do
34981 IFS=$as_save_IFS
34982 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034983 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034985 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034987 break 2
34988 fi
34989done
cristy8b350f62009-11-15 23:12:43 +000034990 done
cristy3ed852e2009-09-05 21:47:34 +000034991IFS=$as_save_IFS
34992
34993fi
34994fi
34995PERL=$ac_cv_prog_PERL
34996if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034998$as_echo "$PERL" >&6; }
34999else
cristy8b350f62009-11-15 23:12:43 +000035000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035001$as_echo "no" >&6; }
35002fi
35003
35004
35005 test -n "$PERL" && break
35006done
35007
35008for ac_prog in rpmbuild rpm
35009do
35010 # Extract the first word of "$ac_prog", so it can be a program name with args.
35011set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035013$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035014if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035015 $as_echo_n "(cached) " >&6
35016else
35017 if test -n "$RPM"; then
35018 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35019else
35020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35021for as_dir in $PATH
35022do
35023 IFS=$as_save_IFS
35024 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035025 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035027 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035029 break 2
35030 fi
35031done
cristy8b350f62009-11-15 23:12:43 +000035032 done
cristy3ed852e2009-09-05 21:47:34 +000035033IFS=$as_save_IFS
35034
35035fi
35036fi
35037RPM=$ac_cv_prog_RPM
35038if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035040$as_echo "$RPM" >&6; }
35041else
cristy8b350f62009-11-15 23:12:43 +000035042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035043$as_echo "no" >&6; }
35044fi
35045
35046
35047 test -n "$RPM" && break
35048done
35049
35050
cristy73bd4a52010-10-05 11:24:23 +000035051ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35052
35053
35054AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35055
35056
35057AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35058
35059
35060AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35061
35062
35063 if test "x$RPM" != "x" ; then
35064 RPM_DELEGATE_TRUE=
35065 RPM_DELEGATE_FALSE='#'
35066else
35067 RPM_DELEGATE_TRUE='#'
35068 RPM_DELEGATE_FALSE=
35069fi
35070
cristy3ed852e2009-09-05 21:47:34 +000035071
35072#
35073# 7ZIP support (http://p7zip.sourceforge.net/)
35074#
35075P7ZIP=''
35076for ac_prog in 7za
35077do
35078 # Extract the first word of "$ac_prog", so it can be a program name with args.
35079set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035082if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035083 $as_echo_n "(cached) " >&6
35084else
35085 if test -n "$P7ZIP"; then
35086 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35087else
35088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35089for as_dir in $PATH
35090do
35091 IFS=$as_save_IFS
35092 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035093 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035095 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035097 break 2
35098 fi
35099done
cristy8b350f62009-11-15 23:12:43 +000035100 done
cristy3ed852e2009-09-05 21:47:34 +000035101IFS=$as_save_IFS
35102
35103fi
35104fi
35105P7ZIP=$ac_cv_prog_P7ZIP
35106if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035108$as_echo "$P7ZIP" >&6; }
35109else
cristy8b350f62009-11-15 23:12:43 +000035110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035111$as_echo "no" >&6; }
35112fi
35113
35114
35115 test -n "$P7ZIP" && break
35116done
35117
35118
cristy73bd4a52010-10-05 11:24:23 +000035119 if test "x$P7ZIP" != "x" ; then
35120 P7ZIP_DELEGATE_TRUE=
35121 P7ZIP_DELEGATE_FALSE='#'
35122else
35123 P7ZIP_DELEGATE_TRUE='#'
35124 P7ZIP_DELEGATE_FALSE=
35125fi
35126
cristy3ed852e2009-09-05 21:47:34 +000035127
35128#
35129# ZIP support (http://www.info-zip.org/Zip.html)
35130#
35131ZIP=''
35132for ac_prog in zip
35133do
35134 # Extract the first word of "$ac_prog", so it can be a program name with args.
35135set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035137$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035138if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035139 $as_echo_n "(cached) " >&6
35140else
35141 if test -n "$ZIP"; then
35142 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35143else
35144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35145for as_dir in $PATH
35146do
35147 IFS=$as_save_IFS
35148 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035149 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035151 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035153 break 2
35154 fi
35155done
cristy8b350f62009-11-15 23:12:43 +000035156 done
cristy3ed852e2009-09-05 21:47:34 +000035157IFS=$as_save_IFS
35158
35159fi
35160fi
35161ZIP=$ac_cv_prog_ZIP
35162if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035164$as_echo "$ZIP" >&6; }
35165else
cristy8b350f62009-11-15 23:12:43 +000035166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035167$as_echo "no" >&6; }
35168fi
35169
35170
35171 test -n "$ZIP" && break
35172done
35173
35174
cristy73bd4a52010-10-05 11:24:23 +000035175 if test "x$ZIP" != "x" ; then
35176 ZIP_DELEGATE_TRUE=
35177 ZIP_DELEGATE_FALSE='#'
35178else
35179 ZIP_DELEGATE_TRUE='#'
35180 ZIP_DELEGATE_FALSE=
35181fi
35182
cristy3ed852e2009-09-05 21:47:34 +000035183
35184#
35185# GhostPCL related configuration.
35186#
35187PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035188PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035189PCLMonoDevice=pbmraw
35190if test -z "$PCLVersion"; then
35191 PCLVersion='unknown'
35192fi
35193if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035194 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35195$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035197$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035198 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35199$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035200 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035202$as_echo_n "checking for pcl color device... " >&6; }
35203 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35204 :
35205 else
35206 PCLColorDevice=ppmraw
35207 fi
cristy09b53e12011-10-14 12:47:22 +000035208 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35209$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035210
35211 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035213$as_echo_n "checking for pcl CMYK device... " >&6; }
35214 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35215 :
35216 else
35217 PCLCMYKDevice=$PCLColorDevice
35218 fi
cristy09b53e12011-10-14 12:47:22 +000035219 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35220$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035221
35222 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035224$as_echo_n "checking for pcl mono device... " >&6; }
35225 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35226 :
35227 else
35228 PCLMonoDevice=$PCLColorDevice
35229 fi
cristy09b53e12011-10-14 12:47:22 +000035230 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35231$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035232fi
35233
35234
35235
35236
35237
35238
35239#
35240# GhostXPS related configuration.
35241#
35242XPSColorDevice=ppmraw
35243XPSCMYKDevice=bmpsep8
35244XPSMonoDevice=pbmraw
35245if test -z "$XPSVersion"; then
35246 XPSVersion='unknown'
35247fi
35248if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035249 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35250$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035252$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035253 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35254$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035255 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035257$as_echo_n "checking for xps color device... " >&6; }
35258 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35259 :
35260 else
35261 XPSColorDevice=ppmraw
35262 fi
cristy09b53e12011-10-14 12:47:22 +000035263 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35264$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035265
35266 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035268$as_echo_n "checking for xps CMYK device... " >&6; }
35269 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35270 :
35271 else
35272 XPSCMYKDevice=$XPSColorDevice
35273 fi
cristy09b53e12011-10-14 12:47:22 +000035274 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35275$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035276
35277 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035279$as_echo_n "checking for xps mono device... " >&6; }
35280 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35281 :
35282 else
35283 XPSMonoDevice=$XPSColorDevice
35284 fi
cristy09b53e12011-10-14 12:47:22 +000035285 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35286$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035287fi
35288
35289
35290
35291
35292
35293
35294#
35295# Ghostscript related configuration.
35296#
cristya97426c2011-02-04 01:41:27 +000035297GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035298GSColorDevice=pnmraw
35299GSCMYKDevice=pam
35300GSMonoDevice=pbmraw
35301GSPDFDevice=pdfwrite
35302GSPSDevice=pswrite
35303GSEPSDevice=epswrite
35304GSVersion='unknown'
35305if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035306 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35307$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035309$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035310 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35311$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035313$as_echo_n "checking for Ghostscript version... " >&6; }
35314 if GSVersion=`$PSDelegate --version`; then
35315 :
35316 else
35317 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35318 fi
cristy09b53e12011-10-14 12:47:22 +000035319 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35320$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035321
35322 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035324$as_echo_n "checking for gs alpha device... " >&6; }
35325 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35326 :
35327 else
35328 GSAlphaDevice=pnmraw
35329 fi
cristy09b53e12011-10-14 12:47:22 +000035330 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35331$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035332
35333 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035335$as_echo_n "checking for gs color device... " >&6; }
35336 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35337 :
35338 else
35339 GSColorDevice=pnmraw
35340 fi
cristy09b53e12011-10-14 12:47:22 +000035341 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35342$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035343
35344 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035346$as_echo_n "checking for gs CMYK device... " >&6; }
35347 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35348 :
35349 else
35350 GSCMYKDevice=bmpsep8
35351 fi
cristy09b53e12011-10-14 12:47:22 +000035352 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35353$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035354
35355 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035357$as_echo_n "checking for gs mono device... " >&6; }
35358 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35359 :
35360 else
35361 GSMonoDevice=$GSColorDevice
35362 fi
cristy09b53e12011-10-14 12:47:22 +000035363 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35364$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035365
35366 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035368$as_echo_n "checking for gs PDF writing device... " >&6; }
35369 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35370 :
35371 else
35372 GSPDFDevice=nodevice
35373 fi
cristy09b53e12011-10-14 12:47:22 +000035374 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35375$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035376
35377 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035379$as_echo_n "checking for gs PS writing device... " >&6; }
35380 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35381 :
35382 else
35383 GSPSDevice=nodevice
35384 fi
cristy09b53e12011-10-14 12:47:22 +000035385 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35386$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035387
35388 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035390$as_echo_n "checking for gs EPS writing device... " >&6; }
35391 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35392 :
35393 else
35394 GSEPSDevice=nodevice
35395 fi
cristy09b53e12011-10-14 12:47:22 +000035396 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35397$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035398fi
35399
35400
35401
35402
35403
35404
35405
35406
35407
35408
35409#
35410# PerlMagick-related configuration
35411#
35412
35413# Look for PERL if PerlMagick requested
35414# If name/path of desired PERL interpreter is specified, look for that one first
35415have_perl='no'
35416if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035417 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35418$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035420$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035421 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35422$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035423 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035425$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035426if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035427 $as_echo_n "(cached) " >&6
35428else
35429 ac_cv_path_PERL="$with_perl"
35430fi
cristy8b350f62009-11-15 23:12:43 +000035431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035432$as_echo "$ac_cv_path_PERL" >&6; };
35433 PERL=$ac_cv_path_PERL
35434 have_perl="$ac_cv_path_PERL"
35435 else
35436 for ac_prog in perl perl5
35437do
35438 # Extract the first word of "$ac_prog", so it can be a program name with args.
35439set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035441$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035442if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035443 $as_echo_n "(cached) " >&6
35444else
35445 case $PERL in
35446 [\\/]* | ?:[\\/]*)
35447 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35448 ;;
35449 *)
35450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35451for as_dir in $PATH
35452do
35453 IFS=$as_save_IFS
35454 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035457 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035459 break 2
35460 fi
35461done
cristy8b350f62009-11-15 23:12:43 +000035462 done
cristy3ed852e2009-09-05 21:47:34 +000035463IFS=$as_save_IFS
35464
35465 ;;
35466esac
35467fi
35468PERL=$ac_cv_path_PERL
35469if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035471$as_echo "$PERL" >&6; }
35472else
cristy8b350f62009-11-15 23:12:43 +000035473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035474$as_echo "no" >&6; }
35475fi
35476
35477
35478 test -n "$PERL" && break
35479done
35480 if test "$ac_cv_path_PERL"; then
35481 have_perl="$ac_cv_path_PERL"
35482 fi
35483 fi
35484fi
35485
cristy949301e2010-01-06 01:38:40 +000035486if test "$with_perl" != 'yes' ; then
35487 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35488fi
35489
35490PERL_SUPPORTS_DESTDIR='no'
35491
cristy3ed852e2009-09-05 21:47:34 +000035492with_perl_static='no'
35493with_perl_dynamic='no'
35494if test "$have_perl" != 'no'; then
35495 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35496 with_perl_static='yes'
35497 fi
35498 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35499 with_perl_dynamic='yes'
35500 fi
35501 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035502
35503
35504
35505
35506 if test -n "$PERL"; then :
35507
35508 ax_perl_version="5.8.1"
35509
35510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35511$as_echo_n "checking for perl version... " >&6; }
35512
35513 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35514
35515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35516$as_echo "$perl_version" >&6; }
35517
35518 PERL_VERSION=$perl_version
35519
35520
35521
35522
35523
35524 # Used to indicate true or false condition
35525 ax_compare_version=false
35526
35527 # Convert the two version strings to be compared into a format that
35528 # allows a simple string comparison. The end result is that a version
35529 # string of the form 1.12.5-r617 will be converted to the form
35530 # 0001001200050617. In other words, each number is zero padded to four
35531 # digits, and non digits are removed.
35532
35533 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35534 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35535 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35536 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35537 -e 's/[^0-9]//g'`
35538
35539
35540 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35541 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35542 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35543 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35544 -e 's/[^0-9]//g'`
35545
35546
35547 ax_compare_version=`echo "x$ax_compare_version_A
35548x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35549
35550
35551
35552 if test "$ax_compare_version" = "true" ; then
35553
35554 :
35555 PERL_SUPPORTS_DESTDIR='yes'
35556
35557 else
35558 :
35559 PERL_SUPPORTS_DESTDIR='no'
35560
35561 fi
35562
35563
35564else
35565
35566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35567$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35568 PERL_SUPPORTS_DESTDIR='no'
35569
cristy3ed852e2009-09-05 21:47:34 +000035570fi
cristy73bd4a52010-10-05 11:24:23 +000035571
35572fi
35573 if test "$have_perl" != 'no'; then
35574 WITH_PERL_TRUE=
35575 WITH_PERL_FALSE='#'
35576else
35577 WITH_PERL_TRUE='#'
35578 WITH_PERL_FALSE=
35579fi
35580
35581 if test $with_perl_static = 'yes'; then
35582 WITH_PERL_STATIC_TRUE=
35583 WITH_PERL_STATIC_FALSE='#'
35584else
35585 WITH_PERL_STATIC_TRUE='#'
35586 WITH_PERL_STATIC_FALSE=
35587fi
35588
35589 if test $with_perl_dynamic = 'yes'; then
35590 WITH_PERL_DYNAMIC_TRUE=
35591 WITH_PERL_DYNAMIC_FALSE='#'
35592else
35593 WITH_PERL_DYNAMIC_TRUE='#'
35594 WITH_PERL_DYNAMIC_FALSE=
35595fi
35596
cristy3ed852e2009-09-05 21:47:34 +000035597
35598
35599# Determine path to pick up MagickCore library from for use with building PerlMagick
35600MAGICKCORE_PATH="${LIB_DIR}"
35601if test $with_perl_static = 'yes'; then
35602 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35603 libtool_objdir=$objdir
35604
35605 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035606 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035607fi
35608
35609
35610# Create a simple string containing format names for all delegate libraries
35611DELEGATES=''
35612if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35613if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35614if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35615if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35616if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35617if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35618if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35619if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35620if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35621if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35622if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35623if test "$have_jpeg" = 'yes'; then
35624 DELEGATES="$DELEGATES jpeg";
35625 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35626fi
35627if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035628if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035629if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35630if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035631if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035632if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35633if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000035634if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000035635if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35636if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35637if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35638if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35639if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35640if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35641if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35642
35643
35644
35645#
35646# Handle special compiler flags
35647#
35648
35649# Add '-p' if prof source profiling support enabled
35650if test "$enable_prof" = 'yes'; then
35651 CFLAGS="-p $CFLAGS"
35652 CXXFLAGS="-p $CXXFLAGS"
35653 LDFLAGS="-p $LDFLAGS"
35654fi
35655
35656# Add '-pg' if gprof source profiling support enabled
35657if test "$enable_gprof" = 'yes'; then
35658 CFLAGS="-pg $CFLAGS"
35659 CXXFLAGS="-pg $CXXFLAGS"
35660 LDFLAGS="-pg $LDFLAGS"
35661fi
35662
35663# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35664# This is a gcc-specific feature
35665if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035667$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035668if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035669 $as_echo_n "(cached) " >&6
35670else
35671 ac_check_lib_save_LIBS=$LIBS
35672LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035674/* end confdefs.h. */
35675
35676/* Override any GCC internal prototype to avoid an error.
35677 Use char because int might match the return type of a GCC
35678 builtin and then its argument prototype would still apply. */
35679#ifdef __cplusplus
35680extern "C"
35681#endif
35682char _gcov_init ();
35683int
35684main ()
35685{
35686return _gcov_init ();
35687 ;
35688 return 0;
35689}
35690_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035691if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035692 ac_cv_lib_gcov__gcov_init=yes
35693else
cristy8b350f62009-11-15 23:12:43 +000035694 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035695fi
cristy8b350f62009-11-15 23:12:43 +000035696rm -f core conftest.err conftest.$ac_objext \
35697 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035698LIBS=$ac_check_lib_save_LIBS
35699fi
cristy8b350f62009-11-15 23:12:43 +000035700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035701$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035702if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035703 cat >>confdefs.h <<_ACEOF
35704#define HAVE_LIBGCOV 1
35705_ACEOF
35706
35707 LIBS="-lgcov $LIBS"
35708
35709fi
35710
cristy8b350f62009-11-15 23:12:43 +000035711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035712$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035713if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035714 $as_echo_n "(cached) " >&6
35715else
35716 ac_check_lib_save_LIBS=$LIBS
35717LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035719/* end confdefs.h. */
35720
35721/* Override any GCC internal prototype to avoid an error.
35722 Use char because int might match the return type of a GCC
35723 builtin and then its argument prototype would still apply. */
35724#ifdef __cplusplus
35725extern "C"
35726#endif
35727char __gcov_init ();
35728int
35729main ()
35730{
35731return __gcov_init ();
35732 ;
35733 return 0;
35734}
35735_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035736if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035737 ac_cv_lib_gcov___gcov_init=yes
35738else
cristy8b350f62009-11-15 23:12:43 +000035739 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035740fi
cristy8b350f62009-11-15 23:12:43 +000035741rm -f core conftest.err conftest.$ac_objext \
35742 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035743LIBS=$ac_check_lib_save_LIBS
35744fi
cristy8b350f62009-11-15 23:12:43 +000035745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035746$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035747if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035748 cat >>confdefs.h <<_ACEOF
35749#define HAVE_LIBGCOV 1
35750_ACEOF
35751
35752 LIBS="-lgcov $LIBS"
35753
35754fi
35755
35756 case "$target_os" in
35757 darwin*)
35758 OSX_GCOV_LDFLAG="-Wl,-single_module"
35759 ;;
35760 *)
35761 OSX_GCOV_LDFLAG=""
35762 ;;
35763 esac
35764
35765 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35766 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35767 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35768fi
35769
35770#
35771# Build library dependency list for libMagickCore
35772#
35773
35774MAGICK_LIBLTDL='' # Libltdl for build
35775MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35776MAGICK_LTDLDEPS='' # extra libltdl dependencies
cristyc6722092012-10-14 00:19:31 +000035777if test "$with_ltdl" != 'no' ; then
35778 MAGICK_API_LIBLTDL='-lltdl'
cristy3ed852e2009-09-05 21:47:34 +000035779 MAGICK_LIBLTDL=${LIBLTDL}
35780 MAGICK_LTDLDEPS=${LTDLDEPS}
35781fi
35782
35783
35784
cristyc6722092012-10-14 00:19:31 +000035785if test "$build_modules" != 'no'; then
cristy3a75f062012-09-08 23:29:40 +000035786 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 $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035787else
cristy3a75f062012-09-08 23:29:40 +000035788 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 +000035789fi
35790
35791
35792#
35793# Remove extraneous spaces from output variables (asthetic)
35794#
35795X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35796X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35797X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35798X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35799
35800CC=`echo $CC | sed -e 's/ */ /g'`
35801CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35802CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35803CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35804DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35805DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35806LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35807TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35808MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35809#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35810
35811# Pass only user-provided LIBS as "global" libraries
35812LIBS=$USER_LIBS
35813
35814#AC_SUBST(CPPFLAGS)
35815
35816#AC_SUBST(LDFLAGS)
35817#AC_SUBST(X_PRE_LIBS)
35818#AC_SUBST(X_LIBS)
35819#AC_SUBST(X_EXTRA_LIBS)
35820
35821MAGICK_CFLAGS=$CFLAGS
35822MAGICK_CXXFLAGS="$CXXFLAGS"
35823MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35824MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35825MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035826MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035827
35828
35829
35830
35831
35832
35833
35834
cristyfd9dcd42010-08-08 18:07:02 +000035835
cristy3ed852e2009-09-05 21:47:34 +000035836# Set configured scripts to executable.
35837ac_config_commands="$ac_config_commands default"
35838
cristy2bd4b6e2012-07-22 15:29:11 +000035839ac_config_commands="$ac_config_commands magick.sh.in"
35840
cristy3ed852e2009-09-05 21:47:34 +000035841ac_config_commands="$ac_config_commands MagickCore-config.in"
35842
cristy3ed852e2009-09-05 21:47:34 +000035843ac_config_commands="$ac_config_commands MagickWand-config.in"
35844
cristy3ed852e2009-09-05 21:47:34 +000035845ac_config_commands="$ac_config_commands Magick++-config.in"
35846
35847ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35848
35849
cristy09b53e12011-10-14 12:47:22 +000035850{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35851$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35852{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35853$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035854cat >confcache <<\_ACEOF
35855# This file is a shell script that caches the results of configure
35856# tests run on this system so they can be shared between configure
35857# scripts and configure runs, see configure's option --config-cache.
35858# It is not useful on other systems. If it contains results you don't
35859# want to keep, you may remove or edit it.
35860#
35861# config.status only pays attention to the cache file if you give it
35862# the --recheck option to rerun configure.
35863#
35864# `ac_cv_env_foo' variables (set or unset) will be overridden when
35865# loading this file, other *unset* `ac_cv_foo' will be assigned the
35866# following values.
35867
35868_ACEOF
35869
35870# The following way of writing the cache mishandles newlines in values,
35871# but we know of no workaround that is simple, portable, and efficient.
35872# So, we kill variables containing newlines.
35873# Ultrix sh set writes to stderr and can't be redirected directly,
35874# and sets the high bit in the cache file unless we assign to the vars.
35875(
35876 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35877 eval ac_val=\$$ac_var
35878 case $ac_val in #(
35879 *${as_nl}*)
35880 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035881 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035882$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35883 esac
35884 case $ac_var in #(
35885 _ | IFS | as_nl) ;; #(
35886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035887 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035888 esac ;;
35889 esac
35890 done
35891
35892 (set) 2>&1 |
35893 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35894 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035895 # `set' does not quote correctly, so add quotes: double-quote
35896 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035897 sed -n \
35898 "s/'/'\\\\''/g;
35899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35900 ;; #(
35901 *)
35902 # `set' quotes correctly as required by POSIX, so do not add quotes.
35903 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35904 ;;
35905 esac |
35906 sort
35907) |
35908 sed '
35909 /^ac_cv_env_/b end
35910 t clear
35911 :clear
35912 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35913 t end
35914 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35915 :end' >>confcache
35916if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35917 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035918 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035919 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035920$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035921 if test ! -f "$cache_file" || test -h "$cache_file"; then
35922 cat confcache >"$cache_file"
35923 else
35924 case $cache_file in #(
35925 */* | ?:*)
35926 mv -f confcache "$cache_file"$$ &&
35927 mv -f "$cache_file"$$ "$cache_file" ;; #(
35928 *)
35929 mv -f confcache "$cache_file" ;;
35930 esac
35931 fi
35932 fi
cristy3ed852e2009-09-05 21:47:34 +000035933 else
cristy8b350f62009-11-15 23:12:43 +000035934 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035935$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35936 fi
35937fi
35938rm -f confcache
35939
35940test "x$prefix" = xNONE && prefix=$ac_default_prefix
35941# Let make expand exec_prefix.
35942test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35943
35944DEFS=-DHAVE_CONFIG_H
35945
35946ac_libobjs=
35947ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035948U=
cristy3ed852e2009-09-05 21:47:34 +000035949for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35950 # 1. Remove the extension, and $U if already installed.
35951 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35952 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35953 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35954 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035955 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35956 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035957done
35958LIBOBJS=$ac_libobjs
35959
35960LTLIBOBJS=$ac_ltlibobjs
35961
35962
cristyc0890a62012-07-19 00:18:20 +000035963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35964$as_echo_n "checking that generated files are newer than configure... " >&6; }
35965 if test -n "$am_sleep_pid"; then
35966 # Hide warnings about reused PIDs.
35967 wait $am_sleep_pid 2>/dev/null
35968 fi
35969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35970$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035971 if test -n "$EXEEXT"; then
35972 am__EXEEXT_TRUE=
35973 am__EXEEXT_FALSE='#'
35974else
35975 am__EXEEXT_TRUE='#'
35976 am__EXEEXT_FALSE=
35977fi
cristy3ed852e2009-09-05 21:47:34 +000035978
cristy73bd4a52010-10-05 11:24:23 +000035979if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035980 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035981Usually this means the macro was only invoked conditionally." "$LINENO" 5
35982fi
35983if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035984 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035985Usually this means the macro was only invoked conditionally." "$LINENO" 5
35986fi
35987if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035988 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035989Usually this means the macro was only invoked conditionally." "$LINENO" 5
35990fi
35991if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035992 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035993Usually this means the macro was only invoked conditionally." "$LINENO" 5
35994fi
35995if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035996 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035997Usually this means the macro was only invoked conditionally." "$LINENO" 5
35998fi
35999if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036000 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036001Usually this means the macro was only invoked conditionally." "$LINENO" 5
36002fi
36003if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036004 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036005Usually this means the macro was only invoked conditionally." "$LINENO" 5
36006fi
36007if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036008 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036009Usually this means the macro was only invoked conditionally." "$LINENO" 5
36010fi
cristy73bd4a52010-10-05 11:24:23 +000036011if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036012 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036013Usually this means the macro was only invoked conditionally." "$LINENO" 5
36014fi
36015if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036016 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036017Usually this means the macro was only invoked conditionally." "$LINENO" 5
36018fi
36019LT_CONFIG_H=config/config.h
36020
36021 _ltdl_libobjs=
36022 _ltdl_ltlibobjs=
36023 if test -n "$_LT_LIBOBJS"; then
36024 # Remove the extension.
36025 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
36026 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
36027 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
36028 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
36029 done
36030 fi
36031 ltdl_LIBOBJS=$_ltdl_libobjs
36032
36033 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
36034
36035
36036if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036037 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036038Usually this means the macro was only invoked conditionally." "$LINENO" 5
36039fi
36040if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036041 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036042Usually this means the macro was only invoked conditionally." "$LINENO" 5
36043fi
36044if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036045 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036046Usually this means the macro was only invoked conditionally." "$LINENO" 5
36047fi
36048if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036049 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036050Usually this means the macro was only invoked conditionally." "$LINENO" 5
36051fi
cristy71d8c202012-03-20 17:05:01 +000036052if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36053 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36054Usually this means the macro was only invoked conditionally." "$LINENO" 5
36055fi
cristy73bd4a52010-10-05 11:24:23 +000036056
36057if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036058 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036059Usually this means the macro was only invoked conditionally." "$LINENO" 5
36060fi
36061if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036062 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036063Usually this means the macro was only invoked conditionally." "$LINENO" 5
36064fi
36065if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036066 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036067Usually this means the macro was only invoked conditionally." "$LINENO" 5
36068fi
36069if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036070 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036071Usually this means the macro was only invoked conditionally." "$LINENO" 5
36072fi
36073if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036074 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036075Usually this means the macro was only invoked conditionally." "$LINENO" 5
36076fi
36077if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036078 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036079Usually this means the macro was only invoked conditionally." "$LINENO" 5
36080fi
36081if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036082 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036083Usually this means the macro was only invoked conditionally." "$LINENO" 5
36084fi
36085if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036086 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036087Usually this means the macro was only invoked conditionally." "$LINENO" 5
36088fi
36089if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036090 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036091Usually this means the macro was only invoked conditionally." "$LINENO" 5
36092fi
36093if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036094 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036095Usually this means the macro was only invoked conditionally." "$LINENO" 5
36096fi
36097if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036098 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036099Usually this means the macro was only invoked conditionally." "$LINENO" 5
36100fi
36101if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036102 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036103Usually this means the macro was only invoked conditionally." "$LINENO" 5
36104fi
36105if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036106 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036107Usually this means the macro was only invoked conditionally." "$LINENO" 5
36108fi
36109if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036110 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036111Usually this means the macro was only invoked conditionally." "$LINENO" 5
36112fi
36113if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036114 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036115Usually this means the macro was only invoked conditionally." "$LINENO" 5
36116fi
36117if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036118 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036119Usually this means the macro was only invoked conditionally." "$LINENO" 5
36120fi
36121if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036122 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036123Usually this means the macro was only invoked conditionally." "$LINENO" 5
36124fi
36125if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036126 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036127Usually this means the macro was only invoked conditionally." "$LINENO" 5
36128fi
36129if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036130 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036131Usually this means the macro was only invoked conditionally." "$LINENO" 5
36132fi
36133if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036134 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036135Usually this means the macro was only invoked conditionally." "$LINENO" 5
36136fi
cristyfbb0ef02010-12-19 02:32:11 +000036137if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36138 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36139Usually this means the macro was only invoked conditionally." "$LINENO" 5
36140fi
cristy73bd4a52010-10-05 11:24:23 +000036141if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036142 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036143Usually this means the macro was only invoked conditionally." "$LINENO" 5
36144fi
cristy41cbe8a2011-10-27 01:35:18 +000036145if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36146 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36147Usually this means the macro was only invoked conditionally." "$LINENO" 5
36148fi
cristya054b762012-03-26 23:16:00 +000036149if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36150 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036151Usually this means the macro was only invoked conditionally." "$LINENO" 5
36152fi
cristy73bd4a52010-10-05 11:24:23 +000036153if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036154 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036155Usually this means the macro was only invoked conditionally." "$LINENO" 5
36156fi
36157if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036158 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036159Usually this means the macro was only invoked conditionally." "$LINENO" 5
36160fi
36161if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036162 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036163Usually this means the macro was only invoked conditionally." "$LINENO" 5
36164fi
36165if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036166 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036167Usually this means the macro was only invoked conditionally." "$LINENO" 5
36168fi
cristyb1860752011-03-14 00:27:46 +000036169if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36170 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36171Usually this means the macro was only invoked conditionally." "$LINENO" 5
36172fi
cristy73bd4a52010-10-05 11:24:23 +000036173if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036174 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036175Usually this means the macro was only invoked conditionally." "$LINENO" 5
36176fi
36177if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036178 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036179Usually this means the macro was only invoked conditionally." "$LINENO" 5
36180fi
36181if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036182 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036183Usually this means the macro was only invoked conditionally." "$LINENO" 5
36184fi
36185if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036186 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036187Usually this means the macro was only invoked conditionally." "$LINENO" 5
36188fi
36189if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036190 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036191Usually this means the macro was only invoked conditionally." "$LINENO" 5
36192fi
36193if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036194 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036195Usually this means the macro was only invoked conditionally." "$LINENO" 5
36196fi
36197if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036198 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036199Usually this means the macro was only invoked conditionally." "$LINENO" 5
36200fi
36201if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036202 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036203Usually this means the macro was only invoked conditionally." "$LINENO" 5
36204fi
cristy3ed852e2009-09-05 21:47:34 +000036205
cristyda16f162011-02-19 23:52:17 +000036206: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036207ac_write_fail=0
36208ac_clean_files_save=$ac_clean_files
36209ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036210{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036211$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036212as_write_fail=0
36213cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036214#! $SHELL
36215# Generated by $as_me.
36216# Run this file to recreate the current configuration.
36217# Compiler output produced by configure, useful for debugging
36218# configure, is in config.log if it exists.
36219
36220debug=false
36221ac_cs_recheck=false
36222ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036223
cristy8b350f62009-11-15 23:12:43 +000036224SHELL=\${CONFIG_SHELL-$SHELL}
36225export SHELL
36226_ASEOF
36227cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36228## -------------------- ##
36229## M4sh Initialization. ##
36230## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036231
36232# Be more Bourne compatible
36233DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036234if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036235 emulate sh
36236 NULLCMD=:
36237 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36238 # is contrary to our usage. Disable this feature.
36239 alias -g '${1+"$@"}'='"$@"'
36240 setopt NO_GLOB_SUBST
36241else
cristy8b350f62009-11-15 23:12:43 +000036242 case `(set -o) 2>/dev/null` in #(
36243 *posix*) :
36244 set -o posix ;; #(
36245 *) :
36246 ;;
cristy3ed852e2009-09-05 21:47:34 +000036247esac
cristy3ed852e2009-09-05 21:47:34 +000036248fi
36249
36250
cristy3ed852e2009-09-05 21:47:34 +000036251as_nl='
36252'
36253export as_nl
36254# Printing a long string crashes Solaris 7 /usr/bin/printf.
36255as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36256as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36257as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036258# Prefer a ksh shell builtin over an external printf program on Solaris,
36259# but without wasting forks for bash or zsh.
36260if test -z "$BASH_VERSION$ZSH_VERSION" \
36261 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36262 as_echo='print -r --'
36263 as_echo_n='print -rn --'
36264elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036265 as_echo='printf %s\n'
36266 as_echo_n='printf %s'
36267else
36268 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36269 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36270 as_echo_n='/usr/ucb/echo -n'
36271 else
36272 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36273 as_echo_n_body='eval
36274 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036275 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036276 *"$as_nl"*)
36277 expr "X$arg" : "X\\(.*\\)$as_nl";
36278 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36279 esac;
36280 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36281 '
36282 export as_echo_n_body
36283 as_echo_n='sh -c $as_echo_n_body as_echo'
36284 fi
36285 export as_echo_body
36286 as_echo='sh -c $as_echo_body as_echo'
36287fi
36288
36289# The user is always right.
36290if test "${PATH_SEPARATOR+set}" != set; then
36291 PATH_SEPARATOR=:
36292 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36293 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36294 PATH_SEPARATOR=';'
36295 }
36296fi
36297
cristy3ed852e2009-09-05 21:47:34 +000036298
36299# IFS
36300# We need space, tab and new line, in precisely that order. Quoting is
36301# there to prevent editors from complaining about space-tab.
36302# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36303# splitting by setting IFS to empty value.)
36304IFS=" "" $as_nl"
36305
36306# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036307as_myself=
cristy8b350f62009-11-15 23:12:43 +000036308case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036309 *[\\/]* ) as_myself=$0 ;;
36310 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36311for as_dir in $PATH
36312do
36313 IFS=$as_save_IFS
36314 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036315 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36316 done
cristy3ed852e2009-09-05 21:47:34 +000036317IFS=$as_save_IFS
36318
36319 ;;
36320esac
36321# We did not find ourselves, most probably we were run as `sh COMMAND'
36322# in which case we are not to be found in the path.
36323if test "x$as_myself" = x; then
36324 as_myself=$0
36325fi
36326if test ! -f "$as_myself"; then
36327 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036328 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036329fi
36330
cristy8b350f62009-11-15 23:12:43 +000036331# Unset variables that we do not need and which cause bugs (e.g. in
36332# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36333# suppresses any "Segmentation fault" message there. '((' could
36334# trigger a bug in pdksh 5.2.14.
36335for as_var in BASH_ENV ENV MAIL MAILPATH
36336do eval test x\${$as_var+set} = xset \
36337 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036338done
36339PS1='$ '
36340PS2='> '
36341PS4='+ '
36342
36343# NLS nuisances.
36344LC_ALL=C
36345export LC_ALL
36346LANGUAGE=C
36347export LANGUAGE
36348
cristy8b350f62009-11-15 23:12:43 +000036349# CDPATH.
36350(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36351
36352
cristy98dddb52010-11-04 00:30:15 +000036353# as_fn_error STATUS ERROR [LINENO LOG_FD]
36354# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036355# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36356# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036357# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036358as_fn_error ()
36359{
cristy98dddb52010-11-04 00:30:15 +000036360 as_status=$1; test $as_status -eq 0 && as_status=1
36361 if test "$4"; then
36362 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36363 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036364 fi
cristy98dddb52010-11-04 00:30:15 +000036365 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036366 as_fn_exit $as_status
36367} # as_fn_error
36368
36369
36370# as_fn_set_status STATUS
36371# -----------------------
36372# Set $? to STATUS, without forking.
36373as_fn_set_status ()
36374{
36375 return $1
36376} # as_fn_set_status
36377
36378# as_fn_exit STATUS
36379# -----------------
36380# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36381as_fn_exit ()
36382{
36383 set +e
36384 as_fn_set_status $1
36385 exit $1
36386} # as_fn_exit
36387
36388# as_fn_unset VAR
36389# ---------------
36390# Portably unset VAR.
36391as_fn_unset ()
36392{
36393 { eval $1=; unset $1;}
36394}
36395as_unset=as_fn_unset
36396# as_fn_append VAR VALUE
36397# ----------------------
36398# Append the text in VALUE to the end of the definition contained in VAR. Take
36399# advantage of any shell optimizations that allow amortized linear growth over
36400# repeated appends, instead of the typical quadratic growth present in naive
36401# implementations.
36402if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36403 eval 'as_fn_append ()
36404 {
36405 eval $1+=\$2
36406 }'
36407else
36408 as_fn_append ()
36409 {
36410 eval $1=\$$1\$2
36411 }
36412fi # as_fn_append
36413
36414# as_fn_arith ARG...
36415# ------------------
36416# Perform arithmetic evaluation on the ARGs, and store the result in the
36417# global $as_val. Take advantage of shells that can avoid forks. The arguments
36418# must be portable across $(()) and expr.
36419if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36420 eval 'as_fn_arith ()
36421 {
36422 as_val=$(( $* ))
36423 }'
36424else
36425 as_fn_arith ()
36426 {
36427 as_val=`expr "$@" || test $? -eq 1`
36428 }
36429fi # as_fn_arith
36430
36431
cristy3ed852e2009-09-05 21:47:34 +000036432if expr a : '\(a\)' >/dev/null 2>&1 &&
36433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36434 as_expr=expr
36435else
36436 as_expr=false
36437fi
36438
36439if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36440 as_basename=basename
36441else
36442 as_basename=false
36443fi
36444
cristy8b350f62009-11-15 23:12:43 +000036445if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36446 as_dirname=dirname
36447else
36448 as_dirname=false
36449fi
cristy3ed852e2009-09-05 21:47:34 +000036450
cristy3ed852e2009-09-05 21:47:34 +000036451as_me=`$as_basename -- "$0" ||
36452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36453 X"$0" : 'X\(//\)$' \| \
36454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36455$as_echo X/"$0" |
36456 sed '/^.*\/\([^/][^/]*\)\/*$/{
36457 s//\1/
36458 q
36459 }
36460 /^X\/\(\/\/\)$/{
36461 s//\1/
36462 q
36463 }
36464 /^X\/\(\/\).*/{
36465 s//\1/
36466 q
36467 }
36468 s/.*/./; q'`
36469
cristy8b350f62009-11-15 23:12:43 +000036470# Avoid depending upon Character Ranges.
36471as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36472as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36473as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36474as_cr_digits='0123456789'
36475as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036476
36477ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036478case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036479-n*)
cristy8b350f62009-11-15 23:12:43 +000036480 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036482 xy) ECHO_C='\c';;
36483 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36484 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036485 esac;;
36486*)
36487 ECHO_N='-n';;
36488esac
cristy3ed852e2009-09-05 21:47:34 +000036489
36490rm -f conf$$ conf$$.exe conf$$.file
36491if test -d conf$$.dir; then
36492 rm -f conf$$.dir/conf$$.file
36493else
36494 rm -f conf$$.dir
36495 mkdir conf$$.dir 2>/dev/null
36496fi
36497if (echo >conf$$.file) 2>/dev/null; then
36498 if ln -s conf$$.file conf$$ 2>/dev/null; then
36499 as_ln_s='ln -s'
36500 # ... but there are two gotchas:
36501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036503 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036505 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036506 elif ln conf$$.file conf$$ 2>/dev/null; then
36507 as_ln_s=ln
36508 else
cristy14fefe52012-05-21 00:59:18 +000036509 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036510 fi
36511else
cristy14fefe52012-05-21 00:59:18 +000036512 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036513fi
36514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36515rmdir conf$$.dir 2>/dev/null
36516
cristy8b350f62009-11-15 23:12:43 +000036517
36518# as_fn_mkdir_p
36519# -------------
36520# Create "$as_dir" as a directory, including parents if necessary.
36521as_fn_mkdir_p ()
36522{
36523
36524 case $as_dir in #(
36525 -*) as_dir=./$as_dir;;
36526 esac
36527 test -d "$as_dir" || eval $as_mkdir_p || {
36528 as_dirs=
36529 while :; do
36530 case $as_dir in #(
36531 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36532 *) as_qdir=$as_dir;;
36533 esac
36534 as_dirs="'$as_qdir' $as_dirs"
36535 as_dir=`$as_dirname -- "$as_dir" ||
36536$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36537 X"$as_dir" : 'X\(//\)[^/]' \| \
36538 X"$as_dir" : 'X\(//\)$' \| \
36539 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36540$as_echo X"$as_dir" |
36541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36542 s//\1/
36543 q
36544 }
36545 /^X\(\/\/\)[^/].*/{
36546 s//\1/
36547 q
36548 }
36549 /^X\(\/\/\)$/{
36550 s//\1/
36551 q
36552 }
36553 /^X\(\/\).*/{
36554 s//\1/
36555 q
36556 }
36557 s/.*/./; q'`
36558 test -d "$as_dir" && break
36559 done
36560 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036561 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036562
36563
36564} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036565if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036566 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036567else
36568 test -d ./-p && rmdir ./-p
36569 as_mkdir_p=false
36570fi
36571
cristy14fefe52012-05-21 00:59:18 +000036572
36573# as_fn_executable_p FILE
36574# -----------------------
36575# Test if FILE is an executable regular file.
36576as_fn_executable_p ()
36577{
36578 test -f "$1" && test -x "$1"
36579} # as_fn_executable_p
36580as_test_x='test -x'
36581as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036582
36583# Sed expression to map a string onto a valid CPP name.
36584as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36585
36586# Sed expression to map a string onto a valid variable name.
36587as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36588
36589
36590exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036591## ----------------------------------- ##
36592## Main body of $CONFIG_STATUS script. ##
36593## ----------------------------------- ##
36594_ASEOF
36595test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036596
cristy8b350f62009-11-15 23:12:43 +000036597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36598# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036599# report actual input values of CONFIG_FILES etc. instead of their
36600# values after options handling.
36601ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036602This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036603generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036604
36605 CONFIG_FILES = $CONFIG_FILES
36606 CONFIG_HEADERS = $CONFIG_HEADERS
36607 CONFIG_LINKS = $CONFIG_LINKS
36608 CONFIG_COMMANDS = $CONFIG_COMMANDS
36609 $ $0 $@
36610
36611on `(hostname || uname -n) 2>/dev/null | sed 1q`
36612"
36613
36614_ACEOF
36615
36616case $ac_config_files in *"
36617"*) set x $ac_config_files; shift; ac_config_files=$*;;
36618esac
36619
36620case $ac_config_headers in *"
36621"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36622esac
36623
36624
36625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36626# Files that config.status was made for.
36627config_files="$ac_config_files"
36628config_headers="$ac_config_headers"
36629config_commands="$ac_config_commands"
36630
36631_ACEOF
36632
36633cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36634ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036635\`$as_me' instantiates files and other configuration actions
36636from templates according to the current configuration. Unless the files
36637and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036638
cristy8b350f62009-11-15 23:12:43 +000036639Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036640
36641 -h, --help print this help, then exit
36642 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036643 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036644 -q, --quiet, --silent
36645 do not print progress messages
36646 -d, --debug don't remove temporary files
36647 --recheck update $as_me by reconfiguring in the same conditions
36648 --file=FILE[:TEMPLATE]
36649 instantiate the configuration file FILE
36650 --header=FILE[:TEMPLATE]
36651 instantiate the configuration header FILE
36652
36653Configuration files:
36654$config_files
36655
36656Configuration headers:
36657$config_headers
36658
36659Configuration commands:
36660$config_commands
36661
cristy8b350f62009-11-15 23:12:43 +000036662Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036663
36664_ACEOF
36665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036666ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036667ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036668ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036669configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036670 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036671
cristy14fefe52012-05-21 00:59:18 +000036672Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036673This config.status script is free software; the Free Software Foundation
36674gives unlimited permission to copy, distribute and modify it."
36675
36676ac_pwd='$ac_pwd'
36677srcdir='$srcdir'
36678INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036679MKDIR_P='$MKDIR_P'
36680AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036681test -n "\$AWK" || AWK=awk
36682_ACEOF
36683
36684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36685# The default lists apply if the user does not specify any file.
36686ac_need_defaults=:
36687while test $# != 0
36688do
36689 case $1 in
cristyda16f162011-02-19 23:52:17 +000036690 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036691 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36692 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36693 ac_shift=:
36694 ;;
cristyda16f162011-02-19 23:52:17 +000036695 --*=)
36696 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36697 ac_optarg=
36698 ac_shift=:
36699 ;;
cristy3ed852e2009-09-05 21:47:34 +000036700 *)
36701 ac_option=$1
36702 ac_optarg=$2
36703 ac_shift=shift
36704 ;;
36705 esac
36706
36707 case $ac_option in
36708 # Handling of the options.
36709 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36710 ac_cs_recheck=: ;;
36711 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36712 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036713 --config | --confi | --conf | --con | --co | --c )
36714 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036715 --debug | --debu | --deb | --de | --d | -d )
36716 debug=: ;;
36717 --file | --fil | --fi | --f )
36718 $ac_shift
36719 case $ac_optarg in
36720 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036721 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036722 esac
cristy8b350f62009-11-15 23:12:43 +000036723 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036724 ac_need_defaults=false;;
36725 --header | --heade | --head | --hea )
36726 $ac_shift
36727 case $ac_optarg in
36728 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36729 esac
cristy8b350f62009-11-15 23:12:43 +000036730 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036731 ac_need_defaults=false;;
36732 --he | --h)
36733 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036734 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036735Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036736 --help | --hel | -h )
36737 $as_echo "$ac_cs_usage"; exit ;;
36738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36739 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36740 ac_cs_silent=: ;;
36741
36742 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036743 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036744Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036745
cristy8b350f62009-11-15 23:12:43 +000036746 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036747 ac_need_defaults=false ;;
36748
36749 esac
36750 shift
36751done
36752
36753ac_configure_extra_args=
36754
36755if $ac_cs_silent; then
36756 exec 6>/dev/null
36757 ac_configure_extra_args="$ac_configure_extra_args --silent"
36758fi
36759
36760_ACEOF
36761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36762if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036763 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036764 shift
36765 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36766 CONFIG_SHELL='$SHELL'
36767 export CONFIG_SHELL
36768 exec "\$@"
36769fi
36770
36771_ACEOF
36772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36773exec 5>>config.log
36774{
36775 echo
36776 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36777## Running $as_me. ##
36778_ASBOX
36779 $as_echo "$ac_log"
36780} >&5
36781
36782_ACEOF
36783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036784#
36785# INIT-COMMANDS
36786#
36787PACKAGE="$PACKAGE"
36788AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36789
36790
36791# The HP-UX ksh and POSIX shell print the target directory to stdout
36792# if CDPATH is set.
36793(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36794
36795sed_quote_subst='$sed_quote_subst'
36796double_quote_subst='$double_quote_subst'
36797delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036798SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36799Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36800GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36801EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36802FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36803SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36804ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36805LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36806macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36807macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36808AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36809DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36810OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36811enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36812enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36813pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36814enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036815PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036816host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36817host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36818host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36819build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36820build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36821build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36822NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36823LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36824max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36825ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36826exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36827lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36828lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36829lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036830lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36831lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036832reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36833reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36834deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36835file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036836file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36837want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36838sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036839AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36840AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036841archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036842STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36843RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36844old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36845old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36846old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36847lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36848CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36849CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36850compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36851GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36852lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36853lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36854lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36855lt_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 +000036856nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36857lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036858objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36859MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36860lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036861lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036862lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036863lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36864lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36865need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036866MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036867DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36868NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36869LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36870OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36871OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36872libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36873shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36874extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36875archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36876enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36877export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36878whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36879compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36880old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36881old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36882archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36883archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36884module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36885module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36886with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36887allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36888no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36889hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036890hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36891hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36892hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36893hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36894hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36895hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36896inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36897link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036898always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36899export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36900exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36901include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36902prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036903postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036904file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36905variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36906need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36907need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36908version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36909runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36910shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36911shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36912libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36913library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36914soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36915install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36916postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36917postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36918finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36919finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36920hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36921sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36922sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36923hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36924enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36925enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36926enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36927old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36928striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36929compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36930predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36931postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36932predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36933postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36934compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36935LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36936reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36937reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36938old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36939compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36940GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36941lt_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 +000036942lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036943lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036944lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36945lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36946archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36947enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36948export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36949whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36950compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36951old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36952old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36953archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36954archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36955module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36956module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36957with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36958allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36959no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36960hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036961hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36962hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36963hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36964hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36965hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36966hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36967inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36968link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036969always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36970export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36971exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36972include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36973prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036974postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036975file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36976hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36977compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36978predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36979postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36980predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36981postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36982compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036983
36984LTCC='$LTCC'
36985LTCFLAGS='$LTCFLAGS'
36986compiler='$compiler_DEFAULT'
36987
cristy0c60a692010-11-04 01:09:47 +000036988# A function that is used when there is no print builtin or printf.
36989func_fallback_echo ()
36990{
36991 eval 'cat <<_LTECHO_EOF
36992\$1
36993_LTECHO_EOF'
36994}
36995
cristy73bd4a52010-10-05 11:24:23 +000036996# Quote evaled strings.
36997for var in SED \
36998GREP \
36999EGREP \
37000FGREP \
cristy0c60a692010-11-04 01:09:47 +000037001SHELL \
37002ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037003LD \
cristy0c60a692010-11-04 01:09:47 +000037004AS \
37005DLLTOOL \
37006OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037007PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037008NM \
37009LN_S \
37010lt_SP2NL \
37011lt_NL2SP \
37012reload_flag \
37013deplibs_check_method \
37014file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037015file_magic_glob \
37016want_nocaseglob \
37017sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037018AR \
37019AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037020archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037021STRIP \
37022RANLIB \
37023CC \
37024CFLAGS \
37025compiler \
37026lt_cv_sys_global_symbol_pipe \
37027lt_cv_sys_global_symbol_to_cdecl \
37028lt_cv_sys_global_symbol_to_c_name_address \
37029lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037030nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037031lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037032lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037033lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037034lt_prog_compiler_static \
37035lt_cv_prog_compiler_c_o \
37036need_locks \
cristyda16f162011-02-19 23:52:17 +000037037MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037038DSYMUTIL \
37039NMEDIT \
37040LIPO \
37041OTOOL \
37042OTOOL64 \
37043shrext_cmds \
37044export_dynamic_flag_spec \
37045whole_archive_flag_spec \
37046compiler_needs_object \
37047with_gnu_ld \
37048allow_undefined_flag \
37049no_undefined_flag \
37050hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037051hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037052exclude_expsyms \
37053include_expsyms \
37054file_list_spec \
37055variables_saved_for_relink \
37056libname_spec \
37057library_names_spec \
37058soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037059install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037060finish_eval \
37061old_striplib \
37062striplib \
37063compiler_lib_search_dirs \
37064predep_objects \
37065postdep_objects \
37066predeps \
37067postdeps \
37068compiler_lib_search_path \
37069LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037070reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037071compiler_CXX \
37072lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037073lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037074lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037075lt_prog_compiler_static_CXX \
37076lt_cv_prog_compiler_c_o_CXX \
37077export_dynamic_flag_spec_CXX \
37078whole_archive_flag_spec_CXX \
37079compiler_needs_object_CXX \
37080with_gnu_ld_CXX \
37081allow_undefined_flag_CXX \
37082no_undefined_flag_CXX \
37083hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037084hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037085exclude_expsyms_CXX \
37086include_expsyms_CXX \
37087file_list_spec_CXX \
37088compiler_lib_search_dirs_CXX \
37089predep_objects_CXX \
37090postdep_objects_CXX \
37091predeps_CXX \
37092postdeps_CXX \
37093compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037094 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037095 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037096 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037097 ;;
37098 *)
37099 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37100 ;;
37101 esac
37102done
37103
37104# Double-quote double-evaled strings.
37105for var in reload_cmds \
37106old_postinstall_cmds \
37107old_postuninstall_cmds \
37108old_archive_cmds \
37109extract_expsyms_cmds \
37110old_archive_from_new_cmds \
37111old_archive_from_expsyms_cmds \
37112archive_cmds \
37113archive_expsym_cmds \
37114module_cmds \
37115module_expsym_cmds \
37116export_symbols_cmds \
37117prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037118postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037119postinstall_cmds \
37120postuninstall_cmds \
37121finish_cmds \
37122sys_lib_search_path_spec \
37123sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037124reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037125old_archive_cmds_CXX \
37126old_archive_from_new_cmds_CXX \
37127old_archive_from_expsyms_cmds_CXX \
37128archive_cmds_CXX \
37129archive_expsym_cmds_CXX \
37130module_cmds_CXX \
37131module_expsym_cmds_CXX \
37132export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037133prelink_cmds_CXX \
37134postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037135 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037136 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037137 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037138 ;;
37139 *)
37140 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37141 ;;
37142 esac
37143done
37144
cristy73bd4a52010-10-05 11:24:23 +000037145ac_aux_dir='$ac_aux_dir'
37146xsi_shell='$xsi_shell'
37147lt_shell_append='$lt_shell_append'
37148
37149# See if we are running on zsh, and set the options which allow our
37150# commands through without removal of \ escapes INIT.
37151if test -n "\${ZSH_VERSION+set}" ; then
37152 setopt NO_GLOB_SUBST
37153fi
37154
37155
37156 PACKAGE='$PACKAGE'
37157 VERSION='$VERSION'
37158 TIMESTAMP='$TIMESTAMP'
37159 RM='$RM'
37160 ofile='$ofile'
37161
37162
37163
37164
37165
37166
cristy3ed852e2009-09-05 21:47:34 +000037167_ACEOF
37168
37169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37170
37171# Handling of arguments.
37172for ac_config_target in $ac_config_targets
37173do
37174 case $ac_config_target in
37175 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037176 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037177 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037178 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37179 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37180 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37181 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37182 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037183 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037184 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037185 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37186 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37187 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37188 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37189 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037190 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037191 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37192 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037193 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37194 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37195 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037196 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37197 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37198 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37199 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37200 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37201 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37202 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37203 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37204 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37205 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37206 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37207 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37208 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37209 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37210 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37211 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37212 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037213 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37214 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037215 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37216 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037217 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037218 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037219 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037220 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037221 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37222 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37223
cristy98dddb52010-11-04 00:30:15 +000037224 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037225 esac
37226done
37227
37228
37229# If the user did not use the arguments to specify the items to instantiate,
37230# then the envvar interface is used. Set only those that are not.
37231# We use the long form for the default assignment because of an extremely
37232# bizarre bug on SunOS 4.1.3.
37233if $ac_need_defaults; then
37234 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37235 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37236 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37237fi
37238
37239# Have a temporary directory for convenience. Make it in the build tree
37240# simply because there is no reason against having it here, and in addition,
37241# creating and moving files from /tmp can sometimes cause problems.
37242# Hook for its removal unless debugging.
37243# Note that there is a small window in which the directory will not be cleaned:
37244# after its creation but before its name has been assigned to `$tmp'.
37245$debug ||
37246{
cristyda16f162011-02-19 23:52:17 +000037247 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037248 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037249 : "${ac_tmp:=$tmp}"
37250 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037251' 0
cristy8b350f62009-11-15 23:12:43 +000037252 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037253}
37254# Create a (secure) tmp directory for tmp files.
37255
37256{
37257 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037258 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037259} ||
37260{
37261 tmp=./conf$$-$RANDOM
37262 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037263} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037264ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037265
37266# Set up the scripts for CONFIG_FILES section.
37267# No need to generate them if there are no CONFIG_FILES.
37268# This happens for instance with `./config.status config.h'.
37269if test -n "$CONFIG_FILES"; then
37270
37271
cristy8b350f62009-11-15 23:12:43 +000037272ac_cr=`echo X | tr X '\015'`
37273# On cygwin, bash can eat \r inside `` if the user requested igncr.
37274# But we know of no other shell where ac_cr would be empty at this
37275# point, so we can use a bashism as a fallback.
37276if test "x$ac_cr" = x; then
37277 eval ac_cr=\$\'\\r\'
37278fi
cristy3ed852e2009-09-05 21:47:34 +000037279ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37280if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037281 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037282else
37283 ac_cs_awk_cr=$ac_cr
37284fi
37285
cristyda16f162011-02-19 23:52:17 +000037286echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037287_ACEOF
37288
37289
37290{
37291 echo "cat >conf$$subs.awk <<_ACEOF" &&
37292 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37293 echo "_ACEOF"
37294} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037295 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37296ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037297ac_delim='%!_!# '
37298for ac_last_try in false false false false false :; do
37299 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037300 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037301
37302 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37303 if test $ac_delim_n = $ac_delim_num; then
37304 break
37305 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037306 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037307 else
37308 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37309 fi
37310done
37311rm -f conf$$subs.sh
37312
37313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037314cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037315_ACEOF
37316sed -n '
37317h
37318s/^/S["/; s/!.*/"]=/
37319p
37320g
37321s/^[^!]*!//
37322:repl
37323t repl
37324s/'"$ac_delim"'$//
37325t delim
37326:nl
37327h
cristycd4c5312009-11-22 01:19:08 +000037328s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037329t more1
37330s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37331p
37332n
37333b repl
37334:more1
37335s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37336p
37337g
37338s/.\{148\}//
37339t nl
37340:delim
37341h
cristycd4c5312009-11-22 01:19:08 +000037342s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037343t more2
37344s/["\\]/\\&/g; s/^/"/; s/$/"/
37345p
37346b
37347:more2
37348s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37349p
37350g
37351s/.\{148\}//
37352t delim
37353' <conf$$subs.awk | sed '
37354/^[^""]/{
37355 N
37356 s/\n//
37357}
37358' >>$CONFIG_STATUS || ac_write_fail=1
37359rm -f conf$$subs.awk
37360cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37361_ACAWK
cristyda16f162011-02-19 23:52:17 +000037362cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037363 for (key in S) S_is_set[key] = 1
37364 FS = ""
37365
37366}
37367{
37368 line = $ 0
37369 nfields = split(line, field, "@")
37370 substed = 0
37371 len = length(field[1])
37372 for (i = 2; i < nfields; i++) {
37373 key = field[i]
37374 keylen = length(key)
37375 if (S_is_set[key]) {
37376 value = S[key]
37377 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37378 len += length(value) + length(field[++i])
37379 substed = 1
37380 } else
37381 len += 1 + keylen
37382 }
37383
37384 print line
37385}
37386
37387_ACAWK
37388_ACEOF
37389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37390if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37391 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37392else
37393 cat
cristyda16f162011-02-19 23:52:17 +000037394fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037395 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037396_ACEOF
37397
cristy98dddb52010-11-04 00:30:15 +000037398# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37399# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037400# trailing colons and then remove the whole line if VPATH becomes empty
37401# (actually we leave an empty line to preserve line numbers).
37402if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037403 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37404h
37405s///
37406s/^/:/
37407s/[ ]*$/:/
37408s/:\$(srcdir):/:/g
37409s/:\${srcdir}:/:/g
37410s/:@srcdir@:/:/g
37411s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037412s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037413x
37414s/\(=[ ]*\).*/\1/
37415G
37416s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037417s/^[^=]*=[ ]*$//
37418}'
37419fi
37420
37421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37422fi # test -n "$CONFIG_FILES"
37423
37424# Set up the scripts for CONFIG_HEADERS section.
37425# No need to generate them if there are no CONFIG_HEADERS.
37426# This happens for instance with `./config.status Makefile'.
37427if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037428cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037429BEGIN {
37430_ACEOF
37431
37432# Transform confdefs.h into an awk script `defines.awk', embedded as
37433# here-document in config.status, that substitutes the proper values into
37434# config.h.in to produce config.h.
37435
37436# Create a delimiter string that does not exist in confdefs.h, to ease
37437# handling of long lines.
37438ac_delim='%!_!# '
37439for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037440 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37441 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037442 break
37443 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037444 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037445 else
37446 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37447 fi
37448done
37449
37450# For the awk script, D is an array of macro values keyed by name,
37451# likewise P contains macro parameters if any. Preserve backslash
37452# newline sequences.
37453
37454ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37455sed -n '
37456s/.\{148\}/&'"$ac_delim"'/g
37457t rset
37458:rset
37459s/^[ ]*#[ ]*define[ ][ ]*/ /
37460t def
37461d
37462:def
37463s/\\$//
37464t bsnl
37465s/["\\]/\\&/g
37466s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37467D["\1"]=" \3"/p
37468s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37469d
37470:bsnl
37471s/["\\]/\\&/g
37472s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37473D["\1"]=" \3\\\\\\n"\\/p
37474t cont
37475s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37476t cont
37477d
37478:cont
37479n
37480s/.\{148\}/&'"$ac_delim"'/g
37481t clear
37482:clear
37483s/\\$//
37484t bsnlc
37485s/["\\]/\\&/g; s/^/"/; s/$/"/p
37486d
37487:bsnlc
37488s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37489b cont
37490' <confdefs.h | sed '
37491s/'"$ac_delim"'/"\\\
37492"/g' >>$CONFIG_STATUS || ac_write_fail=1
37493
37494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37495 for (key in D) D_is_set[key] = 1
37496 FS = ""
37497}
37498/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37499 line = \$ 0
37500 split(line, arg, " ")
37501 if (arg[1] == "#") {
37502 defundef = arg[2]
37503 mac1 = arg[3]
37504 } else {
37505 defundef = substr(arg[1], 2)
37506 mac1 = arg[2]
37507 }
37508 split(mac1, mac2, "(") #)
37509 macro = mac2[1]
37510 prefix = substr(line, 1, index(line, defundef) - 1)
37511 if (D_is_set[macro]) {
37512 # Preserve the white space surrounding the "#".
37513 print prefix "define", macro P[macro] D[macro]
37514 next
37515 } else {
37516 # Replace #undef with comments. This is necessary, for example,
37517 # in the case of _POSIX_SOURCE, which is predefined and required
37518 # on some systems where configure will not decide to define it.
37519 if (defundef == "undef") {
37520 print "/*", prefix defundef, macro, "*/"
37521 next
37522 }
37523 }
37524}
37525{ print }
37526_ACAWK
37527_ACEOF
37528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037529 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037530fi # test -n "$CONFIG_HEADERS"
37531
37532
37533eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37534shift
37535for ac_tag
37536do
37537 case $ac_tag in
37538 :[FHLC]) ac_mode=$ac_tag; continue;;
37539 esac
37540 case $ac_mode$ac_tag in
37541 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037542 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037543 :[FH]-) ac_tag=-:-;;
37544 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37545 esac
37546 ac_save_IFS=$IFS
37547 IFS=:
37548 set x $ac_tag
37549 IFS=$ac_save_IFS
37550 shift
37551 ac_file=$1
37552 shift
37553
37554 case $ac_mode in
37555 :L) ac_source=$1;;
37556 :[FH])
37557 ac_file_inputs=
37558 for ac_f
37559 do
37560 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037561 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037562 *) # Look for the file first in the build tree, then in the source tree
37563 # (if the path is not absolute). The absolute path cannot be DOS-style,
37564 # because $ac_f cannot contain `:'.
37565 test -f "$ac_f" ||
37566 case $ac_f in
37567 [\\/$]*) false;;
37568 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37569 esac ||
cristy98dddb52010-11-04 00:30:15 +000037570 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037571 esac
37572 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037573 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037574 done
37575
37576 # Let's still pretend it is `configure' which instantiates (i.e., don't
37577 # use $as_me), people would be surprised to read:
37578 # /* config.h. Generated by config.status. */
37579 configure_input='Generated from '`
37580 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37581 `' by configure.'
37582 if test x"$ac_file" != x-; then
37583 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037584 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037585$as_echo "$as_me: creating $ac_file" >&6;}
37586 fi
37587 # Neutralize special characters interpreted by sed in replacement strings.
37588 case $configure_input in #(
37589 *\&* | *\|* | *\\* )
37590 ac_sed_conf_input=`$as_echo "$configure_input" |
37591 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37592 *) ac_sed_conf_input=$configure_input;;
37593 esac
37594
37595 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037596 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037597 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037598 esac
37599 ;;
37600 esac
37601
37602 ac_dir=`$as_dirname -- "$ac_file" ||
37603$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37604 X"$ac_file" : 'X\(//\)[^/]' \| \
37605 X"$ac_file" : 'X\(//\)$' \| \
37606 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37607$as_echo X"$ac_file" |
37608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37609 s//\1/
37610 q
37611 }
37612 /^X\(\/\/\)[^/].*/{
37613 s//\1/
37614 q
37615 }
37616 /^X\(\/\/\)$/{
37617 s//\1/
37618 q
37619 }
37620 /^X\(\/\).*/{
37621 s//\1/
37622 q
37623 }
37624 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037625 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037626 ac_builddir=.
37627
37628case "$ac_dir" in
37629.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37630*)
37631 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37632 # A ".." for each directory in $ac_dir_suffix.
37633 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37634 case $ac_top_builddir_sub in
37635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37637 esac ;;
37638esac
37639ac_abs_top_builddir=$ac_pwd
37640ac_abs_builddir=$ac_pwd$ac_dir_suffix
37641# for backward compatibility:
37642ac_top_builddir=$ac_top_build_prefix
37643
37644case $srcdir in
37645 .) # We are building in place.
37646 ac_srcdir=.
37647 ac_top_srcdir=$ac_top_builddir_sub
37648 ac_abs_top_srcdir=$ac_pwd ;;
37649 [\\/]* | ?:[\\/]* ) # Absolute name.
37650 ac_srcdir=$srcdir$ac_dir_suffix;
37651 ac_top_srcdir=$srcdir
37652 ac_abs_top_srcdir=$srcdir ;;
37653 *) # Relative name.
37654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37655 ac_top_srcdir=$ac_top_build_prefix$srcdir
37656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37657esac
37658ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37659
37660
37661 case $ac_mode in
37662 :F)
37663 #
37664 # CONFIG_FILE
37665 #
37666
37667 case $INSTALL in
37668 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37669 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37670 esac
cristy73bd4a52010-10-05 11:24:23 +000037671 ac_MKDIR_P=$MKDIR_P
37672 case $MKDIR_P in
37673 [\\/$]* | ?:[\\/]* ) ;;
37674 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37675 esac
cristy3ed852e2009-09-05 21:47:34 +000037676_ACEOF
37677
37678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37679# If the template does not know about datarootdir, expand it.
37680# FIXME: This hack should be removed a few years after 2.60.
37681ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037682ac_sed_dataroot='
37683/datarootdir/ {
37684 p
37685 q
37686}
37687/@datadir@/p
37688/@docdir@/p
37689/@infodir@/p
37690/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037691/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037692case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37693*datarootdir*) ac_datarootdir_seen=yes;;
37694*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037696$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37697_ACEOF
37698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37699 ac_datarootdir_hack='
37700 s&@datadir@&$datadir&g
37701 s&@docdir@&$docdir&g
37702 s&@infodir@&$infodir&g
37703 s&@localedir@&$localedir&g
37704 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037705 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037706esac
37707_ACEOF
37708
37709# Neutralize VPATH when `$srcdir' = `.'.
37710# Shell code in configure.ac might set extrasub.
37711# FIXME: do we really want to maintain this feature?
37712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37713ac_sed_extra="$ac_vpsub
37714$extrasub
37715_ACEOF
37716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37717:t
37718/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37719s|@configure_input@|$ac_sed_conf_input|;t t
37720s&@top_builddir@&$ac_top_builddir_sub&;t t
37721s&@top_build_prefix@&$ac_top_build_prefix&;t t
37722s&@srcdir@&$ac_srcdir&;t t
37723s&@abs_srcdir@&$ac_abs_srcdir&;t t
37724s&@top_srcdir@&$ac_top_srcdir&;t t
37725s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37726s&@builddir@&$ac_builddir&;t t
37727s&@abs_builddir@&$ac_abs_builddir&;t t
37728s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37729s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037730s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037731$ac_datarootdir_hack
37732"
cristyda16f162011-02-19 23:52:17 +000037733eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37734 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037735
37736test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037737 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37738 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37739 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037741which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037742$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037743which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037744
cristyda16f162011-02-19 23:52:17 +000037745 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037746 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037747 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37748 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037749 esac \
cristy98dddb52010-11-04 00:30:15 +000037750 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037751 ;;
37752 :H)
37753 #
37754 # CONFIG_HEADER
37755 #
37756 if test x"$ac_file" != x-; then
37757 {
37758 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037759 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37760 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037761 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037762 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037763 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037764$as_echo "$as_me: $ac_file is unchanged" >&6;}
37765 else
37766 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037767 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037769 fi
37770 else
37771 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037772 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037773 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037774 fi
cristy73bd4a52010-10-05 11:24:23 +000037775# Compute "$ac_file"'s index in $config_headers.
37776_am_arg="$ac_file"
37777_am_stamp_count=1
37778for _am_header in $config_headers :; do
37779 case $_am_header in
37780 $_am_arg | $_am_arg:* )
37781 break ;;
37782 * )
37783 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37784 esac
37785done
37786echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37787$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37788 X"$_am_arg" : 'X\(//\)[^/]' \| \
37789 X"$_am_arg" : 'X\(//\)$' \| \
37790 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37791$as_echo X"$_am_arg" |
37792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37793 s//\1/
37794 q
37795 }
37796 /^X\(\/\/\)[^/].*/{
37797 s//\1/
37798 q
37799 }
37800 /^X\(\/\/\)$/{
37801 s//\1/
37802 q
37803 }
37804 /^X\(\/\).*/{
37805 s//\1/
37806 q
37807 }
37808 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037809 ;;
37810
cristy8b350f62009-11-15 23:12:43 +000037811 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037812$as_echo "$as_me: executing $ac_file commands" >&6;}
37813 ;;
37814 esac
37815
37816
37817 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037818 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037819ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37820ac_prefix_conf_PKG=`echo MagickCore`
37821ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37822ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37823ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37824if test ".$ac_prefix_conf_INP" = "."; then
37825 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37826 case "$ac_file" in
37827 *.h) ac_prefix_conf_INP=$ac_file ;;
37828 *)
37829 esac
37830 test ".$ac_prefix_conf_INP" != "." && break
37831 done
37832fi
37833if test ".$ac_prefix_conf_INP" = "."; then
37834 case "$ac_prefix_conf_OUT" in
37835 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37836 ;;
37837 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37838 ;;
37839 *) ac_prefix_conf_INP=config.h
37840 ;;
37841 esac
37842fi
37843if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037844 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037845else
37846 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37847 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37848 fi fi
37849 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37850$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37851 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037852 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37853 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37854 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37855 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37856 $as_echo "#endif/" >> conftest.prefix
37857 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37858 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37859 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037860 # now executing _script on _DEF input to create _OUT output file
37861 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37862 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37863 echo ' ' >>$tmp/pconfig.h
37864 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37865
37866 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37867 echo ' ' >>$tmp/pconfig.h
37868 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37869 echo "#endif" >>$tmp/pconfig.h
37870 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37871 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37872$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37873 else
37874 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37875$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37876 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37877 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37878 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37879$as_echo X"$ac_prefix_conf_OUT" |
37880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37881 s//\1/
37882 q
37883 }
37884 /^X\(\/\/\)[^/].*/{
37885 s//\1/
37886 q
37887 }
37888 /^X\(\/\/\)$/{
37889 s//\1/
37890 q
37891 }
37892 /^X\(\/\).*/{
37893 s//\1/
37894 q
37895 }
37896 s/.*/./; q'`
37897 as_dir="$ac_dir"; as_fn_mkdir_p
37898 rm -f "$ac_prefix_conf_OUT"
37899 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37900 fi
37901 cp conftest.prefix _configs.sed
37902 else
cristy98dddb52010-11-04 00:30:15 +000037903 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 +000037904 fi
37905 rm -f conftest.*
37906fi
37907 ;;
37908 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37909 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37910 # are listed without --file. Let's play safe and only enable the eval
37911 # if we detect the quoting.
37912 case $CONFIG_FILES in
37913 *\'*) eval set x "$CONFIG_FILES" ;;
37914 *) set x $CONFIG_FILES ;;
37915 esac
37916 shift
37917 for mf
37918 do
37919 # Strip MF so we end up with the name of the file.
37920 mf=`echo "$mf" | sed -e 's/:.*$//'`
37921 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037922 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037923 # some people rename them; so instead we look at the file content.
37924 # Grep'ing the first line is not enough: some people post-process
37925 # each Makefile.in and add a new line on top of each file to say so.
37926 # Grep'ing the whole file is not good either: AIX grep has a line
37927 # limit of 2048, but all sed's we know have understand at least 4000.
37928 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37929 dirpart=`$as_dirname -- "$mf" ||
37930$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37931 X"$mf" : 'X\(//\)[^/]' \| \
37932 X"$mf" : 'X\(//\)$' \| \
37933 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37934$as_echo X"$mf" |
37935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37936 s//\1/
37937 q
37938 }
37939 /^X\(\/\/\)[^/].*/{
37940 s//\1/
37941 q
37942 }
37943 /^X\(\/\/\)$/{
37944 s//\1/
37945 q
37946 }
37947 /^X\(\/\).*/{
37948 s//\1/
37949 q
37950 }
37951 s/.*/./; q'`
37952 else
37953 continue
37954 fi
37955 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037956 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037957 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37958 test -z "$DEPDIR" && continue
37959 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37960 test -z "am__include" && continue
37961 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037962 # Find all dependency output files, they are included files with
37963 # $(DEPDIR) in their names. We invoke sed twice because it is the
37964 # simplest approach to changing $(DEPDIR) to its actual value in the
37965 # expansion.
37966 for file in `sed -n "
37967 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037968 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037969 # Make sure the directory exists.
37970 test -f "$dirpart/$file" && continue
37971 fdir=`$as_dirname -- "$file" ||
37972$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37973 X"$file" : 'X\(//\)[^/]' \| \
37974 X"$file" : 'X\(//\)$' \| \
37975 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37976$as_echo X"$file" |
37977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37978 s//\1/
37979 q
37980 }
37981 /^X\(\/\/\)[^/].*/{
37982 s//\1/
37983 q
37984 }
37985 /^X\(\/\/\)$/{
37986 s//\1/
37987 q
37988 }
37989 /^X\(\/\).*/{
37990 s//\1/
37991 q
37992 }
37993 s/.*/./; q'`
37994 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37995 # echo "creating $dirpart/$file"
37996 echo '# dummy' > "$dirpart/$file"
37997 done
37998 done
37999}
38000 ;;
38001 "libtool":C)
38002
38003 # See if we are running on zsh, and set the options which allow our
38004 # commands through without removal of \ escapes.
38005 if test -n "${ZSH_VERSION+set}" ; then
38006 setopt NO_GLOB_SUBST
38007 fi
38008
38009 cfgfile="${ofile}T"
38010 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38011 $RM "$cfgfile"
38012
38013 cat <<_LT_EOF >> "$cfgfile"
38014#! $SHELL
38015
38016# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38017# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38018# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38019# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38020#
38021# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038022# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38023# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038024# Written by Gordon Matzigkeit, 1996
38025#
38026# This file is part of GNU Libtool.
38027#
38028# GNU Libtool is free software; you can redistribute it and/or
38029# modify it under the terms of the GNU General Public License as
38030# published by the Free Software Foundation; either version 2 of
38031# the License, or (at your option) any later version.
38032#
38033# As a special exception to the GNU General Public License,
38034# if you distribute this file as part of a program or library that
38035# is built using GNU Libtool, you may include this file under the
38036# same distribution terms that you use for the rest of that program.
38037#
38038# GNU Libtool is distributed in the hope that it will be useful,
38039# but WITHOUT ANY WARRANTY; without even the implied warranty of
38040# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38041# GNU General Public License for more details.
38042#
38043# You should have received a copy of the GNU General Public License
38044# along with GNU Libtool; see the file COPYING. If not, a copy
38045# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38046# obtained by writing to the Free Software Foundation, Inc.,
38047# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38048
38049
38050# The names of the tagged configurations supported by this script.
38051available_tags="CXX "
38052
38053# ### BEGIN LIBTOOL CONFIG
38054
38055# A sed program that does not truncate output.
38056SED=$lt_SED
38057
38058# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38059Xsed="\$SED -e 1s/^X//"
38060
38061# A grep program that handles long lines.
38062GREP=$lt_GREP
38063
38064# An ERE matcher.
38065EGREP=$lt_EGREP
38066
38067# A literal string matcher.
38068FGREP=$lt_FGREP
38069
cristy0c60a692010-11-04 01:09:47 +000038070# Shell to use when invoking shell scripts.
38071SHELL=$lt_SHELL
38072
38073# An echo program that protects backslashes.
38074ECHO=$lt_ECHO
38075
cristy73bd4a52010-10-05 11:24:23 +000038076# Which release of libtool.m4 was used?
38077macro_version=$macro_version
38078macro_revision=$macro_revision
38079
38080# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038081AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038082
38083# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038084DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038085
38086# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038087OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038088
38089# Whether or not to build shared libraries.
38090build_libtool_libs=$enable_shared
38091
38092# Whether or not to build static libraries.
38093build_old_libs=$enable_static
38094
38095# What type of objects to build.
38096pic_mode=$pic_mode
38097
38098# Whether or not to optimize for fast installation.
38099fast_install=$enable_fast_install
38100
cristy99bd5232011-12-07 14:38:20 +000038101# The PATH separator for the build system.
38102PATH_SEPARATOR=$lt_PATH_SEPARATOR
38103
cristy73bd4a52010-10-05 11:24:23 +000038104# The host system.
38105host_alias=$host_alias
38106host=$host
38107host_os=$host_os
38108
38109# The build system.
38110build_alias=$build_alias
38111build=$build
38112build_os=$build_os
38113
38114# A BSD- or MS-compatible name lister.
38115NM=$lt_NM
38116
38117# Whether we need soft or hard links.
38118LN_S=$lt_LN_S
38119
38120# What is the maximum length of a command?
38121max_cmd_len=$max_cmd_len
38122
38123# Object file suffix (normally "o").
38124objext=$ac_objext
38125
38126# Executable file suffix (normally "").
38127exeext=$exeext
38128
38129# whether the shell understands "unset".
38130lt_unset=$lt_unset
38131
38132# turn spaces into newlines.
38133SP2NL=$lt_lt_SP2NL
38134
38135# turn newlines into spaces.
38136NL2SP=$lt_lt_NL2SP
38137
cristyda16f162011-02-19 23:52:17 +000038138# convert \$build file names to \$host format.
38139to_host_file_cmd=$lt_cv_to_host_file_cmd
38140
38141# convert \$build files to toolchain format.
38142to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38143
cristy73bd4a52010-10-05 11:24:23 +000038144# Method to check whether dependent libraries are shared objects.
38145deplibs_check_method=$lt_deplibs_check_method
38146
cristyda16f162011-02-19 23:52:17 +000038147# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038148file_magic_cmd=$lt_file_magic_cmd
38149
cristyda16f162011-02-19 23:52:17 +000038150# How to find potential files when deplibs_check_method = "file_magic".
38151file_magic_glob=$lt_file_magic_glob
38152
38153# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38154want_nocaseglob=$lt_want_nocaseglob
38155
38156# Command to associate shared and link libraries.
38157sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38158
cristy73bd4a52010-10-05 11:24:23 +000038159# The archiver.
38160AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038161
38162# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038163AR_FLAGS=$lt_AR_FLAGS
38164
cristyda16f162011-02-19 23:52:17 +000038165# How to feed a file listing to the archiver.
38166archiver_list_spec=$lt_archiver_list_spec
38167
cristy73bd4a52010-10-05 11:24:23 +000038168# A symbol stripping program.
38169STRIP=$lt_STRIP
38170
38171# Commands used to install an old-style archive.
38172RANLIB=$lt_RANLIB
38173old_postinstall_cmds=$lt_old_postinstall_cmds
38174old_postuninstall_cmds=$lt_old_postuninstall_cmds
38175
cristy0c60a692010-11-04 01:09:47 +000038176# Whether to use a lock for old archive extraction.
38177lock_old_archive_extraction=$lock_old_archive_extraction
38178
cristy73bd4a52010-10-05 11:24:23 +000038179# A C compiler.
38180LTCC=$lt_CC
38181
38182# LTCC compiler flags.
38183LTCFLAGS=$lt_CFLAGS
38184
38185# Take the output of nm and produce a listing of raw symbols and C names.
38186global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38187
38188# Transform the output of nm in a proper C declaration.
38189global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38190
38191# Transform the output of nm in a C name address pair.
38192global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38193
38194# Transform the output of nm in a C name address pair when lib prefix is needed.
38195global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38196
cristyda16f162011-02-19 23:52:17 +000038197# Specify filename containing input files for \$NM.
38198nm_file_list_spec=$lt_nm_file_list_spec
38199
38200# The root where to search for dependent libraries,and in which our libraries should be installed.
38201lt_sysroot=$lt_sysroot
38202
cristy73bd4a52010-10-05 11:24:23 +000038203# The name of the directory that contains temporary libtool files.
38204objdir=$objdir
38205
cristy73bd4a52010-10-05 11:24:23 +000038206# Used to examine libraries when file_magic_cmd begins with "file".
38207MAGIC_CMD=$MAGIC_CMD
38208
38209# Must we lock files when doing compilation?
38210need_locks=$lt_need_locks
38211
cristyda16f162011-02-19 23:52:17 +000038212# Manifest tool.
38213MANIFEST_TOOL=$lt_MANIFEST_TOOL
38214
cristy73bd4a52010-10-05 11:24:23 +000038215# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38216DSYMUTIL=$lt_DSYMUTIL
38217
38218# Tool to change global to local symbols on Mac OS X.
38219NMEDIT=$lt_NMEDIT
38220
38221# Tool to manipulate fat objects and archives on Mac OS X.
38222LIPO=$lt_LIPO
38223
38224# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38225OTOOL=$lt_OTOOL
38226
38227# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38228OTOOL64=$lt_OTOOL64
38229
38230# Old archive suffix (normally "a").
38231libext=$libext
38232
38233# Shared library suffix (normally ".so").
38234shrext_cmds=$lt_shrext_cmds
38235
38236# The commands to extract the exported symbol list from a shared archive.
38237extract_expsyms_cmds=$lt_extract_expsyms_cmds
38238
38239# Variables whose values should be saved in libtool wrapper scripts and
38240# restored at link time.
38241variables_saved_for_relink=$lt_variables_saved_for_relink
38242
38243# Do we need the "lib" prefix for modules?
38244need_lib_prefix=$need_lib_prefix
38245
38246# Do we need a version for libraries?
38247need_version=$need_version
38248
38249# Library versioning type.
38250version_type=$version_type
38251
38252# Shared library runtime path variable.
38253runpath_var=$runpath_var
38254
38255# Shared library path variable.
38256shlibpath_var=$shlibpath_var
38257
38258# Is shlibpath searched before the hard-coded library search path?
38259shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38260
38261# Format of library name prefix.
38262libname_spec=$lt_libname_spec
38263
38264# List of archive names. First name is the real one, the rest are links.
38265# The last name is the one that the linker finds with -lNAME
38266library_names_spec=$lt_library_names_spec
38267
38268# The coded name of the library, if different from the real name.
38269soname_spec=$lt_soname_spec
38270
cristy0c60a692010-11-04 01:09:47 +000038271# Permission mode override for installation of shared libraries.
38272install_override_mode=$lt_install_override_mode
38273
cristy73bd4a52010-10-05 11:24:23 +000038274# Command to use after installation of a shared archive.
38275postinstall_cmds=$lt_postinstall_cmds
38276
38277# Command to use after uninstallation of a shared archive.
38278postuninstall_cmds=$lt_postuninstall_cmds
38279
38280# Commands used to finish a libtool library installation in a directory.
38281finish_cmds=$lt_finish_cmds
38282
38283# As "finish_cmds", except a single script fragment to be evaled but
38284# not shown.
38285finish_eval=$lt_finish_eval
38286
38287# Whether we should hardcode library paths into libraries.
38288hardcode_into_libs=$hardcode_into_libs
38289
38290# Compile-time system search path for libraries.
38291sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38292
38293# Run-time system search path for libraries.
38294sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38295
38296# Whether dlopen is supported.
38297dlopen_support=$enable_dlopen
38298
38299# Whether dlopen of programs is supported.
38300dlopen_self=$enable_dlopen_self
38301
38302# Whether dlopen of statically linked programs is supported.
38303dlopen_self_static=$enable_dlopen_self_static
38304
38305# Commands to strip libraries.
38306old_striplib=$lt_old_striplib
38307striplib=$lt_striplib
38308
38309
38310# The linker used to build libraries.
38311LD=$lt_LD
38312
cristy0c60a692010-11-04 01:09:47 +000038313# How to create reloadable object files.
38314reload_flag=$lt_reload_flag
38315reload_cmds=$lt_reload_cmds
38316
cristy73bd4a52010-10-05 11:24:23 +000038317# Commands used to build an old-style archive.
38318old_archive_cmds=$lt_old_archive_cmds
38319
38320# A language specific compiler.
38321CC=$lt_compiler
38322
38323# Is the compiler the GNU compiler?
38324with_gcc=$GCC
38325
38326# Compiler flag to turn off builtin functions.
38327no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38328
cristy73bd4a52010-10-05 11:24:23 +000038329# Additional compiler flags for building library objects.
38330pic_flag=$lt_lt_prog_compiler_pic
38331
cristyda16f162011-02-19 23:52:17 +000038332# How to pass a linker flag through the compiler.
38333wl=$lt_lt_prog_compiler_wl
38334
cristy73bd4a52010-10-05 11:24:23 +000038335# Compiler flag to prevent dynamic linking.
38336link_static_flag=$lt_lt_prog_compiler_static
38337
38338# Does compiler simultaneously support -c and -o options?
38339compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38340
38341# Whether or not to add -lc for building shared libraries.
38342build_libtool_need_lc=$archive_cmds_need_lc
38343
38344# Whether or not to disallow shared libs when runtime libs are static.
38345allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38346
38347# Compiler flag to allow reflexive dlopens.
38348export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38349
38350# Compiler flag to generate shared objects directly from archives.
38351whole_archive_flag_spec=$lt_whole_archive_flag_spec
38352
38353# Whether the compiler copes with passing no objects directly.
38354compiler_needs_object=$lt_compiler_needs_object
38355
38356# Create an old-style archive from a shared archive.
38357old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38358
38359# Create a temporary old-style archive to link instead of a shared archive.
38360old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38361
38362# Commands used to build a shared archive.
38363archive_cmds=$lt_archive_cmds
38364archive_expsym_cmds=$lt_archive_expsym_cmds
38365
38366# Commands used to build a loadable module if different from building
38367# a shared archive.
38368module_cmds=$lt_module_cmds
38369module_expsym_cmds=$lt_module_expsym_cmds
38370
38371# Whether we are building with GNU ld or not.
38372with_gnu_ld=$lt_with_gnu_ld
38373
38374# Flag that allows shared libraries with undefined symbols to be built.
38375allow_undefined_flag=$lt_allow_undefined_flag
38376
38377# Flag that enforces no undefined symbols.
38378no_undefined_flag=$lt_no_undefined_flag
38379
38380# Flag to hardcode \$libdir into a binary during linking.
38381# This must work even if \$libdir does not exist
38382hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38383
cristy73bd4a52010-10-05 11:24:23 +000038384# Whether we need a single "-rpath" flag with a separated argument.
38385hardcode_libdir_separator=$lt_hardcode_libdir_separator
38386
38387# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38388# DIR into the resulting binary.
38389hardcode_direct=$hardcode_direct
38390
38391# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38392# DIR into the resulting binary and the resulting library dependency is
38393# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38394# library is relocated.
38395hardcode_direct_absolute=$hardcode_direct_absolute
38396
38397# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38398# into the resulting binary.
38399hardcode_minus_L=$hardcode_minus_L
38400
38401# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38402# into the resulting binary.
38403hardcode_shlibpath_var=$hardcode_shlibpath_var
38404
38405# Set to "yes" if building a shared library automatically hardcodes DIR
38406# into the library and all subsequent libraries and executables linked
38407# against it.
38408hardcode_automatic=$hardcode_automatic
38409
38410# Set to yes if linker adds runtime paths of dependent libraries
38411# to runtime path list.
38412inherit_rpath=$inherit_rpath
38413
38414# Whether libtool must link a program against all its dependency libraries.
38415link_all_deplibs=$link_all_deplibs
38416
cristy73bd4a52010-10-05 11:24:23 +000038417# Set to "yes" if exported symbols are required.
38418always_export_symbols=$always_export_symbols
38419
38420# The commands to list exported symbols.
38421export_symbols_cmds=$lt_export_symbols_cmds
38422
38423# Symbols that should not be listed in the preloaded symbols.
38424exclude_expsyms=$lt_exclude_expsyms
38425
38426# Symbols that must always be exported.
38427include_expsyms=$lt_include_expsyms
38428
38429# Commands necessary for linking programs (against libraries) with templates.
38430prelink_cmds=$lt_prelink_cmds
38431
cristyda16f162011-02-19 23:52:17 +000038432# Commands necessary for finishing linking programs.
38433postlink_cmds=$lt_postlink_cmds
38434
cristy73bd4a52010-10-05 11:24:23 +000038435# Specify filename containing input files.
38436file_list_spec=$lt_file_list_spec
38437
38438# How to hardcode a shared library path into an executable.
38439hardcode_action=$hardcode_action
38440
38441# The directories searched by this compiler when creating a shared library.
38442compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38443
38444# Dependencies to place before and after the objects being linked to
38445# create a shared library.
38446predep_objects=$lt_predep_objects
38447postdep_objects=$lt_postdep_objects
38448predeps=$lt_predeps
38449postdeps=$lt_postdeps
38450
38451# The library search path used internally by the compiler when linking
38452# a shared library.
38453compiler_lib_search_path=$lt_compiler_lib_search_path
38454
38455# ### END LIBTOOL CONFIG
38456
38457_LT_EOF
38458
38459 case $host_os in
38460 aix3*)
38461 cat <<\_LT_EOF >> "$cfgfile"
38462# AIX sometimes has problems with the GCC collect2 program. For some
38463# reason, if we set the COLLECT_NAMES environment variable, the problems
38464# vanish in a puff of smoke.
38465if test "X${COLLECT_NAMES+set}" != Xset; then
38466 COLLECT_NAMES=
38467 export COLLECT_NAMES
38468fi
38469_LT_EOF
38470 ;;
38471 esac
38472
38473
38474ltmain="$ac_aux_dir/ltmain.sh"
38475
38476
38477 # We use sed instead of cat because bash on DJGPP gets confused if
38478 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38479 # text mode, it properly converts lines to CR/LF. This bash problem
38480 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038481 sed '$q' "$ltmain" >> "$cfgfile" \
38482 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038483
cristyda16f162011-02-19 23:52:17 +000038484 if test x"$xsi_shell" = xyes; then
38485 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38486func_dirname ()\
38487{\
38488\ case ${1} in\
38489\ */*) func_dirname_result="${1%/*}${2}" ;;\
38490\ * ) func_dirname_result="${3}" ;;\
38491\ esac\
38492} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38493 && mv -f "$cfgfile.tmp" "$cfgfile" \
38494 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38495test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038496
38497
cristyda16f162011-02-19 23:52:17 +000038498 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38499func_basename ()\
38500{\
38501\ func_basename_result="${1##*/}"\
38502} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38503 && mv -f "$cfgfile.tmp" "$cfgfile" \
38504 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38505test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038506
38507
cristyda16f162011-02-19 23:52:17 +000038508 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38509func_dirname_and_basename ()\
38510{\
38511\ case ${1} in\
38512\ */*) func_dirname_result="${1%/*}${2}" ;;\
38513\ * ) func_dirname_result="${3}" ;;\
38514\ esac\
38515\ func_basename_result="${1##*/}"\
38516} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38517 && mv -f "$cfgfile.tmp" "$cfgfile" \
38518 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38519test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038520
cristyda16f162011-02-19 23:52:17 +000038521
38522 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38523func_stripname ()\
38524{\
38525\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38526\ # positional parameters, so assign one to ordinary parameter first.\
38527\ func_stripname_result=${3}\
38528\ func_stripname_result=${func_stripname_result#"${1}"}\
38529\ func_stripname_result=${func_stripname_result%"${2}"}\
38530} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38531 && mv -f "$cfgfile.tmp" "$cfgfile" \
38532 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38533test 0 -eq $? || _lt_function_replace_fail=:
38534
38535
38536 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38537func_split_long_opt ()\
38538{\
38539\ func_split_long_opt_name=${1%%=*}\
38540\ func_split_long_opt_arg=${1#*=}\
38541} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38542 && mv -f "$cfgfile.tmp" "$cfgfile" \
38543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38544test 0 -eq $? || _lt_function_replace_fail=:
38545
38546
38547 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38548func_split_short_opt ()\
38549{\
38550\ func_split_short_opt_arg=${1#??}\
38551\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38552} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38553 && mv -f "$cfgfile.tmp" "$cfgfile" \
38554 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38555test 0 -eq $? || _lt_function_replace_fail=:
38556
38557
38558 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38559func_lo2o ()\
38560{\
38561\ case ${1} in\
38562\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38563\ *) func_lo2o_result=${1} ;;\
38564\ esac\
38565} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38566 && mv -f "$cfgfile.tmp" "$cfgfile" \
38567 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38568test 0 -eq $? || _lt_function_replace_fail=:
38569
38570
38571 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38572func_xform ()\
38573{\
38574 func_xform_result=${1%.*}.lo\
38575} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38576 && mv -f "$cfgfile.tmp" "$cfgfile" \
38577 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38578test 0 -eq $? || _lt_function_replace_fail=:
38579
38580
38581 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38582func_arith ()\
38583{\
38584 func_arith_result=$(( $* ))\
38585} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38586 && mv -f "$cfgfile.tmp" "$cfgfile" \
38587 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38588test 0 -eq $? || _lt_function_replace_fail=:
38589
38590
38591 sed -e '/^func_len ()$/,/^} # func_len /c\
38592func_len ()\
38593{\
38594 func_len_result=${#1}\
38595} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38596 && mv -f "$cfgfile.tmp" "$cfgfile" \
38597 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38598test 0 -eq $? || _lt_function_replace_fail=:
38599
38600fi
38601
38602if test x"$lt_shell_append" = xyes; then
38603 sed -e '/^func_append ()$/,/^} # func_append /c\
38604func_append ()\
38605{\
38606 eval "${1}+=\\${2}"\
38607} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38608 && mv -f "$cfgfile.tmp" "$cfgfile" \
38609 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38610test 0 -eq $? || _lt_function_replace_fail=:
38611
38612
38613 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38614func_append_quoted ()\
38615{\
38616\ func_quote_for_eval "${2}"\
38617\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38618} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38619 && mv -f "$cfgfile.tmp" "$cfgfile" \
38620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38621test 0 -eq $? || _lt_function_replace_fail=:
38622
38623
38624 # Save a `func_append' function call where possible by direct use of '+='
38625 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38626 && mv -f "$cfgfile.tmp" "$cfgfile" \
38627 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38628 test 0 -eq $? || _lt_function_replace_fail=:
38629else
38630 # Save a `func_append' function call even when '+=' is not available
38631 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38632 && mv -f "$cfgfile.tmp" "$cfgfile" \
38633 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38634 test 0 -eq $? || _lt_function_replace_fail=:
38635fi
38636
38637if test x"$_lt_function_replace_fail" = x":"; then
38638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38639$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38640fi
38641
38642
38643 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038644 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38645 chmod +x "$ofile"
38646
38647
38648 cat <<_LT_EOF >> "$ofile"
38649
38650# ### BEGIN LIBTOOL TAG CONFIG: CXX
38651
38652# The linker used to build libraries.
38653LD=$lt_LD_CXX
38654
cristy0c60a692010-11-04 01:09:47 +000038655# How to create reloadable object files.
38656reload_flag=$lt_reload_flag_CXX
38657reload_cmds=$lt_reload_cmds_CXX
38658
cristy73bd4a52010-10-05 11:24:23 +000038659# Commands used to build an old-style archive.
38660old_archive_cmds=$lt_old_archive_cmds_CXX
38661
38662# A language specific compiler.
38663CC=$lt_compiler_CXX
38664
38665# Is the compiler the GNU compiler?
38666with_gcc=$GCC_CXX
38667
38668# Compiler flag to turn off builtin functions.
38669no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38670
cristy73bd4a52010-10-05 11:24:23 +000038671# Additional compiler flags for building library objects.
38672pic_flag=$lt_lt_prog_compiler_pic_CXX
38673
cristyda16f162011-02-19 23:52:17 +000038674# How to pass a linker flag through the compiler.
38675wl=$lt_lt_prog_compiler_wl_CXX
38676
cristy73bd4a52010-10-05 11:24:23 +000038677# Compiler flag to prevent dynamic linking.
38678link_static_flag=$lt_lt_prog_compiler_static_CXX
38679
38680# Does compiler simultaneously support -c and -o options?
38681compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38682
38683# Whether or not to add -lc for building shared libraries.
38684build_libtool_need_lc=$archive_cmds_need_lc_CXX
38685
38686# Whether or not to disallow shared libs when runtime libs are static.
38687allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38688
38689# Compiler flag to allow reflexive dlopens.
38690export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38691
38692# Compiler flag to generate shared objects directly from archives.
38693whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38694
38695# Whether the compiler copes with passing no objects directly.
38696compiler_needs_object=$lt_compiler_needs_object_CXX
38697
38698# Create an old-style archive from a shared archive.
38699old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38700
38701# Create a temporary old-style archive to link instead of a shared archive.
38702old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38703
38704# Commands used to build a shared archive.
38705archive_cmds=$lt_archive_cmds_CXX
38706archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38707
38708# Commands used to build a loadable module if different from building
38709# a shared archive.
38710module_cmds=$lt_module_cmds_CXX
38711module_expsym_cmds=$lt_module_expsym_cmds_CXX
38712
38713# Whether we are building with GNU ld or not.
38714with_gnu_ld=$lt_with_gnu_ld_CXX
38715
38716# Flag that allows shared libraries with undefined symbols to be built.
38717allow_undefined_flag=$lt_allow_undefined_flag_CXX
38718
38719# Flag that enforces no undefined symbols.
38720no_undefined_flag=$lt_no_undefined_flag_CXX
38721
38722# Flag to hardcode \$libdir into a binary during linking.
38723# This must work even if \$libdir does not exist
38724hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38725
cristy73bd4a52010-10-05 11:24:23 +000038726# Whether we need a single "-rpath" flag with a separated argument.
38727hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38728
38729# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38730# DIR into the resulting binary.
38731hardcode_direct=$hardcode_direct_CXX
38732
38733# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38734# DIR into the resulting binary and the resulting library dependency is
38735# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38736# library is relocated.
38737hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38738
38739# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38740# into the resulting binary.
38741hardcode_minus_L=$hardcode_minus_L_CXX
38742
38743# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38744# into the resulting binary.
38745hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38746
38747# Set to "yes" if building a shared library automatically hardcodes DIR
38748# into the library and all subsequent libraries and executables linked
38749# against it.
38750hardcode_automatic=$hardcode_automatic_CXX
38751
38752# Set to yes if linker adds runtime paths of dependent libraries
38753# to runtime path list.
38754inherit_rpath=$inherit_rpath_CXX
38755
38756# Whether libtool must link a program against all its dependency libraries.
38757link_all_deplibs=$link_all_deplibs_CXX
38758
cristy73bd4a52010-10-05 11:24:23 +000038759# Set to "yes" if exported symbols are required.
38760always_export_symbols=$always_export_symbols_CXX
38761
38762# The commands to list exported symbols.
38763export_symbols_cmds=$lt_export_symbols_cmds_CXX
38764
38765# Symbols that should not be listed in the preloaded symbols.
38766exclude_expsyms=$lt_exclude_expsyms_CXX
38767
38768# Symbols that must always be exported.
38769include_expsyms=$lt_include_expsyms_CXX
38770
38771# Commands necessary for linking programs (against libraries) with templates.
38772prelink_cmds=$lt_prelink_cmds_CXX
38773
cristyda16f162011-02-19 23:52:17 +000038774# Commands necessary for finishing linking programs.
38775postlink_cmds=$lt_postlink_cmds_CXX
38776
cristy73bd4a52010-10-05 11:24:23 +000038777# Specify filename containing input files.
38778file_list_spec=$lt_file_list_spec_CXX
38779
38780# How to hardcode a shared library path into an executable.
38781hardcode_action=$hardcode_action_CXX
38782
38783# The directories searched by this compiler when creating a shared library.
38784compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38785
38786# Dependencies to place before and after the objects being linked to
38787# create a shared library.
38788predep_objects=$lt_predep_objects_CXX
38789postdep_objects=$lt_postdep_objects_CXX
38790predeps=$lt_predeps_CXX
38791postdeps=$lt_postdeps_CXX
38792
38793# The library search path used internally by the compiler when linking
38794# a shared library.
38795compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38796
38797# ### END LIBTOOL TAG CONFIG: CXX
38798_LT_EOF
38799
38800 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038801 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038802 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038803 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038804 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38805 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38806
38807 esac
38808done # for ac_tag
38809
38810
cristy8b350f62009-11-15 23:12:43 +000038811as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038812_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038813ac_clean_files=$ac_clean_files_save
38814
38815test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038816 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038817
38818
38819# configure is writing to config.log, and then calls config.status.
38820# config.status does its own redirection, appending to config.log.
38821# Unfortunately, on DOS this fails, as config.log is still kept open
38822# by configure, so config.status won't be able to write to it; its
38823# output is simply discarded. So we exec the FD to /dev/null,
38824# effectively closing config.log, so it can be properly (re)opened and
38825# appended to by config.status. When coming back to configure, we
38826# need to make the FD available again.
38827if test "$no_create" != yes; then
38828 ac_cs_success=:
38829 ac_config_status_args=
38830 test "$silent" = yes &&
38831 ac_config_status_args="$ac_config_status_args --quiet"
38832 exec 5>/dev/null
38833 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38834 exec 5>>config.log
38835 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38836 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038837 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038838fi
38839if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038841$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38842fi
38843
38844
38845rm -f magick-version
38846
cristy430a7312010-01-21 20:44:04 +000038847result_dejavu_font_dir='none'
38848if test "${dejavu_font_dir}x" != 'x'; then
38849 result_dejavu_font_dir=$dejavu_font_dir
38850fi
38851
cristy3ed852e2009-09-05 21:47:34 +000038852result_ghostscript_font_dir='none'
38853if test "${ghostscript_font_dir}x" != 'x'; then
38854 result_ghostscript_font_dir=$ghostscript_font_dir
38855fi
38856
38857result_windows_font_dir='none'
38858if test "${windows_font_dir}x" != 'x'; then
38859 result_windows_font_dir=${windows_font_dir}
38860fi
38861
cristy09b53e12011-10-14 12:47:22 +000038862{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038863ImageMagick is configured as follows. Please verify that this configuration
38864matches your expectations.
38865
38866Host system type: $host
38867Build system type: $build
38868
38869 Option Value
38870-------------------------------------------------------------------------------
38871Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38872Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038873Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038874GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38875Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38876High Dynamic Range Imagery
38877 --enable-hdri=$enable_hdri $enable_hdri
38878
38879Delegate Configuration:
38880BZLIB --with-bzlib=$with_bzlib $have_bzlib
38881Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038882Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038883DJVU --with-djvu=$with_djvu $have_djvu
38884DPS --with-dps=$with_dps $have_dps
38885FFTW --with-fftw=$with_fftw $have_fftw
38886FlashPIX --with-fpx=$with_fpx $have_fpx
38887FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38888FreeType --with-freetype=$with_freetype $have_freetype
38889GhostPCL None $PCLDelegate ($PCLVersion)
38890GhostXPS None $XPSDelegate ($XPSVersion)
38891Ghostscript None $PSDelegate ($GSVersion)
38892Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38893Ghostscript lib --with-gslib=$with_gslib $have_gslib
38894Graphviz --with-gvc=$with_gvc $have_gvc
38895JBIG --with-jbig=$with_jbig $have_jbig
38896JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38897JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038898LCMS v1 --with-lcms=$with_lcms $have_lcms
38899LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038900LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038901LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038902Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38903OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038904PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038905PERL --with-perl=$with_perl $have_perl
38906PNG --with-png=$with_png $have_png
38907RSVG --with-rsvg=$with_rsvg $have_rsvg
38908TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038909WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038910Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38911WMF --with-wmf=$with_wmf $have_wmf
38912X11 --with-x=$with_x $have_x
38913XML --with-xml=$with_xml $have_xml
38914ZLIB --with-zlib=$with_zlib $have_zlib
38915
38916X11 Configuration:
38917 X_CFLAGS = $X_CFLAGS
38918 X_PRE_LIBS = $X_PRE_LIBS
38919 X_LIBS = $X_LIBS
38920 X_EXTRA_LIBS = $X_EXTRA_LIBS
38921
38922Options used to compile and link:
38923 PREFIX = $PREFIX_DIR
38924 EXEC-PREFIX = $EXEC_PREFIX_DIR
38925 VERSION = $PACKAGE_VERSION
38926 CC = $CC
38927 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038928 CPPFLAGS = $MAGICK_CPPFLAGS
38929 PCFLAGS = $MAGICK_PCFLAGS
38930 DEFS = $DEFS
38931 LDFLAGS = $LDFLAGS
38932 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38933 LIBS = $MAGICK_LIBS
38934 CXX = $CXX
38935 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038936 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038937" >&5
cristy09b53e12011-10-14 12:47:22 +000038938$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038939ImageMagick is configured as follows. Please verify that this configuration
38940matches your expectations.
38941
38942Host system type: $host
38943Build system type: $build
38944
38945 Option Value
38946-------------------------------------------------------------------------------
38947Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38948Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038949Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038950GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38951Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38952High Dynamic Range Imagery
38953 --enable-hdri=$enable_hdri $enable_hdri
38954
38955Delegate Configuration:
38956BZLIB --with-bzlib=$with_bzlib $have_bzlib
38957Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038958Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038959DJVU --with-djvu=$with_djvu $have_djvu
38960DPS --with-dps=$with_dps $have_dps
38961FFTW --with-fftw=$with_fftw $have_fftw
38962FlashPIX --with-fpx=$with_fpx $have_fpx
38963FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38964FreeType --with-freetype=$with_freetype $have_freetype
38965GhostPCL None $PCLDelegate ($PCLVersion)
38966GhostXPS None $XPSDelegate ($XPSVersion)
38967Ghostscript None $PSDelegate ($GSVersion)
38968Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38969Ghostscript lib --with-gslib=$with_gslib $have_gslib
38970Graphviz --with-gvc=$with_gvc $have_gvc
38971JBIG --with-jbig=$with_jbig $have_jbig
38972JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38973JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038974LCMS v1 --with-lcms=$with_lcms $have_lcms
38975LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038976LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038977LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038978Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38979OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038980PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038981PERL --with-perl=$with_perl $have_perl
38982PNG --with-png=$with_png $have_png
38983RSVG --with-rsvg=$with_rsvg $have_rsvg
38984TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038985WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038986Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38987WMF --with-wmf=$with_wmf $have_wmf
38988X11 --with-x=$with_x $have_x
38989XML --with-xml=$with_xml $have_xml
38990ZLIB --with-zlib=$with_zlib $have_zlib
38991
38992X11 Configuration:
38993 X_CFLAGS = $X_CFLAGS
38994 X_PRE_LIBS = $X_PRE_LIBS
38995 X_LIBS = $X_LIBS
38996 X_EXTRA_LIBS = $X_EXTRA_LIBS
38997
38998Options used to compile and link:
38999 PREFIX = $PREFIX_DIR
39000 EXEC-PREFIX = $EXEC_PREFIX_DIR
39001 VERSION = $PACKAGE_VERSION
39002 CC = $CC
39003 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039004 CPPFLAGS = $MAGICK_CPPFLAGS
39005 PCFLAGS = $MAGICK_PCFLAGS
39006 DEFS = $DEFS
39007 LDFLAGS = $LDFLAGS
39008 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39009 LIBS = $MAGICK_LIBS
39010 CXX = $CXX
39011 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039012 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000039013" >&6;}