blob: 441cfa4685bb5e90583b06c996f3e9e978ad465b [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
cristyc6722092012-10-14 00:19:31 +00003672MAGICK_SVN_REVISION=9602:9608M
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,)
cristy6aa65bb2012-10-11 13:30:38 +000021554 if test -f $prefix/lib/libltdl.la; then
21555 lt_save_LDFLAGS="$LDFLAGS"
21556 LDFLAGS="-L$prefix/lib $LDFLAGS"
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
21558$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
21559if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
21560 $as_echo_n "(cached) " >&6
21561else
21562 ac_check_lib_save_LIBS=$LIBS
21563LIBS="-lltdl $LIBS"
21564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21565/* end confdefs.h. */
21566
21567/* Override any GCC internal prototype to avoid an error.
21568 Use char because int might match the return type of a GCC
21569 builtin and then its argument prototype would still apply. */
21570#ifdef __cplusplus
21571extern "C"
21572#endif
21573char lt_dlinit ();
21574int
21575main ()
21576{
21577return lt_dlinit ();
21578 ;
21579 return 0;
21580}
21581_ACEOF
21582if ac_fn_c_try_link "$LINENO"; then :
21583 ac_cv_lib_ltdl_lt_dlinit=yes
21584else
21585 ac_cv_lib_ltdl_lt_dlinit=no
21586fi
21587rm -f core conftest.err conftest.$ac_objext \
21588 conftest$ac_exeext conftest.$ac_ext
21589LIBS=$ac_check_lib_save_LIBS
21590fi
21591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
21592$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
21593if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
21594 lt_lib_ltdl=yes
21595fi
21596
21597 LDFLAGS="$lt_save_LDFLAGS"
21598 if test x"${lt_lib_ltdl-no}" = xyes; then
21599 if test x"$enable_ltdl_install" != xyes; then
21600 # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not overwriting libltdl at $prefix, force with \`--enable-ltdl-install'" >&5
21602$as_echo "$as_me: WARNING: not overwriting libltdl at $prefix, force with \`--enable-ltdl-install'" >&2;}
21603 enable_ltdl_install=no
21604 fi
21605 elif test x"$enable_ltdl_install" = xno; then
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5
21607$as_echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
21608 fi
21609fi
21610
21611# If configure.ac declared an installable ltdl, and the user didn't override
21612# with --disable-ltdl-install, we will install the shipped libltdl.
21613case $enable_ltdl_install in
21614 no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
21615 LIBLTDL="-lltdl"
21616 LTDLDEPS=
21617 LTDLINCL=
21618 ;;
21619 *) enable_ltdl_install=yes
21620 ac_configure_args="$ac_configure_args --enable-ltdl-install"
21621 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la"
21622 LTDLDEPS=$LIBLTDL
21623 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21624 ;;
cristy73bd4a52010-10-05 11:24:23 +000021625esac
cristy73bd4a52010-10-05 11:24:23 +000021626
21627
21628
21629
21630
21631# For backwards non-gettext consistent compatibility...
21632INCLTDL="$LTDLINCL"
21633
21634
21635 ;;
21636 ,no,no,no,)
21637 # If the included ltdl is not to be used, then use the
21638 # preinstalled libltdl we found.
21639
21640$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21641
21642 LIBLTDL=-lltdl
21643 LTDLDEPS=
21644 LTDLINCL=
21645 ;;
21646 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021647 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021648 ;;
21649 *) with_included_ltdl=no
21650 LIBLTDL="-L$with_ltdl_lib -lltdl"
21651 LTDLDEPS=
21652 LTDLINCL="-I$with_ltdl_include"
21653 ;;
21654esac
21655INCLTDL="$LTDLINCL"
21656
21657# Report our decision...
21658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21659$as_echo_n "checking where to find libltdl headers... " >&6; }
21660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21661$as_echo "$LTDLINCL" >&6; }
21662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21663$as_echo_n "checking where to find libltdl library... " >&6; }
21664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21665$as_echo "$LIBLTDL" >&6; }
21666
21667
21668
21669# Check whether --enable-ltdl-install was given.
21670if test "${enable_ltdl_install+set}" = set; then :
21671 enableval=$enable_ltdl_install;
21672fi
21673
21674
21675case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21676 *yes*) ;;
21677 *) enable_ltdl_convenience=yes ;;
21678esac
21679
21680 if test x"${enable_ltdl_install-no}" != xno; then
21681 INSTALL_LTDL_TRUE=
21682 INSTALL_LTDL_FALSE='#'
21683else
21684 INSTALL_LTDL_TRUE='#'
21685 INSTALL_LTDL_FALSE=
21686fi
21687
21688 if test x"${enable_ltdl_convenience-no}" != xno; then
21689 CONVENIENCE_LTDL_TRUE=
21690 CONVENIENCE_LTDL_FALSE='#'
21691else
21692 CONVENIENCE_LTDL_TRUE='#'
21693 CONVENIENCE_LTDL_FALSE=
21694fi
21695
21696
21697
21698
21699
21700
cristy73bd4a52010-10-05 11:24:23 +000021701# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21702# the user used. This is so that ltdl.h can pick up the parent projects
21703# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21704# definitions required by ltdl.c.
21705# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21706
21707
21708
21709for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21710do :
21711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21712ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21713"
cristy98dddb52010-11-04 00:30:15 +000021714if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021715 cat >>confdefs.h <<_ACEOF
21716#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21717_ACEOF
21718
21719fi
21720
21721done
21722
21723
21724for ac_func in closedir opendir readdir
21725do :
21726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21727ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021728if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021729 cat >>confdefs.h <<_ACEOF
21730#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21731_ACEOF
21732
21733else
21734
21735
21736 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21737
21738fi
21739done
21740
21741for ac_func in strlcat strlcpy
21742do :
21743 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21744ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021745if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021746 cat >>confdefs.h <<_ACEOF
21747#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21748_ACEOF
21749
21750else
21751
21752
21753 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21754
21755fi
21756done
21757
21758
21759
21760cat >>confdefs.h <<_ACEOF
21761#define LT_LIBEXT "$libext"
21762_ACEOF
21763
21764
cristyda16f162011-02-19 23:52:17 +000021765name=
21766eval "lt_libprefix=\"$libname_spec\""
21767
21768cat >>confdefs.h <<_ACEOF
21769#define LT_LIBPREFIX "$lt_libprefix"
21770_ACEOF
21771
21772
cristy73bd4a52010-10-05 11:24:23 +000021773name=ltdl
cristyda16f162011-02-19 23:52:17 +000021774eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021775
21776
21777
21778
21779
21780
21781
21782
21783# Only expand once:
21784
21785
cristy3ed852e2009-09-05 21:47:34 +000021786
21787# Check to see if building shared libraries
21788libtool_build_shared_libs='no'
21789if test "$enable_shared" = 'yes'; then
21790 libtool_build_shared_libs='yes'
21791fi
21792
21793# Check to see if building static libraries
21794libtool_build_static_libs='no'
21795if test "$enable_static" = 'yes'; then
21796 libtool_build_static_libs='yes'
21797fi
21798
cristy73bd4a52010-10-05 11:24:23 +000021799 if test "${libtool_build_shared_libs}" = 'yes'; then
21800 WITH_SHARED_LIBS_TRUE=
21801 WITH_SHARED_LIBS_FALSE='#'
21802else
21803 WITH_SHARED_LIBS_TRUE='#'
21804 WITH_SHARED_LIBS_FALSE=
21805fi
21806
cristy3ed852e2009-09-05 21:47:34 +000021807#
21808# Enable support for building loadable modules
21809#
21810
21811# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021812if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021813 withval=$with_modules; with_modules=$withval
21814else
cristy5a1cefd2010-01-06 20:42:35 +000021815 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021816fi
21817
21818
21819# Only allow building loadable modules if we are building shared libraries
21820if test "$with_modules" != 'no' ; then
21821 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021822 { $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 +000021823$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021824 build_modules='no'
21825 else
21826 build_modules='yes'
21827 fi
cristy3ed852e2009-09-05 21:47:34 +000021828fi
cristyc6722092012-10-14 00:19:31 +000021829if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021830
cristy8b350f62009-11-15 23:12:43 +000021831$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021832
21833fi
cristyc6722092012-10-14 00:19:31 +000021834 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021835 WITH_MODULES_TRUE=
21836 WITH_MODULES_FALSE='#'
21837else
21838 WITH_MODULES_TRUE='#'
21839 WITH_MODULES_FALSE=
21840fi
21841
cristy3ed852e2009-09-05 21:47:34 +000021842
cristyc6722092012-10-14 00:19:31 +000021843# Only use/depend on libtdl if we are building modules.
cristy3ed852e2009-09-05 21:47:34 +000021844with_ltdl='no'
cristyc6722092012-10-14 00:19:31 +000021845if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021846 with_ltdl='yes'
21847fi
21848
cristy73bd4a52010-10-05 11:24:23 +000021849 if test "$with_ltdl" != 'no'; then
21850 WITH_LTDL_TRUE=
21851 WITH_LTDL_FALSE='#'
21852else
21853 WITH_LTDL_TRUE='#'
21854 WITH_LTDL_FALSE=
21855fi
21856
cristy3ed852e2009-09-05 21:47:34 +000021857if test "$with_ltdl" != 'no'; then
21858
cristy8b350f62009-11-15 23:12:43 +000021859$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021860
cristy3ed852e2009-09-05 21:47:34 +000021861fi
21862
21863# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021864# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021865# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021866if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021867 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21868else
21869 enable_delegate_build='no'
21870fi
21871
21872
21873# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021874if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021875 enableval=$enable_deprecated; enable_deprecated=$enableval
21876else
21877 enable_deprecated='no'
21878fi
21879
21880
21881if test "$enable_deprecated" = 'yes'; then
21882
cristy8b350f62009-11-15 23:12:43 +000021883$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021884
21885else
21886 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21887fi
21888
21889# Build a version of ImageMagick which operates uninstalled.
21890# Used to build distributions located via MAGICK_HOME / executable path
21891# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021892if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021893 enableval=$enable_installed; enable_installed=$enableval
21894else
21895 enable_installed='yes'
21896fi
21897
21898
21899if test "$enable_installed" = 'yes'; then
21900
cristy8b350f62009-11-15 23:12:43 +000021901$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021902
21903else
21904 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21905fi
21906
21907# Permit enciphering and deciphering image pixels.
21908# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021909if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021910 enableval=$enable_cipher; enable_cipher=$enableval
21911else
21912 enable_cipher='yes'
21913fi
21914
21915
21916if test "$enable_cipher" = 'yes'; then
21917
cristy8b350f62009-11-15 23:12:43 +000021918$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021919
21920fi
21921
cristy6e3607c2011-09-13 13:59:17 +000021922# Build a zero-configuration version of ImageMagick.
21923# Check whether --enable-zero-configuration was given.
21924if test "${enable_zero_configuration+set}" = set; then :
21925 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021926else
cristy6e3607c2011-09-13 13:59:17 +000021927 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021928fi
21929
21930
cristy6e3607c2011-09-13 13:59:17 +000021931if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021932
cristy6e3607c2011-09-13 13:59:17 +000021933$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021934
cristy81af5702011-09-13 14:20:58 +000021935 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021936fi
21937
21938# Build a high dynamic range version of ImageMagick.
21939# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021940if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021941 enableval=$enable_hdri; enable_hdri=$enableval
21942else
cristy191c0b72012-08-12 16:29:52 +000021943 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021944fi
21945
21946
21947MAGICK_HDRI=""
21948if test "$enable_hdri" = 'yes'; then
21949 MAGICK_HDRI="HDRI"
21950
cristy8b350f62009-11-15 23:12:43 +000021951$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021952
cristyfd9dcd42010-08-08 18:07:02 +000021953 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021954fi
21955
cristy3ed852e2009-09-05 21:47:34 +000021956# Build a version of ImageMagick with assert statements.
21957# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021958if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021959 enableval=$enable_assert; enable_assert=$enableval
21960else
21961 enable_assert='yes'
21962fi
21963
21964
21965if test "$enable_assert" = 'no'; then
21966
cristy8b350f62009-11-15 23:12:43 +000021967$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021968
21969fi
21970
cristya448bd22011-10-14 12:38:13 +000021971# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021972
21973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21974$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21975 # Check whether --enable-maintainer-mode was given.
21976if test "${enable_maintainer_mode+set}" = set; then :
21977 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21978else
21979 USE_MAINTAINER_MODE=no
21980fi
21981
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21983$as_echo "$USE_MAINTAINER_MODE" >&6; }
21984 if test $USE_MAINTAINER_MODE = yes; then
21985 MAINTAINER_MODE_TRUE=
21986 MAINTAINER_MODE_FALSE='#'
21987else
21988 MAINTAINER_MODE_TRUE='#'
21989 MAINTAINER_MODE_FALSE=
21990fi
21991
21992 MAINT=$MAINTAINER_MODE_TRUE
21993
21994
cristy3ed852e2009-09-05 21:47:34 +000021995
cristy3ed852e2009-09-05 21:47:34 +000021996# Enable ccmalloc memory debugging support
21997# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021998if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021999 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
22000else
22001 enable_ccmalloc='no'
22002fi
22003
22004
22005# Enable Electric Fence memory debugging support
22006# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000022007if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022008 enableval=$enable_efence; enable_efence=$enableval
22009else
22010 enable_efence='no'
22011fi
22012
22013
22014# Enable prof-based profiling support
22015# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000022016if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022017 enableval=$enable_prof; enable_prof=$enableval
22018else
22019 enable_prof='no'
22020fi
22021
22022
22023# Enable gprof-based profiling support
22024# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000022025if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022026 enableval=$enable_gprof; enable_gprof=$enableval
22027else
22028 enable_gprof='no'
22029fi
22030
22031
22032# Enable gcov-based profiling support
22033# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000022034if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022035 enableval=$enable_gcov; enable_gcov=$enableval
22036else
22037 enable_gcov='no'
22038fi
22039
22040
22041enable_profiling='no'
22042if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
22043 enable_profiling='yes'
22044 if test "$libtool_build_shared_libs" = 'yes'; then
22045 echo "Warning: Can not profile code using shared libraries"
22046 fi
22047fi
22048
22049# Magick API method prefix
22050
22051# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000022052if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000022053 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000022054else
cristyfc3d0222012-02-07 15:05:57 +000022055 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000022056fi
22057
22058
cristyfc3d0222012-02-07 15:05:57 +000022059if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000022060
22061cat >>confdefs.h <<_ACEOF
22062#define NAMESPACE_PREFIX $with_method_prefix
22063_ACEOF
22064
cristyfc3d0222012-02-07 15:05:57 +000022065 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000022066fi
22067
cristy71d8c202012-03-20 17:05:01 +000022068# Enable legacy support (default no)
22069# Check whether --enable-legacy-support was given.
22070if test "${enable_legacy_support+set}" = set; then :
22071 enableval=$enable_legacy_support; with_legacy_support=$enableval
22072else
22073 with_legacy_support='no'
22074fi
22075
22076 if test "$with_legacy_support" != 'no'; then
22077 LEGACY_SUPPORT_TRUE=
22078 LEGACY_SUPPORT_FALSE='#'
22079else
22080 LEGACY_SUPPORT_TRUE='#'
22081 LEGACY_SUPPORT_FALSE=
22082fi
22083
22084
cristy3ed852e2009-09-05 21:47:34 +000022085# Number of bits in a Quantum
22086
22087# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000022088if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022089 withval=$with_quantum_depth; with_quantum_depth=$withval
22090else
22091 with_quantum_depth=16
22092fi
22093
22094
22095if test "$with_quantum_depth" != '8'; then
22096 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22097fi
22098
22099case "${with_quantum_depth}" in
22100 8 ) ;;
22101 16 ) ;;
22102 32 ) ;;
22103 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000022104 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022105esac
22106QUANTUM_DEPTH="$with_quantum_depth"
22107
22108cat >>confdefs.h <<_ACEOF
22109#define QUANTUM_DEPTH $QUANTUM_DEPTH
22110_ACEOF
22111
22112
22113# Set pixel cache threshold
22114
22115# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000022116if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022117 withval=$with_cache; with_cache=$withval
22118else
22119 with_cache=''
22120fi
22121
22122
22123if test "$with_cache" != ''; then
22124
22125cat >>confdefs.h <<_ACEOF
22126#define PixelCacheThreshold $with_cache
22127_ACEOF
22128
22129 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
22130fi
22131
22132# Disable/Enable support for full delegate paths
22133
22134# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000022135if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022136 withval=$with_frozenpaths; with_frozenpaths=$withval
22137else
22138 with_frozenpaths='no'
22139fi
22140
22141
22142# Enable build/install of Magick++
22143
22144# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000022145if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022146 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22147else
22148 with_magick_plus_plus='yes'
22149fi
22150
22151
cristy3a75f062012-09-08 23:29:40 +000022152# Encode the this name into the shared library.
22153
22154# Check whether --with-package-release-name was given.
22155if test "${with_package_release_name+set}" = set; then :
22156 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
22157fi
22158
22159
22160
cristy3ed852e2009-09-05 21:47:34 +000022161# Disable build/install of PerlMagick.
22162
22163# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000022164if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022165 withval=$with_perl; with_perl=$withval
22166else
cristyb5f4e2f2010-04-25 00:49:11 +000022167 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000022168fi
22169
22170
22171# Options to pass when configuring PerlMagick
22172
22173# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022174if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022175 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022176fi
22177
22178
cristy3ed852e2009-09-05 21:47:34 +000022179
22180# Enable umem, object-caching memory allocation library.
22181
22182# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022183if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022184 withval=$with_umem; with_umem=$withval
22185else
22186 with_umem='no'
22187fi
22188
22189if test "$with_umem" != 'yes' ; then
22190 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22191fi
22192
22193#
22194# Specify path to shared libstdc++ if not in normal location
22195#
22196
22197# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022198if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022199 withval=$with_libstdc; with_libstdc=$withval
22200else
22201 with_libstdc=''
22202fi
22203
22204
22205if test "$with_libstdc" != ''; then
22206 if test -d "$with_libstdc"; then
22207 LIBSTDCLDFLAGS="-L$with_libstdc"
22208 fi
22209fi
22210
22211
22212# Does gcc required -traditional?
22213if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022215$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022216if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022217 $as_echo_n "(cached) " >&6
22218else
22219 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022221/* end confdefs.h. */
22222#include <sgtty.h>
22223Autoconf TIOCGETP
22224_ACEOF
22225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022226 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022227 ac_cv_prog_gcc_traditional=yes
22228else
22229 ac_cv_prog_gcc_traditional=no
22230fi
22231rm -f conftest*
22232
22233
22234 if test $ac_cv_prog_gcc_traditional = no; then
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 <termio.h>
22238Autoconf TCGETA
22239_ACEOF
22240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022241 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022242 ac_cv_prog_gcc_traditional=yes
22243fi
22244rm -f conftest*
22245
22246 fi
22247fi
cristy8b350f62009-11-15 23:12:43 +000022248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022249$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22250 if test $ac_cv_prog_gcc_traditional = yes; then
22251 CC="$CC -traditional"
22252 fi
22253fi
22254
22255
22256########
22257#
22258# Set defines required to build DLLs and modules using MinGW
22259#
22260########
22261# These options are set for multi-thread DLL module build
22262# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22263# module: _DLL
22264# executable/Magick++: _DLL _MAGICKMOD_
22265MODULE_EXTRA_CPPFLAGS=''
22266LIBRARY_EXTRA_CPPFLAGS=''
22267if test "${native_win32_build}" = 'yes'; then
22268 if test "${libtool_build_shared_libs}" = 'yes'; then
22269 CPPFLAGS="$CPPFLAGS -D_DLL"
22270 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22271 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22272 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022273 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022274 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22275 else
22276 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22277 fi
22278 else
22279 CPPFLAGS="$CPPFLAGS -D_LIB"
22280 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22281 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22282 fi
22283 if test "$with_threads" = 'yes'; then
22284 CPPFLAGS="$CPPFLAGS -D_MT"
22285 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22286 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22287 fi
22288fi
22289
22290
22291
22292# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022294$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022295if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022296 $as_echo_n "(cached) " >&6
22297else
cristy8b350f62009-11-15 23:12:43 +000022298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022299/* end confdefs.h. */
22300#include <stdlib.h>
22301#include <stdarg.h>
22302#include <string.h>
22303#include <float.h>
22304
22305int
22306main ()
22307{
22308
22309 ;
22310 return 0;
22311}
22312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022313if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022314 ac_cv_header_stdc=yes
22315else
cristy8b350f62009-11-15 23:12:43 +000022316 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022317fi
cristy3ed852e2009-09-05 21:47:34 +000022318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22319
22320if test $ac_cv_header_stdc = yes; then
22321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022323/* end confdefs.h. */
22324#include <string.h>
22325
22326_ACEOF
22327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022328 $EGREP "memchr" >/dev/null 2>&1; then :
22329
cristy3ed852e2009-09-05 21:47:34 +000022330else
22331 ac_cv_header_stdc=no
22332fi
22333rm -f conftest*
22334
22335fi
22336
22337if test $ac_cv_header_stdc = yes; then
22338 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022340/* end confdefs.h. */
22341#include <stdlib.h>
22342
22343_ACEOF
22344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022345 $EGREP "free" >/dev/null 2>&1; then :
22346
cristy3ed852e2009-09-05 21:47:34 +000022347else
22348 ac_cv_header_stdc=no
22349fi
22350rm -f conftest*
22351
22352fi
22353
22354if test $ac_cv_header_stdc = yes; then
22355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022356 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022357 :
22358else
cristy8b350f62009-11-15 23:12:43 +000022359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022360/* end confdefs.h. */
22361#include <ctype.h>
22362#include <stdlib.h>
22363#if ((' ' & 0x0FF) == 0x020)
22364# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22365# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22366#else
22367# define ISLOWER(c) \
22368 (('a' <= (c) && (c) <= 'i') \
22369 || ('j' <= (c) && (c) <= 'r') \
22370 || ('s' <= (c) && (c) <= 'z'))
22371# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22372#endif
22373
22374#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22375int
22376main ()
22377{
22378 int i;
22379 for (i = 0; i < 256; i++)
22380 if (XOR (islower (i), ISLOWER (i))
22381 || toupper (i) != TOUPPER (i))
22382 return 2;
22383 return 0;
22384}
22385_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022386if ac_fn_c_try_run "$LINENO"; then :
22387
cristy3ed852e2009-09-05 21:47:34 +000022388else
cristy8b350f62009-11-15 23:12:43 +000022389 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022390fi
cristy8b350f62009-11-15 23:12:43 +000022391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22392 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022393fi
22394
cristy3ed852e2009-09-05 21:47:34 +000022395fi
22396fi
cristy8b350f62009-11-15 23:12:43 +000022397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022398$as_echo "$ac_cv_header_stdc" >&6; }
22399if test $ac_cv_header_stdc = yes; then
22400
cristy8b350f62009-11-15 23:12:43 +000022401$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022402
22403fi
22404
22405if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022406 { $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 +000022407 header files. Compilation cannot proceed. Please install the ANSI C
22408 headers and rerun this script." >&5
22409$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22410 header files. Compilation cannot proceed. Please install the ANSI C
22411 headers and rerun this script." >&2;};
22412fi
cristya0b81c32010-01-22 02:54:33 +000022413
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22415$as_echo_n "checking whether to enable assertions... " >&6; }
22416 # Check whether --enable-assert was given.
22417if test "${enable_assert+set}" = set; then :
22418 enableval=$enable_assert; ac_enable_assert=$enableval
22419 if test "x$enableval" = xno; then :
22420
22421$as_echo "#define NDEBUG 1" >>confdefs.h
22422
22423elif test "x$enableval" != xyes; then :
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22425$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22426 ac_enable_assert=yes
22427fi
22428else
22429 ac_enable_assert=yes
22430fi
22431
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22433$as_echo "$ac_enable_assert" >&6; }
22434
cristy3ed852e2009-09-05 21:47:34 +000022435ac_header_dirent=no
22436for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22437 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022439$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022440if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022441 $as_echo_n "(cached) " >&6
22442else
cristy8b350f62009-11-15 23:12:43 +000022443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022444/* end confdefs.h. */
22445#include <sys/types.h>
22446#include <$ac_hdr>
22447
22448int
22449main ()
22450{
22451if ((DIR *) 0)
22452return 0;
22453 ;
22454 return 0;
22455}
22456_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022457if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022458 eval "$as_ac_Header=yes"
22459else
cristy8b350f62009-11-15 23:12:43 +000022460 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022461fi
cristy3ed852e2009-09-05 21:47:34 +000022462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22463fi
cristy8b350f62009-11-15 23:12:43 +000022464eval ac_res=\$$as_ac_Header
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022466$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022467if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022468 cat >>confdefs.h <<_ACEOF
22469#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22470_ACEOF
22471
22472ac_header_dirent=$ac_hdr; break
22473fi
22474
22475done
22476# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22477if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022479$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022480if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022481 $as_echo_n "(cached) " >&6
22482else
22483 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022485/* end confdefs.h. */
22486
22487/* Override any GCC internal prototype to avoid an error.
22488 Use char because int might match the return type of a GCC
22489 builtin and then its argument prototype would still apply. */
22490#ifdef __cplusplus
22491extern "C"
22492#endif
22493char opendir ();
22494int
22495main ()
22496{
22497return opendir ();
22498 ;
22499 return 0;
22500}
22501_ACEOF
22502for ac_lib in '' dir; do
22503 if test -z "$ac_lib"; then
22504 ac_res="none required"
22505 else
22506 ac_res=-l$ac_lib
22507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22508 fi
cristy8b350f62009-11-15 23:12:43 +000022509 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022510 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022511fi
cristy8b350f62009-11-15 23:12:43 +000022512rm -f core conftest.err conftest.$ac_objext \
22513 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022514 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022515 break
22516fi
22517done
cristyda16f162011-02-19 23:52:17 +000022518if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022519
cristy3ed852e2009-09-05 21:47:34 +000022520else
22521 ac_cv_search_opendir=no
22522fi
22523rm conftest.$ac_ext
22524LIBS=$ac_func_search_save_LIBS
22525fi
cristy8b350f62009-11-15 23:12:43 +000022526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022527$as_echo "$ac_cv_search_opendir" >&6; }
22528ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022529if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22531
22532fi
22533
22534else
cristy8b350f62009-11-15 23:12:43 +000022535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022536$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022537if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022538 $as_echo_n "(cached) " >&6
22539else
22540 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022542/* end confdefs.h. */
22543
22544/* Override any GCC internal prototype to avoid an error.
22545 Use char because int might match the return type of a GCC
22546 builtin and then its argument prototype would still apply. */
22547#ifdef __cplusplus
22548extern "C"
22549#endif
22550char opendir ();
22551int
22552main ()
22553{
22554return opendir ();
22555 ;
22556 return 0;
22557}
22558_ACEOF
22559for ac_lib in '' x; do
22560 if test -z "$ac_lib"; then
22561 ac_res="none required"
22562 else
22563 ac_res=-l$ac_lib
22564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22565 fi
cristy8b350f62009-11-15 23:12:43 +000022566 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022567 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022568fi
cristy8b350f62009-11-15 23:12:43 +000022569rm -f core conftest.err conftest.$ac_objext \
22570 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022571 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022572 break
22573fi
22574done
cristyda16f162011-02-19 23:52:17 +000022575if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022576
cristy3ed852e2009-09-05 21:47:34 +000022577else
22578 ac_cv_search_opendir=no
22579fi
22580rm conftest.$ac_ext
22581LIBS=$ac_func_search_save_LIBS
22582fi
cristy8b350f62009-11-15 23:12:43 +000022583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022584$as_echo "$ac_cv_search_opendir" >&6; }
22585ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022586if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22588
22589fi
22590
22591fi
22592
22593
22594# Check additional headers
cristy58945e42012-09-04 14:33:54 +000022595for 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 +000022596do :
22597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22598ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022599if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022600 cat >>confdefs.h <<_ACEOF
22601#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22602_ACEOF
22603
22604fi
22605
22606done
22607
22608
22609########
22610#
22611# Checks for typedefs, structures, and compiler characteristics.
22612#
22613########
22614
cristy8b350f62009-11-15 23:12:43 +000022615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022616$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022617if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022618 $as_echo_n "(cached) " >&6
22619else
cristy8b350f62009-11-15 23:12:43 +000022620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022621/* end confdefs.h. */
22622
cristy14fefe52012-05-21 00:59:18 +000022623 #include <stdbool.h>
22624 #ifndef bool
22625 "error: bool is not defined"
22626 #endif
22627 #ifndef false
22628 "error: false is not defined"
22629 #endif
22630 #if false
22631 "error: false is not 0"
22632 #endif
22633 #ifndef true
22634 "error: true is not defined"
22635 #endif
22636 #if true != 1
22637 "error: true is not 1"
22638 #endif
22639 #ifndef __bool_true_false_are_defined
22640 "error: __bool_true_false_are_defined is not defined"
22641 #endif
cristy3ed852e2009-09-05 21:47:34 +000022642
cristy14fefe52012-05-21 00:59:18 +000022643 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022644
cristy14fefe52012-05-21 00:59:18 +000022645 char a[true == 1 ? 1 : -1];
22646 char b[false == 0 ? 1 : -1];
22647 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22648 char d[(bool) 0.5 == true ? 1 : -1];
22649 /* See body of main program for 'e'. */
22650 char f[(_Bool) 0.0 == false ? 1 : -1];
22651 char g[true];
22652 char h[sizeof (_Bool)];
22653 char i[sizeof s.t];
22654 enum { j = false, k = true, l = false * true, m = true * 256 };
22655 /* The following fails for
22656 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22657 _Bool n[m];
22658 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22659 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22660 /* Catch a bug in an HP-UX C compiler. See
22661 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22662 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22663 */
22664 _Bool q = true;
22665 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022666
22667int
22668main ()
22669{
22670
cristy14fefe52012-05-21 00:59:18 +000022671 bool e = &s;
22672 *pq |= q;
22673 *pq |= ! q;
22674 /* Refer to every declared value, to avoid compiler optimizations. */
22675 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22676 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022677
22678 ;
22679 return 0;
22680}
22681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022682if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022683 ac_cv_header_stdbool_h=yes
22684else
cristy8b350f62009-11-15 23:12:43 +000022685 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022686fi
cristy3ed852e2009-09-05 21:47:34 +000022687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688fi
cristy8b350f62009-11-15 23:12:43 +000022689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022690$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022691 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022692if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022693
22694cat >>confdefs.h <<_ACEOF
22695#define HAVE__BOOL 1
22696_ACEOF
22697
22698
22699fi
22700
cristy14fefe52012-05-21 00:59:18 +000022701
cristy3ed852e2009-09-05 21:47:34 +000022702if test $ac_cv_header_stdbool_h = yes; then
22703
cristy8b350f62009-11-15 23:12:43 +000022704$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022705
22706fi
22707
cristy8b350f62009-11-15 23:12:43 +000022708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022709$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022710if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022711 $as_echo_n "(cached) " >&6
22712else
cristy8b350f62009-11-15 23:12:43 +000022713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022714/* end confdefs.h. */
22715
22716int
22717main ()
22718{
22719
22720volatile int x;
22721int * volatile y = (int *) 0;
22722return !x && !y;
22723 ;
22724 return 0;
22725}
22726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022727if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022728 ac_cv_c_volatile=yes
22729else
cristy8b350f62009-11-15 23:12:43 +000022730 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022731fi
cristy3ed852e2009-09-05 21:47:34 +000022732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22733fi
cristy8b350f62009-11-15 23:12:43 +000022734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022735$as_echo "$ac_cv_c_volatile" >&6; }
22736if test $ac_cv_c_volatile = no; then
22737
cristy8b350f62009-11-15 23:12:43 +000022738$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022739
22740fi
22741
cristy8b350f62009-11-15 23:12:43 +000022742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022743$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022744if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022745 $as_echo_n "(cached) " >&6
22746else
cristy8b350f62009-11-15 23:12:43 +000022747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022748/* end confdefs.h. */
22749#define x(y) #y
22750
22751char *s = x(teststring);
22752_ACEOF
22753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022754 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022755 ac_cv_c_stringize=no
22756else
22757 ac_cv_c_stringize=yes
22758fi
22759rm -f conftest*
22760
22761fi
cristy8b350f62009-11-15 23:12:43 +000022762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022763$as_echo "$ac_cv_c_stringize" >&6; }
22764if test $ac_cv_c_stringize = yes; then
22765
cristy8b350f62009-11-15 23:12:43 +000022766$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022767
22768fi
22769
cristy8b350f62009-11-15 23:12:43 +000022770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022771$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022772if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022773 $as_echo_n "(cached) " >&6
22774else
cristy8b350f62009-11-15 23:12:43 +000022775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022776/* end confdefs.h. */
22777#include <sys/types.h>
22778#include <sys/stat.h>
22779
22780#if defined S_ISBLK && defined S_IFDIR
22781extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22782#endif
22783
22784#if defined S_ISBLK && defined S_IFCHR
22785extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22786#endif
22787
22788#if defined S_ISLNK && defined S_IFREG
22789extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22790#endif
22791
22792#if defined S_ISSOCK && defined S_IFREG
22793extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22794#endif
22795
22796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022797if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022798 ac_cv_header_stat_broken=no
22799else
cristy8b350f62009-11-15 23:12:43 +000022800 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022801fi
cristy3ed852e2009-09-05 21:47:34 +000022802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22803fi
cristy8b350f62009-11-15 23:12:43 +000022804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022805$as_echo "$ac_cv_header_stat_broken" >&6; }
22806if test $ac_cv_header_stat_broken = yes; then
22807
cristy8b350f62009-11-15 23:12:43 +000022808$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022809
22810fi
22811
cristy8b350f62009-11-15 23:12:43 +000022812{ $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 +000022813$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022814if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022815 $as_echo_n "(cached) " >&6
22816else
cristy8b350f62009-11-15 23:12:43 +000022817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022818/* end confdefs.h. */
22819#include <sys/types.h>
22820#include <sys/time.h>
22821#include <time.h>
22822
22823int
22824main ()
22825{
22826if ((struct tm *) 0)
22827return 0;
22828 ;
22829 return 0;
22830}
22831_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022832if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022833 ac_cv_header_time=yes
22834else
cristy8b350f62009-11-15 23:12:43 +000022835 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022836fi
cristy3ed852e2009-09-05 21:47:34 +000022837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838fi
cristy8b350f62009-11-15 23:12:43 +000022839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022840$as_echo "$ac_cv_header_time" >&6; }
22841if test $ac_cv_header_time = yes; then
22842
cristy8b350f62009-11-15 23:12:43 +000022843$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022844
22845fi
22846
cristy8b350f62009-11-15 23:12:43 +000022847{ $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 +000022848$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022849if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022850 $as_echo_n "(cached) " >&6
22851else
cristy8b350f62009-11-15 23:12:43 +000022852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022853/* end confdefs.h. */
22854#include <sys/types.h>
22855#include <time.h>
22856
22857int
22858main ()
22859{
22860struct tm tm;
22861 int *p = &tm.tm_sec;
22862 return !p;
22863 ;
22864 return 0;
22865}
22866_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022867if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022868 ac_cv_struct_tm=time.h
22869else
cristy8b350f62009-11-15 23:12:43 +000022870 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022871fi
cristy3ed852e2009-09-05 21:47:34 +000022872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22873fi
cristy8b350f62009-11-15 23:12:43 +000022874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022875$as_echo "$ac_cv_struct_tm" >&6; }
22876if test $ac_cv_struct_tm = sys/time.h; then
22877
cristy8b350f62009-11-15 23:12:43 +000022878$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022879
22880fi
22881
cristy92703d82010-04-26 00:18:18 +000022882ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22883#include <$ac_cv_struct_tm>
22884
22885"
cristyda16f162011-02-19 23:52:17 +000022886if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022887
22888cat >>confdefs.h <<_ACEOF
22889#define HAVE_STRUCT_TM_TM_ZONE 1
22890_ACEOF
22891
22892
22893fi
22894
22895if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22896
22897$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22898
22899else
22900 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22901"
cristyda16f162011-02-19 23:52:17 +000022902if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022903 ac_have_decl=1
22904else
22905 ac_have_decl=0
22906fi
22907
22908cat >>confdefs.h <<_ACEOF
22909#define HAVE_DECL_TZNAME $ac_have_decl
22910_ACEOF
22911
22912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22913$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022914if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022915 $as_echo_n "(cached) " >&6
22916else
22917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22918/* end confdefs.h. */
22919#include <time.h>
22920#if !HAVE_DECL_TZNAME
22921extern char *tzname[];
22922#endif
22923
22924int
22925main ()
22926{
22927return tzname[0][0];
22928 ;
22929 return 0;
22930}
22931_ACEOF
22932if ac_fn_c_try_link "$LINENO"; then :
22933 ac_cv_var_tzname=yes
22934else
22935 ac_cv_var_tzname=no
22936fi
22937rm -f core conftest.err conftest.$ac_objext \
22938 conftest$ac_exeext conftest.$ac_ext
22939fi
22940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22941$as_echo "$ac_cv_var_tzname" >&6; }
22942 if test $ac_cv_var_tzname = yes; then
22943
22944$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22945
22946 fi
22947fi
22948
cristy8b350f62009-11-15 23:12:43 +000022949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022950$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022951if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022952 $as_echo_n "(cached) " >&6
22953else
22954 echo '#! /bin/cat
22955exit 69
22956' >conftest
22957chmod u+x conftest
22958(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22959if test $? -ne 69; then
22960 ac_cv_sys_interpreter=yes
22961else
22962 ac_cv_sys_interpreter=no
22963fi
22964rm -f conftest
22965fi
cristy8b350f62009-11-15 23:12:43 +000022966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022967$as_echo "$ac_cv_sys_interpreter" >&6; }
22968interpval=$ac_cv_sys_interpreter
22969
22970
cristy3ed852e2009-09-05 21:47:34 +000022971# If the C compiler supports the keyword inline, do nothing. Otherwise
22972# define inline to __inline__ or __inline if it accepts one of those,
22973# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022975$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022976if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022977 $as_echo_n "(cached) " >&6
22978else
22979 ac_cv_c_inline=no
22980for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022982/* end confdefs.h. */
22983#ifndef __cplusplus
22984typedef int foo_t;
22985static $ac_kw foo_t static_foo () {return 0; }
22986$ac_kw foo_t foo () {return 0; }
22987#endif
22988
22989_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022990if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022991 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022992fi
cristy3ed852e2009-09-05 21:47:34 +000022993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22994 test "$ac_cv_c_inline" != no && break
22995done
22996
22997fi
cristy8b350f62009-11-15 23:12:43 +000022998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022999$as_echo "$ac_cv_c_inline" >&6; }
23000
cristy3ed852e2009-09-05 21:47:34 +000023001case $ac_cv_c_inline in
23002 inline | yes) ;;
23003 *)
23004 case $ac_cv_c_inline in
23005 no) ac_val=;;
23006 *) ac_val=$ac_cv_c_inline;;
23007 esac
23008 cat >>confdefs.h <<_ACEOF
23009#ifndef __cplusplus
23010#define inline $ac_val
23011#endif
23012_ACEOF
23013 ;;
23014esac
23015
23016
23017# If the C compiler supports the keyword restrict, do nothing. Otherwise
23018# define restrict to __restrict__ or __restrict if it accepts one of those,
23019# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000023020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000023021$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023022if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023023 $as_echo_n "(cached) " >&6
23024else
23025 ac_cv_c_restrict=no
23026 # The order here caters to the fact that C++ does not require restrict.
23027 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000023028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023029/* end confdefs.h. */
23030typedef int * int_ptr;
23031 int foo (int_ptr $ac_kw ip) {
23032 return ip[0];
23033 }
23034int
23035main ()
23036{
23037int s[1];
23038 int * $ac_kw t = s;
23039 t[0] = 0;
23040 return foo(t)
23041 ;
23042 return 0;
23043}
23044_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023045if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023046 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000023047fi
cristy3ed852e2009-09-05 21:47:34 +000023048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23049 test "$ac_cv_c_restrict" != no && break
23050 done
23051
23052fi
cristy8b350f62009-11-15 23:12:43 +000023053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000023054$as_echo "$ac_cv_c_restrict" >&6; }
23055
cristy3ed852e2009-09-05 21:47:34 +000023056 case $ac_cv_c_restrict in
23057 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000023058 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023059 ;;
23060 *) cat >>confdefs.h <<_ACEOF
23061#define restrict $ac_cv_c_restrict
23062_ACEOF
23063 ;;
23064 esac
23065
23066
23067# If words are stored with the most significant byte first (like
23068# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000023069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023070$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023071if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023072 $as_echo_n "(cached) " >&6
23073else
23074 ac_cv_c_bigendian=unknown
23075 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000023076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023077/* end confdefs.h. */
23078#ifndef __APPLE_CC__
23079 not a universal capable compiler
23080 #endif
23081 typedef int dummy;
23082
23083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023084if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023085
23086 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000023087 # there are at least two -arch flags with different values.
23088 ac_arch=
23089 ac_prev=
23090 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23091 if test -n "$ac_prev"; then
23092 case $ac_word in
23093 i?86 | x86_64 | ppc | ppc64)
23094 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23095 ac_arch=$ac_word
23096 else
23097 ac_cv_c_bigendian=universal
23098 break
23099 fi
23100 ;;
23101 esac
23102 ac_prev=
23103 elif test "x$ac_word" = "x-arch"; then
23104 ac_prev=arch
23105 fi
23106 done
cristy3ed852e2009-09-05 21:47:34 +000023107fi
cristy3ed852e2009-09-05 21:47:34 +000023108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23109 if test $ac_cv_c_bigendian = unknown; then
23110 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023112/* end confdefs.h. */
23113#include <sys/types.h>
23114 #include <sys/param.h>
23115
23116int
23117main ()
23118{
23119#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23120 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23121 && LITTLE_ENDIAN)
23122 bogus endian macros
23123 #endif
23124
23125 ;
23126 return 0;
23127}
23128_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023129if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023130 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023132/* end confdefs.h. */
23133#include <sys/types.h>
23134 #include <sys/param.h>
23135
23136int
23137main ()
23138{
23139#if BYTE_ORDER != BIG_ENDIAN
23140 not big endian
23141 #endif
23142
23143 ;
23144 return 0;
23145}
23146_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023147if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023148 ac_cv_c_bigendian=yes
23149else
cristy8b350f62009-11-15 23:12:43 +000023150 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023151fi
cristy3ed852e2009-09-05 21:47:34 +000023152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023153fi
cristy3ed852e2009-09-05 21:47:34 +000023154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23155 fi
23156 if test $ac_cv_c_bigendian = unknown; then
23157 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023159/* end confdefs.h. */
23160#include <limits.h>
23161
23162int
23163main ()
23164{
23165#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23166 bogus endian macros
23167 #endif
23168
23169 ;
23170 return 0;
23171}
23172_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023173if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023174 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023176/* end confdefs.h. */
23177#include <limits.h>
23178
23179int
23180main ()
23181{
23182#ifndef _BIG_ENDIAN
23183 not big endian
23184 #endif
23185
23186 ;
23187 return 0;
23188}
23189_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023190if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023191 ac_cv_c_bigendian=yes
23192else
cristy8b350f62009-11-15 23:12:43 +000023193 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023194fi
cristy3ed852e2009-09-05 21:47:34 +000023195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023196fi
cristy3ed852e2009-09-05 21:47:34 +000023197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23198 fi
23199 if test $ac_cv_c_bigendian = unknown; then
23200 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023201 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023202 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023204/* end confdefs.h. */
23205short int ascii_mm[] =
23206 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23207 short int ascii_ii[] =
23208 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23209 int use_ascii (int i) {
23210 return ascii_mm[i] + ascii_ii[i];
23211 }
23212 short int ebcdic_ii[] =
23213 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23214 short int ebcdic_mm[] =
23215 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23216 int use_ebcdic (int i) {
23217 return ebcdic_mm[i] + ebcdic_ii[i];
23218 }
23219 extern int foo;
23220
23221int
23222main ()
23223{
23224return use_ascii (foo) == use_ebcdic (foo);
23225 ;
23226 return 0;
23227}
23228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023229if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023230 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23231 ac_cv_c_bigendian=yes
23232 fi
23233 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23234 if test "$ac_cv_c_bigendian" = unknown; then
23235 ac_cv_c_bigendian=no
23236 else
23237 # finding both strings is unlikely to happen, but who knows?
23238 ac_cv_c_bigendian=unknown
23239 fi
23240 fi
cristy3ed852e2009-09-05 21:47:34 +000023241fi
cristy3ed852e2009-09-05 21:47:34 +000023242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23243else
cristy8b350f62009-11-15 23:12:43 +000023244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023245/* end confdefs.h. */
23246$ac_includes_default
23247int
23248main ()
23249{
23250
23251 /* Are we little or big endian? From Harbison&Steele. */
23252 union
23253 {
23254 long int l;
23255 char c[sizeof (long int)];
23256 } u;
23257 u.l = 1;
23258 return u.c[sizeof (long int) - 1] == 1;
23259
23260 ;
23261 return 0;
23262}
23263_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023264if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023265 ac_cv_c_bigendian=no
23266else
cristy8b350f62009-11-15 23:12:43 +000023267 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023268fi
cristy8b350f62009-11-15 23:12:43 +000023269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23270 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023271fi
23272
cristy3ed852e2009-09-05 21:47:34 +000023273 fi
23274fi
cristy8b350f62009-11-15 23:12:43 +000023275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023276$as_echo "$ac_cv_c_bigendian" >&6; }
23277 case $ac_cv_c_bigendian in #(
23278 yes)
cristy8b350f62009-11-15 23:12:43 +000023279 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023280;; #(
23281 no)
23282 ;; #(
23283 universal)
23284
cristy8b350f62009-11-15 23:12:43 +000023285$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023286
23287 ;; #(
23288 *)
cristy98dddb52010-11-04 00:30:15 +000023289 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023290 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023291 esac
23292
23293
cristy501c8042011-05-26 17:46:28 +000023294# Define to a suitable type, if standard headers do not define it.
23295ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23296case $ac_cv_c_int8_t in #(
23297 no|yes) ;; #(
23298 *)
cristy3ed852e2009-09-05 21:47:34 +000023299
23300cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023301#define int8_t $ac_cv_c_int8_t
23302_ACEOF
23303;;
23304esac
23305
23306ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23307case $ac_cv_c_int16_t in #(
23308 no|yes) ;; #(
23309 *)
23310
23311cat >>confdefs.h <<_ACEOF
23312#define int16_t $ac_cv_c_int16_t
23313_ACEOF
23314;;
23315esac
23316
23317ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23318case $ac_cv_c_int32_t in #(
23319 no|yes) ;; #(
23320 *)
23321
23322cat >>confdefs.h <<_ACEOF
23323#define int32_t $ac_cv_c_int32_t
23324_ACEOF
23325;;
23326esac
23327
23328ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23329case $ac_cv_c_int64_t in #(
23330 no|yes) ;; #(
23331 *)
23332
23333cat >>confdefs.h <<_ACEOF
23334#define int64_t $ac_cv_c_int64_t
23335_ACEOF
23336;;
23337esac
23338
23339
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23341$as_echo_n "checking for long long int... " >&6; }
23342if ${ac_cv_type_long_long_int+:} false; then :
23343 $as_echo_n "(cached) " >&6
23344else
23345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23346/* end confdefs.h. */
23347
23348 /* For now, do not test the preprocessor; as of 2007 there are too many
23349 implementations with broken preprocessors. Perhaps this can
23350 be revisited in 2012. In the meantime, code should not expect
23351 #if to work with literals wider than 32 bits. */
23352 /* Test literals. */
23353 long long int ll = 9223372036854775807ll;
23354 long long int nll = -9223372036854775807LL;
23355 unsigned long long int ull = 18446744073709551615ULL;
23356 /* Test constant expressions. */
23357 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23358 ? 1 : -1)];
23359 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23360 ? 1 : -1)];
23361 int i = 63;
23362int
23363main ()
23364{
23365/* Test availability of runtime routines for shift and division. */
23366 long long int llmax = 9223372036854775807ll;
23367 unsigned long long int ullmax = 18446744073709551615ull;
23368 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23369 | (llmax / ll) | (llmax % ll)
23370 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23371 | (ullmax / ull) | (ullmax % ull));
23372 ;
23373 return 0;
23374}
23375
23376_ACEOF
23377if ac_fn_c_try_link "$LINENO"; then :
23378 if test "$cross_compiling" = yes; then :
23379 ac_cv_type_long_long_int=yes
23380else
23381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23382/* end confdefs.h. */
23383#include <limits.h>
23384 #ifndef LLONG_MAX
23385 # define HALF \
23386 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23387 # define LLONG_MAX (HALF - 1 + HALF)
23388 #endif
23389int
23390main ()
23391{
23392long long int n = 1;
23393 int i;
23394 for (i = 0; ; i++)
23395 {
23396 long long int m = n << i;
23397 if (m >> i != n)
23398 return 1;
23399 if (LLONG_MAX / 2 < m)
23400 break;
23401 }
23402 return 0;
23403 ;
23404 return 0;
23405}
23406_ACEOF
23407if ac_fn_c_try_run "$LINENO"; then :
23408 ac_cv_type_long_long_int=yes
23409else
23410 ac_cv_type_long_long_int=no
23411fi
23412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23413 conftest.$ac_objext conftest.beam conftest.$ac_ext
23414fi
23415
23416else
23417 ac_cv_type_long_long_int=no
23418fi
23419rm -f core conftest.err conftest.$ac_objext \
23420 conftest$ac_exeext conftest.$ac_ext
23421fi
23422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23423$as_echo "$ac_cv_type_long_long_int" >&6; }
23424 if test $ac_cv_type_long_long_int = yes; then
23425
23426$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23427
23428 fi
23429
23430
23431
23432 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23433if test "x$ac_cv_type_intmax_t" = xyes; then :
23434
23435$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23436
23437else
23438 test $ac_cv_type_long_long_int = yes \
23439 && ac_type='long long int' \
23440 || ac_type='long int'
23441
23442cat >>confdefs.h <<_ACEOF
23443#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023444_ACEOF
23445
23446fi
23447
23448
cristy501c8042011-05-26 17:46:28 +000023449
23450 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23451if test "x$ac_cv_type_intptr_t" = xyes; then :
23452
23453$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023454
cristy3ed852e2009-09-05 21:47:34 +000023455else
cristy501c8042011-05-26 17:46:28 +000023456 for ac_type in 'int' 'long int' 'long long int'; do
23457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23458/* end confdefs.h. */
23459$ac_includes_default
23460int
23461main ()
23462{
23463static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023464test_array [0] = 0;
23465return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023466
23467 ;
23468 return 0;
23469}
23470_ACEOF
23471if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023472
23473cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023474#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023475_ACEOF
23476
cristy501c8042011-05-26 17:46:28 +000023477 ac_type=
23478fi
23479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23480 test -z "$ac_type" && break
23481 done
cristy3ed852e2009-09-05 21:47:34 +000023482fi
23483
23484
cristy3ed852e2009-09-05 21:47:34 +000023485
cristy501c8042011-05-26 17:46:28 +000023486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23487$as_echo_n "checking for long double... " >&6; }
23488if ${ac_cv_type_long_double+:} false; then :
23489 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023490else
cristy501c8042011-05-26 17:46:28 +000023491 if test "$GCC" = yes; then
23492 ac_cv_type_long_double=yes
23493 else
23494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23495/* end confdefs.h. */
23496/* The Stardent Vistra knows sizeof (long double), but does
23497 not support it. */
23498 long double foo = 0.0L;
23499int
23500main ()
23501{
23502static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23503 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023504test_array [0] = 0;
23505return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023506
cristy501c8042011-05-26 17:46:28 +000023507 ;
23508 return 0;
23509}
cristy3ed852e2009-09-05 21:47:34 +000023510_ACEOF
cristy501c8042011-05-26 17:46:28 +000023511if ac_fn_c_try_compile "$LINENO"; then :
23512 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023513else
cristy501c8042011-05-26 17:46:28 +000023514 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023515fi
cristy501c8042011-05-26 17:46:28 +000023516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23517 fi
cristy3ed852e2009-09-05 21:47:34 +000023518fi
cristy501c8042011-05-26 17:46:28 +000023519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23520$as_echo "$ac_cv_type_long_double" >&6; }
23521 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023522
cristy501c8042011-05-26 17:46:28 +000023523$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023524
cristy501c8042011-05-26 17:46:28 +000023525 fi
23526
cristy3ed852e2009-09-05 21:47:34 +000023527
cristy8b350f62009-11-15 23:12:43 +000023528 { $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 +000023529$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023530if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023531 $as_echo_n "(cached) " >&6
23532else
cristy8b350f62009-11-15 23:12:43 +000023533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023534/* end confdefs.h. */
23535#include <float.h>
23536 long double const a[] =
23537 {
23538 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23539 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23540 };
23541 long double
23542 f (long double x)
23543 {
23544 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23545 + (x ? f (x) : 'c'));
23546 }
23547
23548int
23549main ()
23550{
23551static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23552 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23553 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23554 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23555 && (int) LDBL_EPSILON == 0
23556 )];
cristy14fefe52012-05-21 00:59:18 +000023557test_array [0] = 0;
23558return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023559
23560 ;
23561 return 0;
23562}
23563_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023564if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023565 ac_cv_type_long_double_wider=yes
23566else
cristy8b350f62009-11-15 23:12:43 +000023567 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023568fi
cristy3ed852e2009-09-05 21:47:34 +000023569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23570fi
cristy8b350f62009-11-15 23:12:43 +000023571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023572$as_echo "$ac_cv_type_long_double_wider" >&6; }
23573 if test $ac_cv_type_long_double_wider = yes; then
23574
cristy8b350f62009-11-15 23:12:43 +000023575$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023576
23577 fi
23578
23579
cristy501c8042011-05-26 17:46:28 +000023580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23581$as_echo_n "checking for long long int... " >&6; }
23582if ${ac_cv_type_long_long_int+:} false; then :
23583 $as_echo_n "(cached) " >&6
23584else
23585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23586/* end confdefs.h. */
23587
23588 /* For now, do not test the preprocessor; as of 2007 there are too many
23589 implementations with broken preprocessors. Perhaps this can
23590 be revisited in 2012. In the meantime, code should not expect
23591 #if to work with literals wider than 32 bits. */
23592 /* Test literals. */
23593 long long int ll = 9223372036854775807ll;
23594 long long int nll = -9223372036854775807LL;
23595 unsigned long long int ull = 18446744073709551615ULL;
23596 /* Test constant expressions. */
23597 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23598 ? 1 : -1)];
23599 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23600 ? 1 : -1)];
23601 int i = 63;
23602int
23603main ()
23604{
23605/* Test availability of runtime routines for shift and division. */
23606 long long int llmax = 9223372036854775807ll;
23607 unsigned long long int ullmax = 18446744073709551615ull;
23608 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23609 | (llmax / ll) | (llmax % ll)
23610 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23611 | (ullmax / ull) | (ullmax % ull));
23612 ;
23613 return 0;
23614}
23615
23616_ACEOF
23617if ac_fn_c_try_link "$LINENO"; then :
23618 if test "$cross_compiling" = yes; then :
23619 ac_cv_type_long_long_int=yes
23620else
23621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23622/* end confdefs.h. */
23623#include <limits.h>
23624 #ifndef LLONG_MAX
23625 # define HALF \
23626 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23627 # define LLONG_MAX (HALF - 1 + HALF)
23628 #endif
23629int
23630main ()
23631{
23632long long int n = 1;
23633 int i;
23634 for (i = 0; ; i++)
23635 {
23636 long long int m = n << i;
23637 if (m >> i != n)
23638 return 1;
23639 if (LLONG_MAX / 2 < m)
23640 break;
23641 }
23642 return 0;
23643 ;
23644 return 0;
23645}
23646_ACEOF
23647if ac_fn_c_try_run "$LINENO"; then :
23648 ac_cv_type_long_long_int=yes
23649else
23650 ac_cv_type_long_long_int=no
23651fi
23652rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23653 conftest.$ac_objext conftest.beam conftest.$ac_ext
23654fi
23655
23656else
23657 ac_cv_type_long_long_int=no
23658fi
23659rm -f core conftest.err conftest.$ac_objext \
23660 conftest$ac_exeext conftest.$ac_ext
23661fi
23662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23663$as_echo "$ac_cv_type_long_long_int" >&6; }
23664 if test $ac_cv_type_long_long_int = yes; then
23665
23666$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23667
23668 fi
23669
23670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23671$as_echo_n "checking for mbstate_t... " >&6; }
23672if ${ac_cv_type_mbstate_t+:} false; then :
23673 $as_echo_n "(cached) " >&6
23674else
23675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23676/* end confdefs.h. */
23677$ac_includes_default
23678# include <wchar.h>
23679int
23680main ()
23681{
23682mbstate_t x; return sizeof x;
23683 ;
23684 return 0;
23685}
23686_ACEOF
23687if ac_fn_c_try_compile "$LINENO"; then :
23688 ac_cv_type_mbstate_t=yes
23689else
23690 ac_cv_type_mbstate_t=no
23691fi
23692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23693fi
23694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23695$as_echo "$ac_cv_type_mbstate_t" >&6; }
23696 if test $ac_cv_type_mbstate_t = yes; then
23697
23698$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23699
23700 else
23701
23702$as_echo "#define mbstate_t int" >>confdefs.h
23703
23704 fi
23705ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23706if test "x$ac_cv_type_mode_t" = xyes; then :
23707
23708else
23709
23710cat >>confdefs.h <<_ACEOF
23711#define mode_t int
23712_ACEOF
23713
23714fi
23715
23716ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23717if test "x$ac_cv_type_off_t" = xyes; then :
23718
23719else
23720
23721cat >>confdefs.h <<_ACEOF
23722#define off_t long int
23723_ACEOF
23724
23725fi
23726
23727ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23728if test "x$ac_cv_type_pid_t" = xyes; then :
23729
23730else
23731
23732cat >>confdefs.h <<_ACEOF
23733#define pid_t int
23734_ACEOF
23735
23736fi
23737
23738ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23739if test "x$ac_cv_type_size_t" = xyes; then :
23740
23741else
23742
23743cat >>confdefs.h <<_ACEOF
23744#define size_t unsigned int
23745_ACEOF
23746
23747fi
23748
23749ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23750if test "x$ac_cv_type_ssize_t" = xyes; then :
23751
23752else
23753
23754cat >>confdefs.h <<_ACEOF
23755#define ssize_t int
23756_ACEOF
23757
23758fi
23759
23760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23761$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23762if ${ac_cv_type_uid_t+:} false; then :
23763 $as_echo_n "(cached) " >&6
23764else
23765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23766/* end confdefs.h. */
23767#include <sys/types.h>
23768
23769_ACEOF
23770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23771 $EGREP "uid_t" >/dev/null 2>&1; then :
23772 ac_cv_type_uid_t=yes
23773else
23774 ac_cv_type_uid_t=no
23775fi
23776rm -f conftest*
23777
23778fi
23779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23780$as_echo "$ac_cv_type_uid_t" >&6; }
23781if test $ac_cv_type_uid_t = no; then
23782
23783$as_echo "#define uid_t int" >>confdefs.h
23784
23785
23786$as_echo "#define gid_t int" >>confdefs.h
23787
23788fi
23789
23790ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23791case $ac_cv_c_uint8_t in #(
23792 no|yes) ;; #(
23793 *)
23794
23795$as_echo "#define _UINT8_T 1" >>confdefs.h
23796
23797
23798cat >>confdefs.h <<_ACEOF
23799#define uint8_t $ac_cv_c_uint8_t
23800_ACEOF
23801;;
23802 esac
23803
23804ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23805case $ac_cv_c_uint16_t in #(
23806 no|yes) ;; #(
23807 *)
23808
23809
23810cat >>confdefs.h <<_ACEOF
23811#define uint16_t $ac_cv_c_uint16_t
23812_ACEOF
23813;;
23814 esac
23815
23816ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23817case $ac_cv_c_uint32_t in #(
23818 no|yes) ;; #(
23819 *)
23820
23821$as_echo "#define _UINT32_T 1" >>confdefs.h
23822
23823
23824cat >>confdefs.h <<_ACEOF
23825#define uint32_t $ac_cv_c_uint32_t
23826_ACEOF
23827;;
23828 esac
23829
23830ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23831case $ac_cv_c_uint64_t in #(
23832 no|yes) ;; #(
23833 *)
23834
23835$as_echo "#define _UINT64_T 1" >>confdefs.h
23836
23837
23838cat >>confdefs.h <<_ACEOF
23839#define uint64_t $ac_cv_c_uint64_t
23840_ACEOF
23841;;
23842 esac
23843
23844
23845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23846$as_echo_n "checking for unsigned long long int... " >&6; }
23847if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23848 $as_echo_n "(cached) " >&6
23849else
23850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23851/* end confdefs.h. */
23852
23853 /* For now, do not test the preprocessor; as of 2007 there are too many
23854 implementations with broken preprocessors. Perhaps this can
23855 be revisited in 2012. In the meantime, code should not expect
23856 #if to work with literals wider than 32 bits. */
23857 /* Test literals. */
23858 long long int ll = 9223372036854775807ll;
23859 long long int nll = -9223372036854775807LL;
23860 unsigned long long int ull = 18446744073709551615ULL;
23861 /* Test constant expressions. */
23862 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23863 ? 1 : -1)];
23864 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23865 ? 1 : -1)];
23866 int i = 63;
23867int
23868main ()
23869{
23870/* Test availability of runtime routines for shift and division. */
23871 long long int llmax = 9223372036854775807ll;
23872 unsigned long long int ullmax = 18446744073709551615ull;
23873 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23874 | (llmax / ll) | (llmax % ll)
23875 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23876 | (ullmax / ull) | (ullmax % ull));
23877 ;
23878 return 0;
23879}
23880
23881_ACEOF
23882if ac_fn_c_try_link "$LINENO"; then :
23883 ac_cv_type_unsigned_long_long_int=yes
23884else
23885 ac_cv_type_unsigned_long_long_int=no
23886fi
23887rm -f core conftest.err conftest.$ac_objext \
23888 conftest$ac_exeext conftest.$ac_ext
23889fi
23890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23891$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23892 if test $ac_cv_type_unsigned_long_long_int = yes; then
23893
23894$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23895
23896 fi
23897
23898
23899
23900 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23901if test "x$ac_cv_type_uintmax_t" = xyes; then :
23902
23903$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23904
23905else
23906 test $ac_cv_type_unsigned_long_long_int = yes \
23907 && ac_type='unsigned long long int' \
23908 || ac_type='unsigned long int'
23909
23910cat >>confdefs.h <<_ACEOF
23911#define uintmax_t $ac_type
23912_ACEOF
23913
23914fi
23915
23916
23917
23918 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23919if test "x$ac_cv_type_uintptr_t" = xyes; then :
23920
23921$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23922
23923else
23924 for ac_type in 'unsigned int' 'unsigned long int' \
23925 'unsigned long long int'; do
23926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23927/* end confdefs.h. */
23928$ac_includes_default
23929int
23930main ()
23931{
23932static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023933test_array [0] = 0;
23934return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023935
23936 ;
23937 return 0;
23938}
23939_ACEOF
23940if ac_fn_c_try_compile "$LINENO"; then :
23941
23942cat >>confdefs.h <<_ACEOF
23943#define uintptr_t $ac_type
23944_ACEOF
23945
23946 ac_type=
23947fi
23948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23949 test -z "$ac_type" && break
23950 done
23951fi
23952
23953
23954
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23956$as_echo_n "checking for unsigned long long int... " >&6; }
23957if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23958 $as_echo_n "(cached) " >&6
23959else
23960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23961/* end confdefs.h. */
23962
23963 /* For now, do not test the preprocessor; as of 2007 there are too many
23964 implementations with broken preprocessors. Perhaps this can
23965 be revisited in 2012. In the meantime, code should not expect
23966 #if to work with literals wider than 32 bits. */
23967 /* Test literals. */
23968 long long int ll = 9223372036854775807ll;
23969 long long int nll = -9223372036854775807LL;
23970 unsigned long long int ull = 18446744073709551615ULL;
23971 /* Test constant expressions. */
23972 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23973 ? 1 : -1)];
23974 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23975 ? 1 : -1)];
23976 int i = 63;
23977int
23978main ()
23979{
23980/* Test availability of runtime routines for shift and division. */
23981 long long int llmax = 9223372036854775807ll;
23982 unsigned long long int ullmax = 18446744073709551615ull;
23983 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23984 | (llmax / ll) | (llmax % ll)
23985 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23986 | (ullmax / ull) | (ullmax % ull));
23987 ;
23988 return 0;
23989}
23990
23991_ACEOF
23992if ac_fn_c_try_link "$LINENO"; then :
23993 ac_cv_type_unsigned_long_long_int=yes
23994else
23995 ac_cv_type_unsigned_long_long_int=no
23996fi
23997rm -f core conftest.err conftest.$ac_objext \
23998 conftest$ac_exeext conftest.$ac_ext
23999fi
24000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
24001$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
24002 if test $ac_cv_type_unsigned_long_long_int = yes; then
24003
24004$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
24005
24006 fi
24007
24008
cristy3ed852e2009-09-05 21:47:34 +000024009# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
24010# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000024011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000024012$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024013if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024014 $as_echo_n "(cached) " >&6
24015else
cristy8b350f62009-11-15 23:12:43 +000024016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024017/* end confdefs.h. */
24018$ac_includes_default
24019int
24020main ()
24021{
24022static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000024023test_array [0] = 0;
24024return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000024025
24026 ;
24027 return 0;
24028}
24029_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024030if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024031 ac_cv_c_char_unsigned=no
24032else
cristy8b350f62009-11-15 23:12:43 +000024033 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000024034fi
cristy3ed852e2009-09-05 21:47:34 +000024035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24036fi
cristy8b350f62009-11-15 23:12:43 +000024037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000024038$as_echo "$ac_cv_c_char_unsigned" >&6; }
24039if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000024040 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024041
24042fi
24043
24044
24045# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24046# The cast to long int works around a bug in the HP C Compiler
24047# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24048# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24049# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024051$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024052if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024053 $as_echo_n "(cached) " >&6
24054else
cristy8b350f62009-11-15 23:12:43 +000024055 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 +000024056
cristy3ed852e2009-09-05 21:47:34 +000024057else
cristy8b350f62009-11-15 23:12:43 +000024058 if test "$ac_cv_type_signed_short" = yes; then
24059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024061as_fn_error 77 "cannot compute sizeof (signed short)
24062See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024063 else
24064 ac_cv_sizeof_signed_short=0
24065 fi
24066fi
cristy8b350f62009-11-15 23:12:43 +000024067
cristy3ed852e2009-09-05 21:47:34 +000024068fi
cristy8b350f62009-11-15 23:12:43 +000024069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024070$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24071
24072
24073
24074cat >>confdefs.h <<_ACEOF
24075#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24076_ACEOF
24077
24078
24079
24080# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24081# The cast to long int works around a bug in the HP C Compiler
24082# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24083# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24084# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024086$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024087if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024088 $as_echo_n "(cached) " >&6
24089else
cristy8b350f62009-11-15 23:12:43 +000024090 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 +000024091
cristy3ed852e2009-09-05 21:47:34 +000024092else
cristy8b350f62009-11-15 23:12:43 +000024093 if test "$ac_cv_type_unsigned_short" = yes; then
24094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024096as_fn_error 77 "cannot compute sizeof (unsigned short)
24097See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024098 else
24099 ac_cv_sizeof_unsigned_short=0
24100 fi
24101fi
cristy8b350f62009-11-15 23:12:43 +000024102
cristy3ed852e2009-09-05 21:47:34 +000024103fi
cristy8b350f62009-11-15 23:12:43 +000024104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024105$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24106
24107
24108
24109cat >>confdefs.h <<_ACEOF
24110#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24111_ACEOF
24112
24113
24114
24115# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24116# The cast to long int works around a bug in the HP C Compiler
24117# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24118# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24119# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024121$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024122if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024123 $as_echo_n "(cached) " >&6
24124else
cristy8b350f62009-11-15 23:12:43 +000024125 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 +000024126
cristy3ed852e2009-09-05 21:47:34 +000024127else
cristy8b350f62009-11-15 23:12:43 +000024128 if test "$ac_cv_type_signed_int" = yes; then
24129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024131as_fn_error 77 "cannot compute sizeof (signed int)
24132See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024133 else
24134 ac_cv_sizeof_signed_int=0
24135 fi
24136fi
cristy8b350f62009-11-15 23:12:43 +000024137
cristy3ed852e2009-09-05 21:47:34 +000024138fi
cristy8b350f62009-11-15 23:12:43 +000024139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024140$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24141
24142
24143
24144cat >>confdefs.h <<_ACEOF
24145#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24146_ACEOF
24147
24148
24149
24150# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24151# The cast to long int works around a bug in the HP C Compiler
24152# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24153# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24154# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024156$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024157if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024158 $as_echo_n "(cached) " >&6
24159else
cristy8b350f62009-11-15 23:12:43 +000024160 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 +000024161
cristy3ed852e2009-09-05 21:47:34 +000024162else
cristy8b350f62009-11-15 23:12:43 +000024163 if test "$ac_cv_type_unsigned_int" = yes; then
24164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024166as_fn_error 77 "cannot compute sizeof (unsigned int)
24167See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024168 else
24169 ac_cv_sizeof_unsigned_int=0
24170 fi
24171fi
cristy8b350f62009-11-15 23:12:43 +000024172
cristy3ed852e2009-09-05 21:47:34 +000024173fi
cristy8b350f62009-11-15 23:12:43 +000024174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024175$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24176
24177
24178
24179cat >>confdefs.h <<_ACEOF
24180#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24181_ACEOF
24182
24183
24184
24185# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24186# The cast to long int works around a bug in the HP C Compiler
24187# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24188# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24189# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024191$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024192if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024193 $as_echo_n "(cached) " >&6
24194else
cristy8b350f62009-11-15 23:12:43 +000024195 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 +000024196
cristy3ed852e2009-09-05 21:47:34 +000024197else
cristy8b350f62009-11-15 23:12:43 +000024198 if test "$ac_cv_type_signed_long" = yes; then
24199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024201as_fn_error 77 "cannot compute sizeof (signed long)
24202See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024203 else
24204 ac_cv_sizeof_signed_long=0
24205 fi
24206fi
cristy8b350f62009-11-15 23:12:43 +000024207
cristy3ed852e2009-09-05 21:47:34 +000024208fi
cristy8b350f62009-11-15 23:12:43 +000024209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024210$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24211
24212
24213
24214cat >>confdefs.h <<_ACEOF
24215#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24216_ACEOF
24217
24218
24219
24220# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24221# The cast to long int works around a bug in the HP C Compiler
24222# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24223# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24224# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024226$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024227if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024228 $as_echo_n "(cached) " >&6
24229else
cristy8b350f62009-11-15 23:12:43 +000024230 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 +000024231
cristy3ed852e2009-09-05 21:47:34 +000024232else
cristy8b350f62009-11-15 23:12:43 +000024233 if test "$ac_cv_type_unsigned_long" = yes; then
24234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024236as_fn_error 77 "cannot compute sizeof (unsigned long)
24237See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024238 else
24239 ac_cv_sizeof_unsigned_long=0
24240 fi
24241fi
cristy8b350f62009-11-15 23:12:43 +000024242
cristy3ed852e2009-09-05 21:47:34 +000024243fi
cristy8b350f62009-11-15 23:12:43 +000024244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024245$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24246
24247
24248
24249cat >>confdefs.h <<_ACEOF
24250#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24251_ACEOF
24252
24253
24254
24255# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24256# 'signed long long' is not supported then the value defined is zero.
24257# The cast to long int works around a bug in the HP C Compiler
24258# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24259# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24260# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024262$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024263if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024264 $as_echo_n "(cached) " >&6
24265else
cristy8b350f62009-11-15 23:12:43 +000024266 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 +000024267
cristy3ed852e2009-09-05 21:47:34 +000024268else
cristy8b350f62009-11-15 23:12:43 +000024269 if test "$ac_cv_type_signed_long_long" = yes; then
24270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024272as_fn_error 77 "cannot compute sizeof (signed long long)
24273See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024274 else
24275 ac_cv_sizeof_signed_long_long=0
24276 fi
24277fi
cristy8b350f62009-11-15 23:12:43 +000024278
cristy3ed852e2009-09-05 21:47:34 +000024279fi
cristy8b350f62009-11-15 23:12:43 +000024280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024281$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24282
24283
24284
24285cat >>confdefs.h <<_ACEOF
24286#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24287_ACEOF
24288
24289
24290
24291# Obtain size of a 'unsigned long long' and define as
24292# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24293# supported then the value defined is zero.
24294# The cast to long int works around a bug in the HP C Compiler
24295# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24296# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24297# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024299$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024300if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024301 $as_echo_n "(cached) " >&6
24302else
cristy8b350f62009-11-15 23:12:43 +000024303 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 +000024304
cristy3ed852e2009-09-05 21:47:34 +000024305else
cristy8b350f62009-11-15 23:12:43 +000024306 if test "$ac_cv_type_unsigned_long_long" = yes; then
24307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024309as_fn_error 77 "cannot compute sizeof (unsigned long long)
24310See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024311 else
24312 ac_cv_sizeof_unsigned_long_long=0
24313 fi
24314fi
cristy8b350f62009-11-15 23:12:43 +000024315
cristy3ed852e2009-09-05 21:47:34 +000024316fi
cristy8b350f62009-11-15 23:12:43 +000024317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024318$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24319
24320
24321
24322cat >>confdefs.h <<_ACEOF
24323#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24324_ACEOF
24325
24326
24327
24328# Obtain size of off_t and define as SIZEOF_OFF_T
24329# The cast to long int works around a bug in the HP C Compiler
24330# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24331# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24332# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024334$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024335if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024336 $as_echo_n "(cached) " >&6
24337else
cristy8b350f62009-11-15 23:12:43 +000024338 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 +000024339
cristy3ed852e2009-09-05 21:47:34 +000024340else
cristy8b350f62009-11-15 23:12:43 +000024341 if test "$ac_cv_type_off_t" = yes; then
24342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024344as_fn_error 77 "cannot compute sizeof (off_t)
24345See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024346 else
24347 ac_cv_sizeof_off_t=0
24348 fi
24349fi
cristy8b350f62009-11-15 23:12:43 +000024350
cristy3ed852e2009-09-05 21:47:34 +000024351fi
cristy8b350f62009-11-15 23:12:43 +000024352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024353$as_echo "$ac_cv_sizeof_off_t" >&6; }
24354
24355
24356
24357cat >>confdefs.h <<_ACEOF
24358#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24359_ACEOF
24360
24361
24362
24363# Obtain size of size_t and define as SIZEOF_SIZE_T
24364# The cast to long int works around a bug in the HP C Compiler
24365# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24366# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24367# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024369$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024370if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024371 $as_echo_n "(cached) " >&6
24372else
cristy8b350f62009-11-15 23:12:43 +000024373 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 +000024374
cristy3ed852e2009-09-05 21:47:34 +000024375else
cristy8b350f62009-11-15 23:12:43 +000024376 if test "$ac_cv_type_size_t" = yes; then
24377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024379as_fn_error 77 "cannot compute sizeof (size_t)
24380See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024381 else
24382 ac_cv_sizeof_size_t=0
24383 fi
24384fi
cristy8b350f62009-11-15 23:12:43 +000024385
cristy3ed852e2009-09-05 21:47:34 +000024386fi
cristy8b350f62009-11-15 23:12:43 +000024387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024388$as_echo "$ac_cv_sizeof_size_t" >&6; }
24389
24390
24391
24392cat >>confdefs.h <<_ACEOF
24393#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24394_ACEOF
24395
24396
24397
cristy330e9352010-06-01 18:42:49 +000024398# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24399# The cast to long int works around a bug in the HP C Compiler
24400# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24401# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24402# This bug is HP SR number 8606223364.
24403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24404$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024405if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024406 $as_echo_n "(cached) " >&6
24407else
24408 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24409
24410else
24411 if test "$ac_cv_type_ssize_t" = yes; then
24412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024414as_fn_error 77 "cannot compute sizeof (ssize_t)
24415See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024416 else
24417 ac_cv_sizeof_ssize_t=0
24418 fi
24419fi
24420
24421fi
24422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24423$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24424
24425
24426
24427cat >>confdefs.h <<_ACEOF
24428#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24429_ACEOF
24430
24431
24432
cristy3ed852e2009-09-05 21:47:34 +000024433# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24434# The cast to long int works around a bug in the HP C Compiler
24435# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24436# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24437# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024439$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024440if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024441 $as_echo_n "(cached) " >&6
24442else
cristy8b350f62009-11-15 23:12:43 +000024443 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 +000024444
cristy3ed852e2009-09-05 21:47:34 +000024445else
cristy8b350f62009-11-15 23:12:43 +000024446 if test "$ac_cv_type_unsigned_intp" = yes; then
24447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024449as_fn_error 77 "cannot compute sizeof (unsigned int*)
24450See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024451 else
24452 ac_cv_sizeof_unsigned_intp=0
24453 fi
24454fi
cristy8b350f62009-11-15 23:12:43 +000024455
cristy3ed852e2009-09-05 21:47:34 +000024456fi
cristy8b350f62009-11-15 23:12:43 +000024457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024458$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24459
24460
24461
24462cat >>confdefs.h <<_ACEOF
24463#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24464_ACEOF
24465
24466
24467
24468#
24469# Compute sized types for current CPU and compiler options.
24470#
24471
cristy8b350f62009-11-15 23:12:43 +000024472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024473$as_echo_n "checking for signed 8-bit type... " >&6; }
24474INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024475{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24476$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024477
24478
cristy8b350f62009-11-15 23:12:43 +000024479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024480$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24481UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024482{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24483$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024484
24485
cristy8b350f62009-11-15 23:12:43 +000024486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024487$as_echo_n "checking for signed 16-bit type... " >&6; }
24488INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024489{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24490$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024491
24492
cristy8b350f62009-11-15 23:12:43 +000024493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024494$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24495UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024496{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24497$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024498
24499
cristy8b350f62009-11-15 23:12:43 +000024500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024501$as_echo_n "checking for signed 32-bit type... " >&6; }
24502INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024503INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024504if test $ac_cv_sizeof_signed_int -eq 4; then
24505 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024506 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024507elif test $ac_cv_sizeof_signed_long -eq 4; then
24508 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024509 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024510fi
cristy09b53e12011-10-14 12:47:22 +000024511{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24512$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024513
24514
cristy6d5e20f2011-04-25 13:48:54 +000024515
cristy8b350f62009-11-15 23:12:43 +000024516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024517$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24518UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024519UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024520if test $ac_cv_sizeof_unsigned_int -eq 4; then
24521 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024522 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024523elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24524 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024525 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024526fi
cristy09b53e12011-10-14 12:47:22 +000024527{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24528$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024529
24530
cristy6d5e20f2011-04-25 13:48:54 +000024531
cristy8b350f62009-11-15 23:12:43 +000024532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024533$as_echo_n "checking for signed 64-bit type... " >&6; }
24534INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024535INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024536if test $ac_cv_sizeof_signed_long -eq 8; then
24537 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024538 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024539elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24540 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024541 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024542fi
cristy3a99dcf2011-12-17 01:29:40 +000024543case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024544 mingw* )
24545 INT64_F='"I64"'
24546 ;;
24547esac
cristy09b53e12011-10-14 12:47:22 +000024548{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24549$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024550
24551
cristy6d5e20f2011-04-25 13:48:54 +000024552
cristy8b350f62009-11-15 23:12:43 +000024553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024554$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24555UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024556UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024557if test $ac_cv_sizeof_unsigned_long -eq 8; then
24558 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024559 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024560elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24561 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024562 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024563fi
cristy3a99dcf2011-12-17 01:29:40 +000024564case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024565 mingw* )
24566 UINT64_F='"I64"'
24567 ;;
24568esac
cristy09b53e12011-10-14 12:47:22 +000024569{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24570$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024571
24572
cristy6d5e20f2011-04-25 13:48:54 +000024573
cristy8b350f62009-11-15 23:12:43 +000024574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024575$as_echo_n "checking for unsigned maximum type... " >&6; }
24576UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024577UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024578if test "$UINT64_T" != 'none'; then
24579 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024580 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024581elif test "$UINT32_T" != 'none'; then
24582 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024583 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024584fi
cristy09b53e12011-10-14 12:47:22 +000024585{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24586$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024587
24588
cristy6d5e20f2011-04-25 13:48:54 +000024589
cristy8b350f62009-11-15 23:12:43 +000024590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024591$as_echo_n "checking for pointer difference type... " >&6; }
24592UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024593UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024594if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24595 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024596 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024597elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24598 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024599 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024600fi
cristy09b53e12011-10-14 12:47:22 +000024601{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24602$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024603
24604
cristy6d5e20f2011-04-25 13:48:54 +000024605
cristy8b350f62009-11-15 23:12:43 +000024606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024607$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024609/* end confdefs.h. */
24610
24611int
24612main ()
24613{
24614{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24615 ;
24616 return 0;
24617}
24618_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024619if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024620 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24621$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024622else
cristy09b53e12011-10-14 12:47:22 +000024623 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24624$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024626$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024628/* end confdefs.h. */
24629
24630int
24631main ()
24632{
24633{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24634 ;
24635 return 0;
24636}
24637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024638if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024639 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24640$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024641
cristy8b350f62009-11-15 23:12:43 +000024642$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024643
24644else
cristy09b53e12011-10-14 12:47:22 +000024645 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24646$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024647
cristy8b350f62009-11-15 23:12:43 +000024648$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024649
24650fi
cristy3ed852e2009-09-05 21:47:34 +000024651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24652fi
cristy3ed852e2009-09-05 21:47:34 +000024653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24654
24655########
24656#
24657# Check for functions
24658#
24659########
cristy73bd4a52010-10-05 11:24:23 +000024660for ac_header in stdlib.h unistd.h
24661do :
24662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24663ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024664if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024665 cat >>confdefs.h <<_ACEOF
24666#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24667_ACEOF
24668
24669fi
24670
24671done
24672
24673for ac_func in getpagesize
24674do :
24675 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024676if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024677 cat >>confdefs.h <<_ACEOF
24678#define HAVE_GETPAGESIZE 1
24679_ACEOF
24680
24681fi
24682done
24683
24684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24685$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024686if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024687 $as_echo_n "(cached) " >&6
24688else
24689 if test "$cross_compiling" = yes; then :
24690 magick_cv_func_mmap_fileio=no
24691else
24692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24693/* end confdefs.h. */
24694$ac_includes_default
24695/* malloc might have been renamed as rpl_malloc. */
24696#undef malloc
24697
24698/*
24699 This test is derived from GNU Autoconf's similar macro.
24700 The purpose of this test is to verify that files may be memory
24701 mapped, and that memory mapping and file I/O are coherent.
24702
24703 The test creates a test file, memory maps the file, updates
24704 the file using the memory map, and then reads the file using
24705 file I/O to verify that the file contains the updates.
24706*/
24707
24708#include <fcntl.h>
24709#include <sys/mman.h>
24710
24711#if !STDC_HEADERS && !HAVE_STDLIB_H
24712char *malloc ();
24713#endif
24714
24715/* This mess was copied from the GNU getpagesize.h. */
24716#if !HAVE_GETPAGESIZE
24717/* Assume that all systems that can run configure have sys/param.h. */
24718# if !HAVE_SYS_PARAM_H
24719# define HAVE_SYS_PARAM_H 1
24720# endif
24721
24722# ifdef _SC_PAGESIZE
24723# define getpagesize() sysconf(_SC_PAGESIZE)
24724# else /* no _SC_PAGESIZE */
24725# if HAVE_SYS_PARAM_H
24726# include <sys/param.h>
24727# ifdef EXEC_PAGESIZE
24728# define getpagesize() EXEC_PAGESIZE
24729# else /* no EXEC_PAGESIZE */
24730# ifdef NBPG
24731# define getpagesize() NBPG * CLSIZE
24732# ifndef CLSIZE
24733# define CLSIZE 1
24734# endif /* no CLSIZE */
24735# else /* no NBPG */
24736# ifdef NBPC
24737# define getpagesize() NBPC
24738# else /* no NBPC */
24739# ifdef PAGESIZE
24740# define getpagesize() PAGESIZE
24741# endif /* PAGESIZE */
24742# endif /* no NBPC */
24743# endif /* no NBPG */
24744# endif /* no EXEC_PAGESIZE */
24745# else /* no HAVE_SYS_PARAM_H */
24746# define getpagesize() 8192 /* punt totally */
24747# endif /* no HAVE_SYS_PARAM_H */
24748# endif /* no _SC_PAGESIZE */
24749
24750#endif /* no HAVE_GETPAGESIZE */
24751
24752int
24753main ()
24754{
24755 char *data, *data2, *data3;
24756 int i, pagesize;
24757 int fd;
24758
24759 pagesize = getpagesize ();
24760
24761 /* First, make a file with some known garbage in it. */
24762 data = (char *) malloc (pagesize);
24763 if (!data)
24764 exit (1);
24765 for (i = 0; i < pagesize; ++i)
24766 *(data + i) = rand ();
24767 umask (0);
24768 fd = creat ("conftest.mmap", 0600);
24769 if (fd < 0)
24770 exit (1);
24771 if (write (fd, data, pagesize) != pagesize)
24772 exit (1);
24773 close (fd);
24774
24775 /* Mmap the file as read/write/shared and verify that we see the
24776 same garbage. */
24777 fd = open ("conftest.mmap", O_RDWR);
24778 if (fd < 0)
24779 exit (1);
24780 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24781 if (data2 == 0)
24782 exit (1);
24783 for (i = 0; i < pagesize; ++i)
24784 if (*(data + i) != *(data2 + i))
24785 exit (1);
24786
24787 /* Finally, make sure that changes to the mapped area
24788 percolate back to the file as seen by read(). */
24789 for (i = 0; i < pagesize; ++i)
24790 *(data2 + i) = *(data2 + i) + 1;
24791 data3 = (char *) malloc (pagesize);
24792 if (!data3)
24793 exit (1);
24794 if (read (fd, data3, pagesize) != pagesize)
24795 exit (1);
24796 for (i = 0; i < pagesize; ++i)
24797 if (*(data2 + i) != *(data3 + i))
24798 exit (1);
24799 close (fd);
24800 exit (0);
24801}
24802_ACEOF
24803if ac_fn_c_try_run "$LINENO"; then :
24804 magick_cv_func_mmap_fileio=yes
24805else
24806 magick_cv_func_mmap_fileio=no
24807fi
24808rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24809 conftest.$ac_objext conftest.beam conftest.$ac_ext
24810fi
24811
24812fi
24813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24814$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24815if test $magick_cv_func_mmap_fileio = yes; then
24816
24817$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24818
24819fi
24820rm -f conftest.mmap
24821
cristy8b350f62009-11-15 23:12:43 +000024822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024823$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024824if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024825 $as_echo_n "(cached) " >&6
24826else
cristy8b350f62009-11-15 23:12:43 +000024827 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024828 ac_cv_func_closedir_void=yes
24829else
cristy8b350f62009-11-15 23:12:43 +000024830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024831/* end confdefs.h. */
24832$ac_includes_default
24833#include <$ac_header_dirent>
24834#ifndef __cplusplus
24835int closedir ();
24836#endif
24837
24838int
24839main ()
24840{
24841return closedir (opendir (".")) != 0;
24842 ;
24843 return 0;
24844}
24845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024846if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024847 ac_cv_func_closedir_void=no
24848else
cristy8b350f62009-11-15 23:12:43 +000024849 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024850fi
cristy8b350f62009-11-15 23:12:43 +000024851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24852 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024853fi
24854
cristy3ed852e2009-09-05 21:47:34 +000024855fi
cristy8b350f62009-11-15 23:12:43 +000024856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024857$as_echo "$ac_cv_func_closedir_void" >&6; }
24858if test $ac_cv_func_closedir_void = yes; then
24859
cristy8b350f62009-11-15 23:12:43 +000024860$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024861
24862fi
24863
cristycd4c5312009-11-22 01:19:08 +000024864
24865
24866
24867 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024868do :
24869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024870ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24871"
cristy98dddb52010-11-04 00:30:15 +000024872if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024873 cat >>confdefs.h <<_ACEOF
24874#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24875_ACEOF
24876
24877fi
24878
24879done
24880
cristycd4c5312009-11-22 01:19:08 +000024881
24882
24883
24884
24885
24886
24887
cristy3ed852e2009-09-05 21:47:34 +000024888for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024889do :
24890 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024891if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024892 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024893#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024894_ACEOF
24895
24896fi
24897done
24898
cristy8b350f62009-11-15 23:12:43 +000024899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024900$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024901if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024902 $as_echo_n "(cached) " >&6
24903else
cristy8b350f62009-11-15 23:12:43 +000024904 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024905 ac_cv_func_mmap_fixed_mapped=no
24906else
cristy8b350f62009-11-15 23:12:43 +000024907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024908/* end confdefs.h. */
24909$ac_includes_default
24910/* malloc might have been renamed as rpl_malloc. */
24911#undef malloc
24912
24913/* Thanks to Mike Haertel and Jim Avera for this test.
24914 Here is a matrix of mmap possibilities:
24915 mmap private not fixed
24916 mmap private fixed at somewhere currently unmapped
24917 mmap private fixed at somewhere already mapped
24918 mmap shared not fixed
24919 mmap shared fixed at somewhere currently unmapped
24920 mmap shared fixed at somewhere already mapped
24921 For private mappings, we should verify that changes cannot be read()
24922 back from the file, nor mmap's back from the file at a different
24923 address. (There have been systems where private was not correctly
24924 implemented like the infamous i386 svr4.0, and systems where the
24925 VM page cache was not coherent with the file system buffer cache
24926 like early versions of FreeBSD and possibly contemporary NetBSD.)
24927 For shared mappings, we should conversely verify that changes get
24928 propagated back to all the places they're supposed to be.
24929
24930 Grep wants private fixed already mapped.
24931 The main things grep needs to know about mmap are:
24932 * does it exist and is it safe to write into the mmap'd area
24933 * how to use it (BSD variants) */
24934
24935#include <fcntl.h>
24936#include <sys/mman.h>
24937
24938#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24939char *malloc ();
24940#endif
24941
24942/* This mess was copied from the GNU getpagesize.h. */
24943#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024944# ifdef _SC_PAGESIZE
24945# define getpagesize() sysconf(_SC_PAGESIZE)
24946# else /* no _SC_PAGESIZE */
24947# ifdef HAVE_SYS_PARAM_H
24948# include <sys/param.h>
24949# ifdef EXEC_PAGESIZE
24950# define getpagesize() EXEC_PAGESIZE
24951# else /* no EXEC_PAGESIZE */
24952# ifdef NBPG
24953# define getpagesize() NBPG * CLSIZE
24954# ifndef CLSIZE
24955# define CLSIZE 1
24956# endif /* no CLSIZE */
24957# else /* no NBPG */
24958# ifdef NBPC
24959# define getpagesize() NBPC
24960# else /* no NBPC */
24961# ifdef PAGESIZE
24962# define getpagesize() PAGESIZE
24963# endif /* PAGESIZE */
24964# endif /* no NBPC */
24965# endif /* no NBPG */
24966# endif /* no EXEC_PAGESIZE */
24967# else /* no HAVE_SYS_PARAM_H */
24968# define getpagesize() 8192 /* punt totally */
24969# endif /* no HAVE_SYS_PARAM_H */
24970# endif /* no _SC_PAGESIZE */
24971
24972#endif /* no HAVE_GETPAGESIZE */
24973
24974int
24975main ()
24976{
24977 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024978 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024979 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024980 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024981
24982 pagesize = getpagesize ();
24983
24984 /* First, make a file with some known garbage in it. */
24985 data = (char *) malloc (pagesize);
24986 if (!data)
24987 return 1;
24988 for (i = 0; i < pagesize; ++i)
24989 *(data + i) = rand ();
24990 umask (0);
24991 fd = creat ("conftest.mmap", 0600);
24992 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024993 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024994 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024995 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024996 close (fd);
24997
cristycd4c5312009-11-22 01:19:08 +000024998 /* Next, check that the tail of a page is zero-filled. File must have
24999 non-zero length, otherwise we risk SIGBUS for entire page. */
25000 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
25001 if (fd2 < 0)
25002 return 4;
cristyc54f5d42009-11-27 21:36:31 +000025003 cdata2 = "";
25004 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000025005 return 5;
cristyc54f5d42009-11-27 21:36:31 +000025006 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000025007 if (data2 == MAP_FAILED)
25008 return 6;
25009 for (i = 0; i < pagesize; ++i)
25010 if (*(data2 + i))
25011 return 7;
25012 close (fd2);
25013 if (munmap (data2, pagesize))
25014 return 8;
25015
cristy3ed852e2009-09-05 21:47:34 +000025016 /* Next, try to mmap the file at a fixed address which already has
25017 something else allocated at it. If we can, also make sure that
25018 we see the same garbage. */
25019 fd = open ("conftest.mmap", O_RDWR);
25020 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000025021 return 9;
cristy3ed852e2009-09-05 21:47:34 +000025022 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25023 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000025024 return 10;
cristy3ed852e2009-09-05 21:47:34 +000025025 for (i = 0; i < pagesize; ++i)
25026 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000025027 return 11;
cristy3ed852e2009-09-05 21:47:34 +000025028
25029 /* Finally, make sure that changes to the mapped area do not
25030 percolate back to the file as seen by read(). (This is a bug on
25031 some variants of i386 svr4.0.) */
25032 for (i = 0; i < pagesize; ++i)
25033 *(data2 + i) = *(data2 + i) + 1;
25034 data3 = (char *) malloc (pagesize);
25035 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000025036 return 12;
cristy3ed852e2009-09-05 21:47:34 +000025037 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000025038 return 13;
cristy3ed852e2009-09-05 21:47:34 +000025039 for (i = 0; i < pagesize; ++i)
25040 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000025041 return 14;
cristy3ed852e2009-09-05 21:47:34 +000025042 close (fd);
25043 return 0;
25044}
25045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025046if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025047 ac_cv_func_mmap_fixed_mapped=yes
25048else
cristy8b350f62009-11-15 23:12:43 +000025049 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000025050fi
cristy8b350f62009-11-15 23:12:43 +000025051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25052 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025053fi
25054
cristy3ed852e2009-09-05 21:47:34 +000025055fi
cristy8b350f62009-11-15 23:12:43 +000025056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000025057$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
25058if test $ac_cv_func_mmap_fixed_mapped = yes; then
25059
cristy8b350f62009-11-15 23:12:43 +000025060$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025061
25062fi
cristycd4c5312009-11-22 01:19:08 +000025063rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000025064
cristy3ed852e2009-09-05 21:47:34 +000025065for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000025066do :
25067 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025068if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025069 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025070#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000025071_ACEOF
25072
25073fi
25074
25075done
25076
cristy3ed852e2009-09-05 21:47:34 +000025077for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000025078do :
25079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25080ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025081if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025082 cat >>confdefs.h <<_ACEOF
25083#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25084_ACEOF
25085
25086fi
25087done
25088
25089if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025091$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025092if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025093 $as_echo_n "(cached) " >&6
25094else
cristy8b350f62009-11-15 23:12:43 +000025095 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025096 ac_cv_func_fork_works=cross
25097else
cristy8b350f62009-11-15 23:12:43 +000025098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025099/* end confdefs.h. */
25100$ac_includes_default
25101int
25102main ()
25103{
25104
25105 /* By Ruediger Kuhlmann. */
25106 return fork () < 0;
25107
25108 ;
25109 return 0;
25110}
25111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025112if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025113 ac_cv_func_fork_works=yes
25114else
cristy8b350f62009-11-15 23:12:43 +000025115 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025116fi
cristy8b350f62009-11-15 23:12:43 +000025117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25118 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025119fi
25120
cristy3ed852e2009-09-05 21:47:34 +000025121fi
cristy8b350f62009-11-15 23:12:43 +000025122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025123$as_echo "$ac_cv_func_fork_works" >&6; }
25124
25125else
25126 ac_cv_func_fork_works=$ac_cv_func_fork
25127fi
25128if test "x$ac_cv_func_fork_works" = xcross; then
25129 case $host in
25130 *-*-amigaos* | *-*-msdosdjgpp*)
25131 # Override, as these systems have only a dummy fork() stub
25132 ac_cv_func_fork_works=no
25133 ;;
25134 *)
25135 ac_cv_func_fork_works=yes
25136 ;;
25137 esac
cristy8b350f62009-11-15 23:12:43 +000025138 { $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 +000025139$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25140fi
25141ac_cv_func_vfork_works=$ac_cv_func_vfork
25142if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025144$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025145if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025146 $as_echo_n "(cached) " >&6
25147else
cristy8b350f62009-11-15 23:12:43 +000025148 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025149 ac_cv_func_vfork_works=cross
25150else
cristy8b350f62009-11-15 23:12:43 +000025151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025152/* end confdefs.h. */
25153/* Thanks to Paul Eggert for this test. */
25154$ac_includes_default
25155#include <sys/wait.h>
25156#ifdef HAVE_VFORK_H
25157# include <vfork.h>
25158#endif
25159/* On some sparc systems, changes by the child to local and incoming
25160 argument registers are propagated back to the parent. The compiler
25161 is told about this with #include <vfork.h>, but some compilers
25162 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25163 static variable whose address is put into a register that is
25164 clobbered by the vfork. */
25165static void
25166#ifdef __cplusplus
25167sparc_address_test (int arg)
25168# else
25169sparc_address_test (arg) int arg;
25170#endif
25171{
25172 static pid_t child;
25173 if (!child) {
25174 child = vfork ();
25175 if (child < 0) {
25176 perror ("vfork");
25177 _exit(2);
25178 }
25179 if (!child) {
25180 arg = getpid();
25181 write(-1, "", 0);
25182 _exit (arg);
25183 }
25184 }
25185}
25186
25187int
25188main ()
25189{
25190 pid_t parent = getpid ();
25191 pid_t child;
25192
25193 sparc_address_test (0);
25194
25195 child = vfork ();
25196
25197 if (child == 0) {
25198 /* Here is another test for sparc vfork register problems. This
25199 test uses lots of local variables, at least as many local
25200 variables as main has allocated so far including compiler
25201 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25202 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25203 reuse the register of parent for one of the local variables,
25204 since it will think that parent can't possibly be used any more
25205 in this routine. Assigning to the local variable will thus
25206 munge parent in the parent process. */
25207 pid_t
25208 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25209 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25210 /* Convince the compiler that p..p7 are live; otherwise, it might
25211 use the same hardware register for all 8 local variables. */
25212 if (p != p1 || p != p2 || p != p3 || p != p4
25213 || p != p5 || p != p6 || p != p7)
25214 _exit(1);
25215
25216 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25217 from child file descriptors. If the child closes a descriptor
25218 before it execs or exits, this munges the parent's descriptor
25219 as well. Test for this by closing stdout in the child. */
25220 _exit(close(fileno(stdout)) != 0);
25221 } else {
25222 int status;
25223 struct stat st;
25224
25225 while (wait(&status) != child)
25226 ;
25227 return (
25228 /* Was there some problem with vforking? */
25229 child < 0
25230
25231 /* Did the child fail? (This shouldn't happen.) */
25232 || status
25233
25234 /* Did the vfork/compiler bug occur? */
25235 || parent != getpid()
25236
25237 /* Did the file descriptor bug occur? */
25238 || fstat(fileno(stdout), &st) != 0
25239 );
25240 }
25241}
25242_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025243if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025244 ac_cv_func_vfork_works=yes
25245else
cristy8b350f62009-11-15 23:12:43 +000025246 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025247fi
cristy8b350f62009-11-15 23:12:43 +000025248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25249 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025250fi
25251
cristy3ed852e2009-09-05 21:47:34 +000025252fi
cristy8b350f62009-11-15 23:12:43 +000025253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025254$as_echo "$ac_cv_func_vfork_works" >&6; }
25255
25256fi;
25257if test "x$ac_cv_func_fork_works" = xcross; then
25258 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025259 { $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 +000025260$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25261fi
25262
25263if test "x$ac_cv_func_vfork_works" = xyes; then
25264
cristy8b350f62009-11-15 23:12:43 +000025265$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025266
25267else
25268
cristy8b350f62009-11-15 23:12:43 +000025269$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025270
25271fi
25272if test "x$ac_cv_func_fork_works" = xyes; then
25273
cristy8b350f62009-11-15 23:12:43 +000025274$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025275
25276fi
25277
cristy8b350f62009-11-15 23:12:43 +000025278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025279$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025280if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025281 $as_echo_n "(cached) " >&6
25282else
cristy8b350f62009-11-15 23:12:43 +000025283 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025284 ac_cv_func_memcmp_working=no
25285else
cristy8b350f62009-11-15 23:12:43 +000025286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025287/* end confdefs.h. */
25288$ac_includes_default
25289int
25290main ()
25291{
25292
25293 /* Some versions of memcmp are not 8-bit clean. */
25294 char c0 = '\100', c1 = '\200', c2 = '\201';
25295 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25296 return 1;
25297
25298 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25299 or more and with at least one buffer not starting on a 4-byte boundary.
25300 William Lewis provided this test program. */
25301 {
25302 char foo[21];
25303 char bar[21];
25304 int i;
25305 for (i = 0; i < 4; i++)
25306 {
25307 char *a = foo + i;
25308 char *b = bar + i;
25309 strcpy (a, "--------01111111");
25310 strcpy (b, "--------10000000");
25311 if (memcmp (a, b, 16) >= 0)
25312 return 1;
25313 }
25314 return 0;
25315 }
25316
25317 ;
25318 return 0;
25319}
25320_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025321if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025322 ac_cv_func_memcmp_working=yes
25323else
cristy8b350f62009-11-15 23:12:43 +000025324 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025325fi
cristy8b350f62009-11-15 23:12:43 +000025326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25327 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025328fi
25329
cristy3ed852e2009-09-05 21:47:34 +000025330fi
cristy8b350f62009-11-15 23:12:43 +000025331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025332$as_echo "$ac_cv_func_memcmp_working" >&6; }
25333test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25334 *" memcmp.$ac_objext "* ) ;;
25335 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25336 ;;
25337esac
25338
25339
cristy3ed852e2009-09-05 21:47:34 +000025340for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025341do :
25342 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25343ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025344if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025345 cat >>confdefs.h <<_ACEOF
25346#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25347_ACEOF
25348
25349fi
25350
25351done
25352
cristy8b350f62009-11-15 23:12:43 +000025353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025354$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025355if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025356 $as_echo_n "(cached) " >&6
25357else
25358 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25359 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25360 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025362/* end confdefs.h. */
25363$ac_includes_default
25364#ifdef HAVE_SYS_SELECT_H
25365# include <sys/select.h>
25366#endif
25367#ifdef HAVE_SYS_SOCKET_H
25368# include <sys/socket.h>
25369#endif
25370
25371int
25372main ()
25373{
25374extern int select ($ac_arg1,
25375 $ac_arg234, $ac_arg234, $ac_arg234,
25376 $ac_arg5);
25377 ;
25378 return 0;
25379}
25380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025381if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025382 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025383fi
cristy3ed852e2009-09-05 21:47:34 +000025384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25385 done
25386 done
25387done
25388# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025389: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025390
25391fi
cristy8b350f62009-11-15 23:12:43 +000025392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025393$as_echo "$ac_cv_func_select_args" >&6; }
25394ac_save_IFS=$IFS; IFS=','
25395set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25396IFS=$ac_save_IFS
25397shift
25398
25399cat >>confdefs.h <<_ACEOF
25400#define SELECT_TYPE_ARG1 $1
25401_ACEOF
25402
25403
25404cat >>confdefs.h <<_ACEOF
25405#define SELECT_TYPE_ARG234 ($2)
25406_ACEOF
25407
25408
25409cat >>confdefs.h <<_ACEOF
25410#define SELECT_TYPE_ARG5 ($3)
25411_ACEOF
25412
25413rm -f conftest*
25414
cristyda16f162011-02-19 23:52:17 +000025415if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025416 $as_echo_n "(cached) " >&6
25417else
25418 ac_cv_func_setvbuf_reversed=no
25419fi
25420
25421
cristy8b350f62009-11-15 23:12:43 +000025422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025423$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025424if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025425 $as_echo_n "(cached) " >&6
25426else
cristy8b350f62009-11-15 23:12:43 +000025427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025428/* end confdefs.h. */
25429#include <sys/types.h>
25430#include <signal.h>
25431
25432int
25433main ()
25434{
25435return *(signal (0, 0)) (0) == 1;
25436 ;
25437 return 0;
25438}
25439_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025440if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025441 ac_cv_type_signal=int
25442else
cristy8b350f62009-11-15 23:12:43 +000025443 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025444fi
cristy3ed852e2009-09-05 21:47:34 +000025445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25446fi
cristy8b350f62009-11-15 23:12:43 +000025447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025448$as_echo "$ac_cv_type_signal" >&6; }
25449
25450cat >>confdefs.h <<_ACEOF
25451#define RETSIGTYPE $ac_cv_type_signal
25452_ACEOF
25453
25454
cristy8b350f62009-11-15 23:12:43 +000025455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025456$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025457if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025458 $as_echo_n "(cached) " >&6
25459else
cristy8b350f62009-11-15 23:12:43 +000025460 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025461 ac_cv_func_strtod=no
25462else
cristy8b350f62009-11-15 23:12:43 +000025463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025464/* end confdefs.h. */
25465
25466$ac_includes_default
25467#ifndef strtod
25468double strtod ();
25469#endif
25470int
25471main()
25472{
25473 {
25474 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25475 char *string = " +69";
25476 char *term;
25477 double value;
25478 value = strtod (string, &term);
25479 if (value != 69 || term != (string + 4))
25480 return 1;
25481 }
25482
25483 {
25484 /* Under Solaris 2.4, strtod returns the wrong value for the
25485 terminating character under some conditions. */
25486 char *string = "NaN";
25487 char *term;
25488 strtod (string, &term);
25489 if (term != string && *(term - 1) == 0)
25490 return 1;
25491 }
25492 return 0;
25493}
25494
25495_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025496if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025497 ac_cv_func_strtod=yes
25498else
cristy8b350f62009-11-15 23:12:43 +000025499 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025500fi
cristy8b350f62009-11-15 23:12:43 +000025501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25502 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025503fi
25504
cristy3ed852e2009-09-05 21:47:34 +000025505fi
cristy8b350f62009-11-15 23:12:43 +000025506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025507$as_echo "$ac_cv_func_strtod" >&6; }
25508if test $ac_cv_func_strtod = no; then
25509 case " $LIBOBJS " in
25510 *" strtod.$ac_objext "* ) ;;
25511 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25512 ;;
25513esac
25514
cristy8b350f62009-11-15 23:12:43 +000025515ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025516if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025517
cristy3ed852e2009-09-05 21:47:34 +000025518fi
25519
cristy3ed852e2009-09-05 21:47:34 +000025520if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025522$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025523if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025524 $as_echo_n "(cached) " >&6
25525else
25526 ac_check_lib_save_LIBS=$LIBS
25527LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025529/* end confdefs.h. */
25530
25531/* Override any GCC internal prototype to avoid an error.
25532 Use char because int might match the return type of a GCC
25533 builtin and then its argument prototype would still apply. */
25534#ifdef __cplusplus
25535extern "C"
25536#endif
25537char pow ();
25538int
25539main ()
25540{
25541return pow ();
25542 ;
25543 return 0;
25544}
25545_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025546if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025547 ac_cv_lib_m_pow=yes
25548else
cristy8b350f62009-11-15 23:12:43 +000025549 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025550fi
cristy8b350f62009-11-15 23:12:43 +000025551rm -f core conftest.err conftest.$ac_objext \
25552 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025553LIBS=$ac_check_lib_save_LIBS
25554fi
cristy8b350f62009-11-15 23:12:43 +000025555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025556$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025557if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025558 POW_LIB=-lm
25559else
cristy8b350f62009-11-15 23:12:43 +000025560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025561$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25562fi
25563
25564fi
25565
25566fi
25567
cristy7d4a1d62011-10-13 15:54:12 +000025568ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25569if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25570 ac_have_decl=1
25571else
25572 ac_have_decl=0
25573fi
25574
25575cat >>confdefs.h <<_ACEOF
25576#define HAVE_DECL_STRERROR_R $ac_have_decl
25577_ACEOF
25578
25579for ac_func in strerror_r
25580do :
25581 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25582if test "x$ac_cv_func_strerror_r" = xyes; then :
25583 cat >>confdefs.h <<_ACEOF
25584#define HAVE_STRERROR_R 1
25585_ACEOF
25586
25587fi
25588done
25589
25590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25591$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25592if ${ac_cv_func_strerror_r_char_p+:} false; then :
25593 $as_echo_n "(cached) " >&6
25594else
25595
25596 ac_cv_func_strerror_r_char_p=no
25597 if test $ac_cv_have_decl_strerror_r = yes; then
25598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25599/* end confdefs.h. */
25600$ac_includes_default
25601int
25602main ()
25603{
25604
25605 char buf[100];
25606 char x = *strerror_r (0, buf, sizeof buf);
25607 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025608 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025609
25610 ;
25611 return 0;
25612}
25613_ACEOF
25614if ac_fn_c_try_compile "$LINENO"; then :
25615 ac_cv_func_strerror_r_char_p=yes
25616fi
25617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25618 else
25619 # strerror_r is not declared. Choose between
25620 # systems that have relatively inaccessible declarations for the
25621 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25622 # former has a strerror_r that returns char*, while the latter
25623 # has a strerror_r that returns `int'.
25624 # This test should segfault on the DEC system.
25625 if test "$cross_compiling" = yes; then :
25626 :
25627else
25628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25629/* end confdefs.h. */
25630$ac_includes_default
25631 extern char *strerror_r ();
25632int
25633main ()
25634{
25635char buf[100];
25636 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025637 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025638 ;
25639 return 0;
25640}
25641_ACEOF
25642if ac_fn_c_try_run "$LINENO"; then :
25643 ac_cv_func_strerror_r_char_p=yes
25644fi
25645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25646 conftest.$ac_objext conftest.beam conftest.$ac_ext
25647fi
25648
25649 fi
25650
25651fi
25652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25653$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25654if test $ac_cv_func_strerror_r_char_p = yes; then
25655
25656$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25657
25658fi
25659
cristy3ed852e2009-09-05 21:47:34 +000025660for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025661do :
25662 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025663if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025664 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025665#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025666_ACEOF
25667
cristy8b350f62009-11-15 23:12:43 +000025668ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025669if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025670
cristy8b350f62009-11-15 23:12:43 +000025671$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025672
25673fi
25674
25675fi
25676done
25677
25678
25679
cristy161b9262010-03-20 19:34:32 +000025680#
25681# Find math library
25682#
25683MATH_LIBS=''
25684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25685$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025686if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025687 $as_echo_n "(cached) " >&6
25688else
25689 ac_check_lib_save_LIBS=$LIBS
25690LIBS="-lm $LIBS"
25691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25692/* end confdefs.h. */
25693
25694/* Override any GCC internal prototype to avoid an error.
25695 Use char because int might match the return type of a GCC
25696 builtin and then its argument prototype would still apply. */
25697#ifdef __cplusplus
25698extern "C"
25699#endif
25700char sqrt ();
25701int
25702main ()
25703{
25704return sqrt ();
25705 ;
25706 return 0;
25707}
25708_ACEOF
25709if ac_fn_c_try_link "$LINENO"; then :
25710 ac_cv_lib_m_sqrt=yes
25711else
25712 ac_cv_lib_m_sqrt=no
25713fi
25714rm -f core conftest.err conftest.$ac_objext \
25715 conftest$ac_exeext conftest.$ac_ext
25716LIBS=$ac_check_lib_save_LIBS
25717fi
25718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25719$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025720if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025721 MATH_LIBS="-lm"
25722fi
25723
25724LIBS="$MATH_LIBS $LIBS"
25725
25726
cristy568c2d42012-07-27 01:41:20 +000025727for 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 +000025728do :
25729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25730ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025731if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025732 cat >>confdefs.h <<_ACEOF
25733#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25734_ACEOF
25735
25736fi
25737done
25738
25739
cristye43a45e2009-09-28 14:49:00 +000025740#
25741# Check for clock_gettime().
25742#
cristy8b350f62009-11-15 23:12:43 +000025743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025744$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025745if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025746 $as_echo_n "(cached) " >&6
25747else
25748 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025750/* end confdefs.h. */
25751
25752/* Override any GCC internal prototype to avoid an error.
25753 Use char because int might match the return type of a GCC
25754 builtin and then its argument prototype would still apply. */
25755#ifdef __cplusplus
25756extern "C"
25757#endif
25758char clock_gettime ();
25759int
25760main ()
25761{
25762return clock_gettime ();
25763 ;
25764 return 0;
25765}
25766_ACEOF
25767for ac_lib in '' rt; do
25768 if test -z "$ac_lib"; then
25769 ac_res="none required"
25770 else
25771 ac_res=-l$ac_lib
25772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25773 fi
cristy8b350f62009-11-15 23:12:43 +000025774 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025775 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025776fi
cristy8b350f62009-11-15 23:12:43 +000025777rm -f core conftest.err conftest.$ac_objext \
25778 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025779 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025780 break
25781fi
25782done
cristyda16f162011-02-19 23:52:17 +000025783if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025784
cristye43a45e2009-09-28 14:49:00 +000025785else
25786 ac_cv_search_clock_gettime=no
25787fi
25788rm conftest.$ac_ext
25789LIBS=$ac_func_search_save_LIBS
25790fi
cristy8b350f62009-11-15 23:12:43 +000025791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025792$as_echo "$ac_cv_search_clock_gettime" >&6; }
25793ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025794if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25796
25797
cristy8b350f62009-11-15 23:12:43 +000025798$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025799
cristy8b350f62009-11-15 23:12:43 +000025800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025801$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025803/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025804
25805 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025806int
25807main ()
25808{
25809clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025810 ;
25811 return 0;
25812}
25813_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025814if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025815
cristy09b53e12011-10-14 12:47:22 +000025816 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25817$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025818
cristy8b350f62009-11-15 23:12:43 +000025819$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025820
25821
25822else
cristy09b53e12011-10-14 12:47:22 +000025823 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25824$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025825
25826fi
cristye43a45e2009-09-28 14:49:00 +000025827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25828
25829else
25830
cristy8b350f62009-11-15 23:12:43 +000025831 for ac_func in gettimeofday ftime
25832do :
25833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25834ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025835if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025836 cat >>confdefs.h <<_ACEOF
25837#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25838_ACEOF
25839 break
25840fi
25841done
25842
25843
25844
25845fi
25846
25847
cristy3ed852e2009-09-05 21:47:34 +000025848########
25849#
25850# Check for function prototypes
25851#
25852########
25853
cristy8b350f62009-11-15 23:12:43 +000025854ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025855#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025856"
cristyda16f162011-02-19 23:52:17 +000025857if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025858 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025859else
cristy8b350f62009-11-15 23:12:43 +000025860 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025861fi
25862
cristy3ed852e2009-09-05 21:47:34 +000025863cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025864#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025866ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025867#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025868"
cristyda16f162011-02-19 23:52:17 +000025869if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025870 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025871else
cristy8b350f62009-11-15 23:12:43 +000025872 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025873fi
25874
cristy3ed852e2009-09-05 21:47:34 +000025875cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025876#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025877_ACEOF
25878
25879
cristy8b350f62009-11-15 23:12:43 +000025880ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025881#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025882"
cristyda16f162011-02-19 23:52:17 +000025883if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025884 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025885else
cristy8b350f62009-11-15 23:12:43 +000025886 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025887fi
25888
cristy3ed852e2009-09-05 21:47:34 +000025889cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025890#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025891_ACEOF
25892
25893
cristy8b350f62009-11-15 23:12:43 +000025894ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025895#include <stdio.h>
25896#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025897"
cristyda16f162011-02-19 23:52:17 +000025898if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025899 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025900else
cristy8b350f62009-11-15 23:12:43 +000025901 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025902fi
25903
cristy3ed852e2009-09-05 21:47:34 +000025904cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025905#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025906_ACEOF
25907
25908
cristy3ed852e2009-09-05 21:47:34 +000025909########
25910#
25911# C++ Support Tests (For Magick++)
25912#
25913########
25914have_magick_plus_plus='no'
25915if test "$with_magick_plus_plus" = 'yes'; then
25916 OLIBS="$LIBS"
25917 LIBS=''
25918 ac_ext=cpp
25919ac_cpp='$CXXCPP $CPPFLAGS'
25920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25923
25924
25925 # Full set of headers used...
25926 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25927 # functional iomanip iosfwd iostream iterator list string strstream utility
25928 ac_ext=cpp
25929ac_cpp='$CXXCPP $CPPFLAGS'
25930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25933
25934 ac_ext=cpp
25935ac_cpp='$CXXCPP $CPPFLAGS'
25936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25939if test -z "$CXX"; then
25940 if test -n "$CCC"; then
25941 CXX=$CCC
25942 else
25943 if test -n "$ac_tool_prefix"; then
25944 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25945 do
25946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25947set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025949$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025950if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025951 $as_echo_n "(cached) " >&6
25952else
25953 if test -n "$CXX"; then
25954 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25955else
25956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25957for as_dir in $PATH
25958do
25959 IFS=$as_save_IFS
25960 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025963 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025965 break 2
25966 fi
25967done
cristy8b350f62009-11-15 23:12:43 +000025968 done
cristy3ed852e2009-09-05 21:47:34 +000025969IFS=$as_save_IFS
25970
25971fi
25972fi
25973CXX=$ac_cv_prog_CXX
25974if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025976$as_echo "$CXX" >&6; }
25977else
cristy8b350f62009-11-15 23:12:43 +000025978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025979$as_echo "no" >&6; }
25980fi
25981
25982
25983 test -n "$CXX" && break
25984 done
25985fi
25986if test -z "$CXX"; then
25987 ac_ct_CXX=$CXX
25988 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25989do
25990 # Extract the first word of "$ac_prog", so it can be a program name with args.
25991set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025993$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025994if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025995 $as_echo_n "(cached) " >&6
25996else
25997 if test -n "$ac_ct_CXX"; then
25998 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25999else
26000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26001for as_dir in $PATH
26002do
26003 IFS=$as_save_IFS
26004 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026005 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026007 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026009 break 2
26010 fi
26011done
cristy8b350f62009-11-15 23:12:43 +000026012 done
cristy3ed852e2009-09-05 21:47:34 +000026013IFS=$as_save_IFS
26014
26015fi
26016fi
26017ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26018if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026020$as_echo "$ac_ct_CXX" >&6; }
26021else
cristy8b350f62009-11-15 23:12:43 +000026022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026023$as_echo "no" >&6; }
26024fi
26025
26026
26027 test -n "$ac_ct_CXX" && break
26028done
26029
26030 if test "x$ac_ct_CXX" = x; then
26031 CXX="g++"
26032 else
26033 case $cross_compiling:$ac_tool_warned in
26034yes:)
cristy8b350f62009-11-15 23:12:43 +000026035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26037ac_tool_warned=yes ;;
26038esac
26039 CXX=$ac_ct_CXX
26040 fi
26041fi
26042
26043 fi
26044fi
26045# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000026046$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000026047set X $ac_compile
26048ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000026049for ac_option in --version -v -V -qversion; do
26050 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000026051case "(($ac_try" in
26052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26053 *) ac_try_echo=$ac_try;;
26054esac
cristy8b350f62009-11-15 23:12:43 +000026055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26056$as_echo "$ac_try_echo"; } >&5
26057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000026058 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026059 if test -s conftest.err; then
26060 sed '10a\
26061... rest of stderr output deleted ...
26062 10q' conftest.err >conftest.er1
26063 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026064 fi
cristycd4c5312009-11-22 01:19:08 +000026065 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26067 test $ac_status = 0; }
26068done
cristy3ed852e2009-09-05 21:47:34 +000026069
cristy8b350f62009-11-15 23:12:43 +000026070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026071$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026072if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026073 $as_echo_n "(cached) " >&6
26074else
cristy8b350f62009-11-15 23:12:43 +000026075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026076/* end confdefs.h. */
26077
26078int
26079main ()
26080{
26081#ifndef __GNUC__
26082 choke me
26083#endif
26084
26085 ;
26086 return 0;
26087}
26088_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026089if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026090 ac_compiler_gnu=yes
26091else
cristy8b350f62009-11-15 23:12:43 +000026092 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026093fi
cristy3ed852e2009-09-05 21:47:34 +000026094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26095ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26096
26097fi
cristy8b350f62009-11-15 23:12:43 +000026098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026099$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26100if test $ac_compiler_gnu = yes; then
26101 GXX=yes
26102else
26103 GXX=
26104fi
26105ac_test_CXXFLAGS=${CXXFLAGS+set}
26106ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026108$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026109if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026110 $as_echo_n "(cached) " >&6
26111else
26112 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26113 ac_cxx_werror_flag=yes
26114 ac_cv_prog_cxx_g=no
26115 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026117/* end confdefs.h. */
26118
26119int
26120main ()
26121{
26122
26123 ;
26124 return 0;
26125}
26126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026127if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026128 ac_cv_prog_cxx_g=yes
26129else
cristy8b350f62009-11-15 23:12:43 +000026130 CXXFLAGS=""
26131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026132/* end confdefs.h. */
26133
26134int
26135main ()
26136{
26137
26138 ;
26139 return 0;
26140}
26141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026142if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026143
cristy8b350f62009-11-15 23:12:43 +000026144else
26145 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026146 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026148/* end confdefs.h. */
26149
26150int
26151main ()
26152{
26153
26154 ;
26155 return 0;
26156}
26157_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026158if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026159 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026160fi
cristy3ed852e2009-09-05 21:47:34 +000026161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26162fi
cristy3ed852e2009-09-05 21:47:34 +000026163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26164fi
cristy3ed852e2009-09-05 21:47:34 +000026165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26166 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26167fi
cristy8b350f62009-11-15 23:12:43 +000026168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026169$as_echo "$ac_cv_prog_cxx_g" >&6; }
26170if test "$ac_test_CXXFLAGS" = set; then
26171 CXXFLAGS=$ac_save_CXXFLAGS
26172elif test $ac_cv_prog_cxx_g = yes; then
26173 if test "$GXX" = yes; then
26174 CXXFLAGS="-g -O2"
26175 else
26176 CXXFLAGS="-g"
26177 fi
26178else
26179 if test "$GXX" = yes; then
26180 CXXFLAGS="-O2"
26181 else
26182 CXXFLAGS=
26183 fi
26184fi
26185ac_ext=cpp
26186ac_cpp='$CXXCPP $CPPFLAGS'
26187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26190
cristy73bd4a52010-10-05 11:24:23 +000026191depcc="$CXX" am_compiler_list=
26192
26193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26194$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026195if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026196 $as_echo_n "(cached) " >&6
26197else
26198 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26199 # We make a subdir and do the tests there. Otherwise we can end up
26200 # making bogus files that we don't know about and never remove. For
26201 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026202 # making a dummy file named 'D' -- because '-MD' means "put the output
26203 # in D".
cristy7247bba2012-02-05 16:37:27 +000026204 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026205 mkdir conftest.dir
26206 # Copy depcomp to subdir because otherwise we won't find it if we're
26207 # using a relative directory.
26208 cp "$am_depcomp" conftest.dir
26209 cd conftest.dir
26210 # We will build objects and dependencies in a subdirectory because
26211 # it helps to detect inapplicable dependency modes. For instance
26212 # both Tru64's cc and ICC support -MD to output dependencies as a
26213 # side effect of compilation, but ICC will put the dependencies in
26214 # the current directory while Tru64 will put them in the object
26215 # directory.
26216 mkdir sub
26217
26218 am_cv_CXX_dependencies_compiler_type=none
26219 if test "$am_compiler_list" = ""; then
26220 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26221 fi
26222 am__universal=false
26223 case " $depcc " in #(
26224 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26225 esac
26226
26227 for depmode in $am_compiler_list; do
26228 # Setup a source with many dependencies, because some compilers
26229 # like to wrap large dependency lists on column 80 (with \), and
26230 # we should not choose a depcomp mode which is confused by this.
26231 #
26232 # We need to recreate these files for each test, as the compiler may
26233 # overwrite some of them when testing with obscure command lines.
26234 # This happens at least with the AIX C compiler.
26235 : > sub/conftest.c
26236 for i in 1 2 3 4 5 6; do
26237 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026238 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26239 # Solaris 10 /bin/sh.
26240 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026241 done
26242 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26243
cristyc0890a62012-07-19 00:18:20 +000026244 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026245 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026246 # handle '-M -o', and we need to detect this. Also, some Intel
26247 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026248 am__obj=sub/conftest.${OBJEXT-o}
26249 am__minus_obj="-o $am__obj"
26250 case $depmode in
26251 gcc)
26252 # This depmode causes a compiler race in universal mode.
26253 test "$am__universal" = false || continue
26254 ;;
26255 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026256 # After this tag, mechanisms are not by side-effect, so they'll
26257 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026258 if test "x$enable_dependency_tracking" = xyes; then
26259 continue
26260 else
26261 break
26262 fi
26263 ;;
cristy7247bba2012-02-05 16:37:27 +000026264 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026265 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026266 # not run yet. These depmodes are late enough in the game, and
26267 # so weak that their functioning should not be impacted.
26268 am__obj=conftest.${OBJEXT-o}
26269 am__minus_obj=
26270 ;;
26271 none) break ;;
26272 esac
26273 if depmode=$depmode \
26274 source=sub/conftest.c object=$am__obj \
26275 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26276 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26277 >/dev/null 2>conftest.err &&
26278 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26279 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26280 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26281 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26282 # icc doesn't choke on unknown options, it will just issue warnings
26283 # or remarks (even with -Werror). So we grep stderr for any message
26284 # that says an option was ignored or not supported.
26285 # When given -MP, icc 7.0 and 7.1 complain thusly:
26286 # icc: Command line warning: ignoring option '-M'; no argument required
26287 # The diagnosis changed in icc 8.0:
26288 # icc: Command line remark: option '-MP' not supported
26289 if (grep 'ignoring option' conftest.err ||
26290 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26291 am_cv_CXX_dependencies_compiler_type=$depmode
26292 break
26293 fi
26294 fi
26295 done
26296
26297 cd ..
26298 rm -rf conftest.dir
26299else
26300 am_cv_CXX_dependencies_compiler_type=none
26301fi
26302
26303fi
26304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26305$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26306CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26307
26308 if
26309 test "x$enable_dependency_tracking" != xno \
26310 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26311 am__fastdepCXX_TRUE=
26312 am__fastdepCXX_FALSE='#'
26313else
26314 am__fastdepCXX_TRUE='#'
26315 am__fastdepCXX_FALSE=
26316fi
26317
26318
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26320$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026321if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026322 $as_echo_n "(cached) " >&6
26323else
26324
26325 ac_ext=cpp
26326ac_cpp='$CXXCPP $CPPFLAGS'
26327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26330
26331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26332/* end confdefs.h. */
26333
26334int f(int x){return 1;}
26335int f(char x){return 1;}
26336int f(bool x){return 1;}
26337
26338int
26339main ()
26340{
26341bool b = true; return f(b);
26342 ;
26343 return 0;
26344}
26345_ACEOF
26346if ac_fn_cxx_try_compile "$LINENO"; then :
26347 ax_cv_cxx_bool=yes
26348else
26349 ax_cv_cxx_bool=no
26350fi
26351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26352 ac_ext=cpp
26353ac_cpp='$CXXCPP $CPPFLAGS'
26354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26357
26358
26359fi
26360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26361$as_echo "$ax_cv_cxx_bool" >&6; }
26362if test "$ax_cv_cxx_bool" = yes; then
26363
26364$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26365
26366fi
26367
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26369$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026370if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026371 $as_echo_n "(cached) " >&6
26372else
26373
26374 ac_ext=cpp
26375ac_cpp='$CXXCPP $CPPFLAGS'
26376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26379
26380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26381/* end confdefs.h. */
26382namespace Outer { namespace Inner { int i = 0; }}
26383int
26384main ()
26385{
26386using namespace Outer::Inner; return i;
26387 ;
26388 return 0;
26389}
26390_ACEOF
26391if ac_fn_cxx_try_compile "$LINENO"; then :
26392 ax_cv_cxx_namespaces=yes
26393else
26394 ax_cv_cxx_namespaces=no
26395fi
26396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26397 ac_ext=cpp
26398ac_cpp='$CXXCPP $CPPFLAGS'
26399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26402
26403
26404fi
26405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26406$as_echo "$ax_cv_cxx_namespaces" >&6; }
26407if test "$ax_cv_cxx_namespaces" = yes; then
26408
26409$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26410
26411fi
26412
26413
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26415$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026416if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026417 $as_echo_n "(cached) " >&6
26418else
26419
26420 ac_ext=cpp
26421ac_cpp='$CXXCPP $CPPFLAGS'
26422ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26423ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26424ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26425
26426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26427/* end confdefs.h. */
26428#include <iostream>
26429 std::istream& is = std::cin;
26430int
26431main ()
26432{
26433
26434 ;
26435 return 0;
26436}
26437_ACEOF
26438if ac_fn_cxx_try_compile "$LINENO"; then :
26439 ax_cv_cxx_have_std_namespace=yes
26440else
26441 ax_cv_cxx_have_std_namespace=no
26442fi
26443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26444 ac_ext=cpp
26445ac_cpp='$CXXCPP $CPPFLAGS'
26446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26449
26450
26451fi
26452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26453$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26454 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26455
26456$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26457
26458 fi
26459
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26461$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026462if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026463 $as_echo_n "(cached) " >&6
26464else
26465
26466
26467 ac_ext=cpp
26468ac_cpp='$CXXCPP $CPPFLAGS'
26469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26472
26473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26474/* end confdefs.h. */
26475#include <iostream>
26476#include <map>
26477#include <iomanip>
26478#include <cmath>
26479#ifdef HAVE_NAMESPACES
26480using namespace std;
26481#endif
26482int
26483main ()
26484{
26485return 0;
26486 ;
26487 return 0;
26488}
26489_ACEOF
26490if ac_fn_cxx_try_compile "$LINENO"; then :
26491 ac_cv_cxx_have_std_libs=yes
26492else
26493 ac_cv_cxx_have_std_libs=no
26494fi
26495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26496 ac_ext=cpp
26497ac_cpp='$CXXCPP $CPPFLAGS'
26498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26501
26502
26503fi
26504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26505$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26506if test "$ac_cv_cxx_have_std_libs" = yes; then
26507
26508$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26509
26510fi
26511
cristy3ed852e2009-09-05 21:47:34 +000026512
26513 OPENMP_CXXFLAGS=
26514 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026515if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026516 enableval=$enable_openmp;
26517fi
26518
26519 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26521$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026522if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026523 $as_echo_n "(cached) " >&6
26524else
cristy8b350f62009-11-15 23:12:43 +000026525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26526/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026527
26528#ifndef _OPENMP
26529 choke me
26530#endif
26531#include <omp.h>
26532int main () { return omp_get_num_threads (); }
26533
26534_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026535if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026536 ac_cv_prog_cxx_openmp='none needed'
26537else
cristy8b350f62009-11-15 23:12:43 +000026538 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026539 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26540 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026541 ac_save_CXXFLAGS=$CXXFLAGS
26542 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26544/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026545
26546#ifndef _OPENMP
26547 choke me
26548#endif
26549#include <omp.h>
26550int main () { return omp_get_num_threads (); }
26551
26552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026553if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026554 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026555fi
cristy8b350f62009-11-15 23:12:43 +000026556rm -f core conftest.err conftest.$ac_objext \
26557 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026558 CXXFLAGS=$ac_save_CXXFLAGS
26559 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26560 break
26561 fi
26562 done
26563fi
cristy8b350f62009-11-15 23:12:43 +000026564rm -f core conftest.err conftest.$ac_objext \
26565 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026566fi
cristy8b350f62009-11-15 23:12:43 +000026567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026568$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26569 case $ac_cv_prog_cxx_openmp in #(
26570 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026571 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026572 *)
cristy8b350f62009-11-15 23:12:43 +000026573 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026574 esac
26575 fi
26576
26577
26578 ac_ext=c
26579ac_cpp='$CPP $CPPFLAGS'
26580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26582ac_compiler_gnu=$ac_cv_c_compiler_gnu
26583
26584
cristy8b350f62009-11-15 23:12:43 +000026585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026586$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26587 if \
cristy964cb7f2010-04-25 23:18:00 +000026588 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026589 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026590 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026591 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026592 have_magick_plus_plus='yes'
26593 else
26594 have_magick_plus_plus='no (failed tests)'
26595 fi
cristy09b53e12011-10-14 12:47:22 +000026596 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26597$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026598 LIBS="$OLIBS"
26599fi
cristy73bd4a52010-10-05 11:24:23 +000026600 if test "$have_magick_plus_plus" = 'yes'; then
26601 WITH_MAGICK_PLUS_PLUS_TRUE=
26602 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26603else
26604 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26605 WITH_MAGICK_PLUS_PLUS_FALSE=
26606fi
26607
cristy3ed852e2009-09-05 21:47:34 +000026608
26609# Only check for delegate libraries in subdirectories if requested.
26610if test "$enable_delegate_build" != 'no'; then
26611 # Check for delegate sub-directories and add -I & -L options as required.
26612 # This presumes that delegates are installed as detailed in the ImageMagick
26613 # README. If delegates are installed in a standard location where the
26614 # compiler will automatically find them then these options should not be
26615 # required.
26616
26617 #
26618 # Most delegates have includes in the same directory as the library, but not all...
26619 #
26620 # Includes
cristy2542fc62011-12-06 17:50:25 +000026621 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 +000026622 if test -d "$builddir/$dir"; then
26623 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26624 else
26625 if test -d "$srcdirfull/$dir"; then
26626 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26627 fi
26628 fi
26629 done
26630
26631 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026632 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 +000026633 if test -d "$builddir/$dir/.libs"; then
26634 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26635 else
26636 if test -d "$srcdirfull/$dir/.libs"; then
26637 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26638 fi
26639 fi
26640 if test -d "$builddir/$dir"; then
26641 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26642 else
26643 if test -d "$srcdirfull/$dir"; then
26644 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26645 fi
26646 fi
26647 done
26648fi
26649
26650# Assume that delegate headers reside under same directory as ImageMagick
26651# installation prefix.
26652MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26653
26654#
26655# Find the X11 RGB database
26656#
cristy8b350f62009-11-15 23:12:43 +000026657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026658$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026659if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026660 $as_echo_n "(cached) " >&6
26661else
26662 # Look for the header file in a standard set of common directories.
26663# Check X11 before X11Rn because it is often a symlink to the current release.
26664 for ac_dir in \
26665 /lib/usr/lib/X11 \
26666 /usr/X11/lib \
26667 /usr/X11R4/lib \
26668 /usr/X11R5/lib \
26669 /usr/X11R6/lib \
26670 /usr/X11R7/lib \
26671 /usr/X386/lib \
26672 /usr/XFree86/lib/X11 \
26673 /usr/athena/lib \
26674 /usr/lib \
26675 /usr/lib/X11 \
26676 /usr/lib/X11R4 \
26677 /usr/lib/X11R5 \
26678 /usr/lib/X11R6 \
26679 /usr/lib/X11R7 \
26680 /usr/local/X11/lib \
26681 /usr/local/X11R4/lib \
26682 /usr/local/X11R5/lib \
26683 /usr/local/X11R6/lib \
26684 /usr/local/lib \
26685 /usr/local/lib/X11 \
26686 /usr/local/lib/X11R4 \
26687 /usr/local/lib/X11R5 \
26688 /usr/local/lib/X11R6 \
26689 /usr/local/lib/X11R7 \
26690 /usr/local/x11r5/lib \
26691 /usr/lpp/Xamples/lib \
26692 /usr/openwin/lib \
26693 /usr/openwin/share/lib \
26694 /usr/unsupported/lib \
26695 /usr/x386/lib \
26696 ; do
26697 if test -f "$ac_dir/X11/rgb.txt"; then
26698 im_cv_x_configure="$ac_dir/X11/"
26699 break
26700 elif test -f "$ac_dir/rgb.txt"; then
26701 im_cv_x_configure="$ac_dir/"
26702 break
26703 fi
26704
26705 done
26706fi
cristy8b350f62009-11-15 23:12:43 +000026707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026708$as_echo "$im_cv_x_configure" >&6; }
26709X11_CONFIGURE_PATH="$im_cv_x_configure"
26710case "${build_os}" in
26711 mingw* )
26712 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26713 ;;
26714esac
26715
26716cat >>confdefs.h <<_ACEOF
26717#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26718_ACEOF
26719
26720
26721#
26722# Find OpenMP library
26723#
26724GOMP_LIBS=''
26725if test "$enable_openmp" != 'no'; then
26726 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026727 # Open64 (passes for GCC but uses different OpenMP implementation)
26728 if test "x$GOMP_LIBS" = x ; then
26729 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26731$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26732if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26733 $as_echo_n "(cached) " >&6
26734else
26735 ac_check_lib_save_LIBS=$LIBS
26736LIBS="-lopenmp $LIBS"
26737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26738/* end confdefs.h. */
26739
26740/* Override any GCC internal prototype to avoid an error.
26741 Use char because int might match the return type of a GCC
26742 builtin and then its argument prototype would still apply. */
26743#ifdef __cplusplus
26744extern "C"
26745#endif
26746char omp_get_num_procs ();
26747int
26748main ()
26749{
26750return omp_get_num_procs ();
26751 ;
26752 return 0;
26753}
26754_ACEOF
26755if ac_fn_c_try_link "$LINENO"; then :
26756 ac_cv_lib_openmp_omp_get_num_procs=yes
26757else
26758 ac_cv_lib_openmp_omp_get_num_procs=no
26759fi
26760rm -f core conftest.err conftest.$ac_objext \
26761 conftest$ac_exeext conftest.$ac_ext
26762LIBS=$ac_check_lib_save_LIBS
26763fi
26764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26765$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26766if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26767 GOMP_LIBS="-lopenmp"
26768fi
26769
26770 fi
26771 fi
26772 # GCC
26773 if test "x$GOMP_LIBS" = x ; then
26774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026775$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026776if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026777 $as_echo_n "(cached) " >&6
26778else
26779 ac_check_lib_save_LIBS=$LIBS
26780LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026782/* end confdefs.h. */
26783
26784/* Override any GCC internal prototype to avoid an error.
26785 Use char because int might match the return type of a GCC
26786 builtin and then its argument prototype would still apply. */
26787#ifdef __cplusplus
26788extern "C"
26789#endif
26790char GOMP_parallel_start ();
26791int
26792main ()
26793{
26794return GOMP_parallel_start ();
26795 ;
26796 return 0;
26797}
26798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026799if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026800 ac_cv_lib_gomp_GOMP_parallel_start=yes
26801else
cristy8b350f62009-11-15 23:12:43 +000026802 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026803fi
cristy8b350f62009-11-15 23:12:43 +000026804rm -f core conftest.err conftest.$ac_objext \
26805 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026806LIBS=$ac_check_lib_save_LIBS
26807fi
cristy8b350f62009-11-15 23:12:43 +000026808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026809$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026810if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026811 GOMP_LIBS="-lgomp"
26812fi
cristy18307f12011-12-30 01:20:16 +000026813
26814 fi
cristy3ed852e2009-09-05 21:47:34 +000026815 else
cristy18307f12011-12-30 01:20:16 +000026816 # Sun CC
26817 if test "x$GOMP_LIBS" = x ; then
26818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026819$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026820if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026821 $as_echo_n "(cached) " >&6
26822else
26823 ac_check_lib_save_LIBS=$LIBS
26824LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026826/* end confdefs.h. */
26827
26828/* Override any GCC internal prototype to avoid an error.
26829 Use char because int might match the return type of a GCC
26830 builtin and then its argument prototype would still apply. */
26831#ifdef __cplusplus
26832extern "C"
26833#endif
26834char sunw_mp_register_warn ();
26835int
26836main ()
26837{
26838return sunw_mp_register_warn ();
26839 ;
26840 return 0;
26841}
26842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026843if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026844 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26845else
cristy8b350f62009-11-15 23:12:43 +000026846 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026847fi
cristy8b350f62009-11-15 23:12:43 +000026848rm -f core conftest.err conftest.$ac_objext \
26849 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026850LIBS=$ac_check_lib_save_LIBS
26851fi
cristy8b350f62009-11-15 23:12:43 +000026852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026853$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026854if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026855 GOMP_LIBS="-lmtsk"
26856fi
cristy18307f12011-12-30 01:20:16 +000026857
26858 fi
26859 # AIX xlc
26860 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026862$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026863if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026864 $as_echo_n "(cached) " >&6
26865else
26866 ac_check_lib_save_LIBS=$LIBS
26867LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026869/* end confdefs.h. */
26870
26871/* Override any GCC internal prototype to avoid an error.
26872 Use char because int might match the return type of a GCC
26873 builtin and then its argument prototype would still apply. */
26874#ifdef __cplusplus
26875extern "C"
26876#endif
26877char _xlsmpFlush ();
26878int
26879main ()
26880{
26881return _xlsmpFlush ();
26882 ;
26883 return 0;
26884}
26885_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026886if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026887 ac_cv_lib_xlsmp__xlsmpFlush=yes
26888else
cristy8b350f62009-11-15 23:12:43 +000026889 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026890fi
cristy8b350f62009-11-15 23:12:43 +000026891rm -f core conftest.err conftest.$ac_objext \
26892 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026893LIBS=$ac_check_lib_save_LIBS
26894fi
cristy8b350f62009-11-15 23:12:43 +000026895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026896$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026897if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026898 GOMP_LIBS="-lxlsmp"
26899fi
cristy18307f12011-12-30 01:20:16 +000026900
26901 fi
26902 # SGI IRIX 6.5 MIPSpro C/C++
26903 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026905$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026906if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026907 $as_echo_n "(cached) " >&6
26908else
26909 ac_check_lib_save_LIBS=$LIBS
26910LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026912/* end confdefs.h. */
26913
26914/* Override any GCC internal prototype to avoid an error.
26915 Use char because int might match the return type of a GCC
26916 builtin and then its argument prototype would still apply. */
26917#ifdef __cplusplus
26918extern "C"
26919#endif
26920char mp_destroy ();
26921int
26922main ()
26923{
26924return mp_destroy ();
26925 ;
26926 return 0;
26927}
26928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026929if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026930 ac_cv_lib_mp_mp_destroy=yes
26931else
cristy8b350f62009-11-15 23:12:43 +000026932 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026933fi
cristy8b350f62009-11-15 23:12:43 +000026934rm -f core conftest.err conftest.$ac_objext \
26935 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026936LIBS=$ac_check_lib_save_LIBS
26937fi
cristy8b350f62009-11-15 23:12:43 +000026938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026939$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026940if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026941 GOMP_LIBS="-lmp"
26942fi
cristy18307f12011-12-30 01:20:16 +000026943
26944 fi
cristy3ed852e2009-09-05 21:47:34 +000026945 fi
26946 LIBS="$GOMP_LIBS $LIBS"
26947fi
26948
26949
26950#
26951# Find Posix threads library
26952#
26953THREAD_LIBS=''
26954if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26955
26956 if test "x$PTHREAD_LIBS" = "x"; then
26957 case "${host_cpu}-${host_os}" in
26958 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026959
26960
26961
26962ac_ext=c
26963ac_cpp='$CPP $CPPFLAGS'
26964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26966ac_compiler_gnu=$ac_cv_c_compiler_gnu
26967
26968magick_pthread_lib_ok=no
26969
26970LIB=-lc_r
26971save_LIBS="$LIBS"
26972LIBS="$LIBS $LIB"
26973
26974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26975$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26977/* end confdefs.h. */
26978#include <pthread.h>
26979int
26980main ()
26981{
26982 pthread_t th;
26983 pthread_join(th, 0);
26984 pthread_attr_init(0);
26985 pthread_cleanup_push(0, 0);
26986 pthread_create(0,0,0,0);
26987 pthread_cleanup_pop(0);
26988 ;
26989 return 0;
26990}
26991_ACEOF
26992if ac_fn_c_try_link "$LINENO"; then :
26993 magick_pthread_lib_ok=yes
26994fi
26995rm -f core conftest.err conftest.$ac_objext \
26996 conftest$ac_exeext conftest.$ac_ext
26997
26998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26999$as_echo "${magick_pthread_lib_ok}" >&6; }
27000if test "$magick_pthread_lib_ok" = yes
27001then
27002 PTHREAD_LIBS=-lc_r
27003 :
27004else
27005
27006 :
27007fi
27008
27009LIBS="$save_LIBS"
27010
27011ac_ext=c
27012ac_cpp='$CPP $CPPFLAGS'
27013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27015ac_compiler_gnu=$ac_cv_c_compiler_gnu
27016
27017 ;;
cristy3ed852e2009-09-05 21:47:34 +000027018 esac
27019 fi
27020
27021 for lib in pthread pthreads; do
27022 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000027023
27024
27025
27026ac_ext=c
27027ac_cpp='$CPP $CPPFLAGS'
27028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27030ac_compiler_gnu=$ac_cv_c_compiler_gnu
27031
27032magick_pthread_lib_ok=no
27033
27034LIB=-l$lib
27035save_LIBS="$LIBS"
27036LIBS="$LIBS $LIB"
27037
27038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
27039$as_echo_n "checking for the pthreads library $LIB... " >&6; }
27040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27041/* end confdefs.h. */
27042#include <pthread.h>
27043int
27044main ()
27045{
27046 pthread_t th;
27047 pthread_join(th, 0);
27048 pthread_attr_init(0);
27049 pthread_cleanup_push(0, 0);
27050 pthread_create(0,0,0,0);
27051 pthread_cleanup_pop(0);
27052 ;
27053 return 0;
27054}
27055_ACEOF
27056if ac_fn_c_try_link "$LINENO"; then :
27057 magick_pthread_lib_ok=yes
27058fi
27059rm -f core conftest.err conftest.$ac_objext \
27060 conftest$ac_exeext conftest.$ac_ext
27061
27062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
27063$as_echo "${magick_pthread_lib_ok}" >&6; }
27064if test "$magick_pthread_lib_ok" = yes
27065then
27066 PTHREAD_LIBS=-l$lib
27067 :
27068else
27069
27070 :
27071fi
27072
27073LIBS="$save_LIBS"
27074
27075ac_ext=c
27076ac_cpp='$CPP $CPPFLAGS'
27077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27079ac_compiler_gnu=$ac_cv_c_compiler_gnu
27080
27081
cristy3ed852e2009-09-05 21:47:34 +000027082 fi
27083 done
27084
27085 THREAD_LIBS="$PTHREAD_LIBS"
27086 LIBS="$LIBS $THREAD_LIBS"
27087fi
27088
27089
27090#
27091# Check for umem.
27092#
27093have_umem='no'
27094UMEM_LIBS=''
27095if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000027097$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027098 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27099$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027100 failed=0
27101 passed=0
cristy8b350f62009-11-15 23:12:43 +000027102 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027103if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027104 passed=`expr $passed + 1`
27105else
27106 failed=`expr $failed + 1`
27107fi
27108
27109
cristy8b350f62009-11-15 23:12:43 +000027110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027111$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027112if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027113 $as_echo_n "(cached) " >&6
27114else
27115 ac_check_lib_save_LIBS=$LIBS
27116LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027118/* end confdefs.h. */
27119
27120/* Override any GCC internal prototype to avoid an error.
27121 Use char because int might match the return type of a GCC
27122 builtin and then its argument prototype would still apply. */
27123#ifdef __cplusplus
27124extern "C"
27125#endif
27126char umem_alloc ();
27127int
27128main ()
27129{
27130return umem_alloc ();
27131 ;
27132 return 0;
27133}
27134_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027135if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027136 ac_cv_lib_umem_umem_alloc=yes
27137else
cristy8b350f62009-11-15 23:12:43 +000027138 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027139fi
cristy8b350f62009-11-15 23:12:43 +000027140rm -f core conftest.err conftest.$ac_objext \
27141 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027142LIBS=$ac_check_lib_save_LIBS
27143fi
cristy8b350f62009-11-15 23:12:43 +000027144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027145$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027146if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027147 passed=`expr $passed + 1`
27148else
27149 failed=`expr $failed + 1`
27150fi
27151
cristy8b350f62009-11-15 23:12:43 +000027152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027153$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027154if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027155 $as_echo_n "(cached) " >&6
27156else
27157 ac_check_lib_save_LIBS=$LIBS
27158LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027160/* end confdefs.h. */
27161
27162/* Override any GCC internal prototype to avoid an error.
27163 Use char because int might match the return type of a GCC
27164 builtin and then its argument prototype would still apply. */
27165#ifdef __cplusplus
27166extern "C"
27167#endif
27168char umem_free ();
27169int
27170main ()
27171{
27172return umem_free ();
27173 ;
27174 return 0;
27175}
27176_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027177if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027178 ac_cv_lib_umem_umem_free=yes
27179else
cristy8b350f62009-11-15 23:12:43 +000027180 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027181fi
cristy8b350f62009-11-15 23:12:43 +000027182rm -f core conftest.err conftest.$ac_objext \
27183 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027184LIBS=$ac_check_lib_save_LIBS
27185fi
cristy8b350f62009-11-15 23:12:43 +000027186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027187$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027188if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027189 passed=`expr $passed + 1`
27190else
27191 failed=`expr $failed + 1`
27192fi
27193
cristy8b350f62009-11-15 23:12:43 +000027194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027195$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27196 if test $passed -gt 0; then
27197 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027198 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27199$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027200 have_umem='no (failed tests)'
27201 else
27202 UMEM_LIBS='-lumem'
27203 LIBS="$UMEM_LIBS $LIBS"
27204
cristy8b350f62009-11-15 23:12:43 +000027205$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027206
cristy09b53e12011-10-14 12:47:22 +000027207 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27208$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027209 have_umem='yes'
27210 fi
27211 else
cristy09b53e12011-10-14 12:47:22 +000027212 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27213$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027214 fi
27215fi
cristy73bd4a52010-10-05 11:24:23 +000027216 if test "$have_umem" = 'yes'; then
27217 HasUMEM_TRUE=
27218 HasUMEM_FALSE='#'
27219else
27220 HasUMEM_TRUE='#'
27221 HasUMEM_FALSE=
27222fi
27223
cristy3ed852e2009-09-05 21:47:34 +000027224
27225
27226#
27227# Add support for ccmalloc memory debugging library if requested
27228#
27229have_ccmalloc='no'
27230CCMALLOC_LIBS=''
27231if test "$enable_ccmalloc" = 'yes'; then
27232 # Extract the first word of "ccmalloc", so it can be a program name with args.
27233set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027235$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027236if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027237 $as_echo_n "(cached) " >&6
27238else
27239 case $CCMALLOCDelegate in
27240 [\\/]* | ?:[\\/]*)
27241 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27242 ;;
27243 *)
27244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27245for as_dir in $PATH
27246do
27247 IFS=$as_save_IFS
27248 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027249 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027251 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027253 break 2
27254 fi
27255done
cristy8b350f62009-11-15 23:12:43 +000027256 done
cristy3ed852e2009-09-05 21:47:34 +000027257IFS=$as_save_IFS
27258
27259 ;;
27260esac
27261fi
27262CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27263if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027265$as_echo "$CCMALLOCDelegate" >&6; }
27266else
cristy8b350f62009-11-15 23:12:43 +000027267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027268$as_echo "no" >&6; }
27269fi
27270
27271
27272 if test -n "$CCMALLOCDelegate"; then
27273 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27274 OLIBS="$LIBS"
27275 # Assume that gcc is used with ccmalloc.
27276 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027278$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027279if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027280 $as_echo_n "(cached) " >&6
27281else
27282 ac_check_lib_save_LIBS=$LIBS
27283LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027285/* end confdefs.h. */
27286
27287/* Override any GCC internal prototype to avoid an error.
27288 Use char because int might match the return type of a GCC
27289 builtin and then its argument prototype would still apply. */
27290#ifdef __cplusplus
27291extern "C"
27292#endif
27293char ccmalloc_malloc ();
27294int
27295main ()
27296{
27297return ccmalloc_malloc ();
27298 ;
27299 return 0;
27300}
27301_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027302if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027303 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27304else
cristy8b350f62009-11-15 23:12:43 +000027305 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027306fi
cristy8b350f62009-11-15 23:12:43 +000027307rm -f core conftest.err conftest.$ac_objext \
27308 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027309LIBS=$ac_check_lib_save_LIBS
27310fi
cristy8b350f62009-11-15 23:12:43 +000027311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027312$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027313if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027314 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27315fi
27316
27317 if test -n "$CCMALLOC_LIBS"; then
27318 LIBS="$OLIBS"
27319 LIBS="$LIBS $CCMALLOC_LIBS"
27320 have_ccmalloc='yes'
27321 else
27322 LIBS="$OLIBS"
27323 fi
27324 fi
27325fi
27326
27327#
27328# Add support for efence memory debugging library if requested
27329#
27330if test "$enable_efence" = 'yes'; then
27331 EFENCE_LIBS='-lefence'
27332 LIBS="$EFENCE_LIBS $LIBS"
27333fi
27334
cristy3ed852e2009-09-05 21:47:34 +000027335
27336#
27337# Check for BZLIB
27338#
27339
27340
27341# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027342if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027343 withval=$with_bzlib; with_bzlib=$withval
27344else
27345 with_bzlib='yes'
27346fi
27347
27348
27349if test "$with_bzlib" != 'yes'; then
27350 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27351fi
27352
27353have_bzlib='no'
27354if test "$with_bzlib" != 'no'; then
27355 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027356 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27357$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027359$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027360 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27361$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027362 failed=0
27363 passed=0
27364 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027365 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027366if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027367 passed=`expr $passed + 1`
27368else
27369 failed=`expr $failed + 1`
27370fi
27371
27372
cristy8b350f62009-11-15 23:12:43 +000027373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027374$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027375if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027376 $as_echo_n "(cached) " >&6
27377else
27378 ac_check_lib_save_LIBS=$LIBS
27379LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027381/* end confdefs.h. */
27382
27383/* Override any GCC internal prototype to avoid an error.
27384 Use char because int might match the return type of a GCC
27385 builtin and then its argument prototype would still apply. */
27386#ifdef __cplusplus
27387extern "C"
27388#endif
27389char BZ2_bzDecompress ();
27390int
27391main ()
27392{
27393return BZ2_bzDecompress ();
27394 ;
27395 return 0;
27396}
27397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027398if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027399 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27400else
cristy8b350f62009-11-15 23:12:43 +000027401 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027402fi
cristy8b350f62009-11-15 23:12:43 +000027403rm -f core conftest.err conftest.$ac_objext \
27404 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027405LIBS=$ac_check_lib_save_LIBS
27406fi
cristy8b350f62009-11-15 23:12:43 +000027407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027408$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027409if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027410 found_libbz=`expr $found_libbz + 1`
27411fi
27412
27413 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027415$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027416if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027417 $as_echo_n "(cached) " >&6
27418else
27419 ac_check_lib_save_LIBS=$LIBS
27420LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027422/* end confdefs.h. */
27423
27424/* Override any GCC internal prototype to avoid an error.
27425 Use char because int might match the return type of a GCC
27426 builtin and then its argument prototype would still apply. */
27427#ifdef __cplusplus
27428extern "C"
27429#endif
27430char _imp__BZ2_decompress ();
27431int
27432main ()
27433{
27434return _imp__BZ2_decompress ();
27435 ;
27436 return 0;
27437}
27438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027439if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027440 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27441else
cristy8b350f62009-11-15 23:12:43 +000027442 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027443fi
cristy8b350f62009-11-15 23:12:43 +000027444rm -f core conftest.err conftest.$ac_objext \
27445 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027446LIBS=$ac_check_lib_save_LIBS
27447fi
cristy8b350f62009-11-15 23:12:43 +000027448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027449$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027450if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027451 found_libbz=`expr $found_libbz + 1`
27452fi
27453
27454 fi
27455 if test $found_libbz -gt 0; then
27456 passed=`expr $passed + 1`
27457 else
27458 failed=`expr $failed + 1`
27459 fi
cristy8b350f62009-11-15 23:12:43 +000027460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027461$as_echo_n "checking if BZLIB package is complete... " >&6; }
27462 if test $passed -gt 0; then
27463 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027464 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27465$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027466 have_bzlib='no (failed tests)'
27467 else
27468 BZLIB_LIBS='-lbz2'
27469 LIBS="$BZLIB_LIBS $LIBS"
27470
cristy8b350f62009-11-15 23:12:43 +000027471$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027472
cristy09b53e12011-10-14 12:47:22 +000027473 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27474$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027475 have_bzlib='yes'
27476 fi
27477 else
cristy09b53e12011-10-14 12:47:22 +000027478 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27479$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027480 fi
27481fi
cristy73bd4a52010-10-05 11:24:23 +000027482 if test "$have_bzlib" = 'yes'; then
27483 BZLIB_DELEGATE_TRUE=
27484 BZLIB_DELEGATE_FALSE='#'
27485else
27486 BZLIB_DELEGATE_TRUE='#'
27487 BZLIB_DELEGATE_FALSE=
27488fi
27489
cristy3ed852e2009-09-05 21:47:34 +000027490
27491
27492#
27493# Find the X11 include and library directories.
27494#
27495IPC_LIBS=''
27496X11_LIBS=''
27497XEXT_LIBS=''
27498XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027500$as_echo_n "checking for X... " >&6; }
27501
27502
27503# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027504if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027505 withval=$with_x;
27506fi
27507
27508# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27509if test "x$with_x" = xno; then
27510 # The user explicitly disabled X.
27511 have_x=disabled
27512else
27513 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027514 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027515 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027516 $as_echo_n "(cached) " >&6
27517else
27518 # One or both of the vars are not set, and there is no cached value.
27519ac_x_includes=no ac_x_libraries=no
27520rm -f -r conftest.dir
27521if mkdir conftest.dir; then
27522 cd conftest.dir
27523 cat >Imakefile <<'_ACEOF'
27524incroot:
27525 @echo incroot='${INCROOT}'
27526usrlibdir:
27527 @echo usrlibdir='${USRLIBDIR}'
27528libdir:
27529 @echo libdir='${LIBDIR}'
27530_ACEOF
27531 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027532 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027533 for ac_var in incroot usrlibdir libdir; do
27534 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27535 done
27536 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27537 for ac_extension in a so sl dylib la dll; do
27538 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27539 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27540 ac_im_usrlibdir=$ac_im_libdir; break
27541 fi
27542 done
27543 # Screen out bogus values from the imake configuration. They are
27544 # bogus both because they are the default anyway, and because
27545 # using them would break gcc on systems where it needs fixed includes.
27546 case $ac_im_incroot in
27547 /usr/include) ac_x_includes= ;;
27548 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27549 esac
27550 case $ac_im_usrlibdir in
27551 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27552 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27553 esac
27554 fi
27555 cd ..
27556 rm -f -r conftest.dir
27557fi
27558
27559# Standard set of common directories for X headers.
27560# Check X11 before X11Rn because it is often a symlink to the current release.
27561ac_x_header_dirs='
27562/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027563/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027564/usr/X11R6/include
27565/usr/X11R5/include
27566/usr/X11R4/include
27567
27568/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027569/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027570/usr/include/X11R6
27571/usr/include/X11R5
27572/usr/include/X11R4
27573
27574/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027575/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027576/usr/local/X11R6/include
27577/usr/local/X11R5/include
27578/usr/local/X11R4/include
27579
27580/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027581/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027582/usr/local/include/X11R6
27583/usr/local/include/X11R5
27584/usr/local/include/X11R4
27585
27586/usr/X386/include
27587/usr/x386/include
27588/usr/XFree86/include/X11
27589
27590/usr/include
27591/usr/local/include
27592/usr/unsupported/include
27593/usr/athena/include
27594/usr/local/x11r5/include
27595/usr/lpp/Xamples/include
27596
27597/usr/openwin/include
27598/usr/openwin/share/include'
27599
27600if test "$ac_x_includes" = no; then
27601 # Guess where to find include files, by looking for Xlib.h.
27602 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027604/* end confdefs.h. */
27605#include <X11/Xlib.h>
27606_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027607if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027608 # We can compile using X headers with no special include directory.
27609ac_x_includes=
27610else
cristyc7083c12009-10-14 03:16:55 +000027611 for ac_dir in $ac_x_header_dirs; do
27612 if test -r "$ac_dir/X11/Xlib.h"; then
27613 ac_x_includes=$ac_dir
27614 break
27615 fi
27616done
27617fi
cristyda16f162011-02-19 23:52:17 +000027618rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027619fi # $ac_x_includes = no
27620
27621if test "$ac_x_libraries" = no; then
27622 # Check for the libraries.
27623 # See if we find them without any special options.
27624 # Don't add to $LIBS permanently.
27625 ac_save_LIBS=$LIBS
27626 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027628/* end confdefs.h. */
27629#include <X11/Xlib.h>
27630int
27631main ()
27632{
27633XrmInitialize ()
27634 ;
27635 return 0;
27636}
27637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027638if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027639 LIBS=$ac_save_LIBS
27640# We can link X programs with no special library path.
27641ac_x_libraries=
27642else
cristy8b350f62009-11-15 23:12:43 +000027643 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027644for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27645do
27646 # Don't even attempt the hair of trying to link an X program!
27647 for ac_extension in a so sl dylib la dll; do
27648 if test -r "$ac_dir/libX11.$ac_extension"; then
27649 ac_x_libraries=$ac_dir
27650 break 2
27651 fi
27652 done
27653done
27654fi
cristy8b350f62009-11-15 23:12:43 +000027655rm -f core conftest.err conftest.$ac_objext \
27656 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027657fi # $ac_x_libraries = no
27658
27659case $ac_x_includes,$ac_x_libraries in #(
27660 no,* | *,no | *\'*)
27661 # Didn't find X, or a directory has "'" in its name.
27662 ac_cv_have_x="have_x=no";; #(
27663 *)
27664 # Record where we found X for the cache.
27665 ac_cv_have_x="have_x=yes\
27666 ac_x_includes='$ac_x_includes'\
27667 ac_x_libraries='$ac_x_libraries'"
27668esac
27669fi
27670;; #(
27671 *) have_x=yes;;
27672 esac
27673 eval "$ac_cv_have_x"
27674fi # $with_x != no
27675
27676if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027678$as_echo "$have_x" >&6; }
27679 no_x=yes
27680else
27681 # If each of the values was on the command line, it overrides each guess.
27682 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27683 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27684 # Update the cache value to reflect the command line values.
27685 ac_cv_have_x="have_x=yes\
27686 ac_x_includes='$x_includes'\
27687 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027689$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27690fi
27691
cristy3ed852e2009-09-05 21:47:34 +000027692if test "$no_x" = yes; then
27693 # Not all programs may use this symbol, but it does not hurt to define it.
27694
cristy8b350f62009-11-15 23:12:43 +000027695$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027696
27697 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27698else
27699 if test -n "$x_includes"; then
27700 X_CFLAGS="$X_CFLAGS -I$x_includes"
27701 fi
27702
27703 # It would also be nice to do this for all -L options, not just this one.
27704 if test -n "$x_libraries"; then
27705 X_LIBS="$X_LIBS -L$x_libraries"
27706 # For Solaris; some versions of Sun CC require a space after -R and
27707 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027709$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27710 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27711 ac_xsave_c_werror_flag=$ac_c_werror_flag
27712 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027714/* end confdefs.h. */
27715
27716int
27717main ()
27718{
27719
27720 ;
27721 return 0;
27722}
27723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027724if ac_fn_c_try_link "$LINENO"; then :
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027726$as_echo "no" >&6; }
27727 X_LIBS="$X_LIBS -R$x_libraries"
27728else
cristy8b350f62009-11-15 23:12:43 +000027729 LIBS="$ac_xsave_LIBS -R $x_libraries"
27730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027731/* end confdefs.h. */
27732
27733int
27734main ()
27735{
27736
27737 ;
27738 return 0;
27739}
27740_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027741if ac_fn_c_try_link "$LINENO"; then :
27742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027743$as_echo "yes" >&6; }
27744 X_LIBS="$X_LIBS -R $x_libraries"
27745else
cristy8b350f62009-11-15 23:12:43 +000027746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027747$as_echo "neither works" >&6; }
27748fi
cristy8b350f62009-11-15 23:12:43 +000027749rm -f core conftest.err conftest.$ac_objext \
27750 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027751fi
cristy8b350f62009-11-15 23:12:43 +000027752rm -f core conftest.err conftest.$ac_objext \
27753 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027754 ac_c_werror_flag=$ac_xsave_c_werror_flag
27755 LIBS=$ac_xsave_LIBS
27756 fi
27757
27758 # Check for system-dependent libraries X programs must link with.
27759 # Do this before checking for the system-independent R6 libraries
27760 # (-lICE), since we may need -lsocket or whatever for X linking.
27761
27762 if test "$ISC" = yes; then
27763 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27764 else
27765 # Martyn Johnson says this is needed for Ultrix, if the X
27766 # libraries were built with DECnet support. And Karl Berry says
27767 # the Alpha needs dnet_stub (dnet does not exist).
27768 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027770/* end confdefs.h. */
27771
27772/* Override any GCC internal prototype to avoid an error.
27773 Use char because int might match the return type of a GCC
27774 builtin and then its argument prototype would still apply. */
27775#ifdef __cplusplus
27776extern "C"
27777#endif
27778char XOpenDisplay ();
27779int
27780main ()
27781{
27782return XOpenDisplay ();
27783 ;
27784 return 0;
27785}
27786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027787if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027788
cristy8b350f62009-11-15 23:12:43 +000027789else
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027791$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027792if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027793 $as_echo_n "(cached) " >&6
27794else
27795 ac_check_lib_save_LIBS=$LIBS
27796LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027798/* end confdefs.h. */
27799
27800/* Override any GCC internal prototype to avoid an error.
27801 Use char because int might match the return type of a GCC
27802 builtin and then its argument prototype would still apply. */
27803#ifdef __cplusplus
27804extern "C"
27805#endif
27806char dnet_ntoa ();
27807int
27808main ()
27809{
27810return dnet_ntoa ();
27811 ;
27812 return 0;
27813}
27814_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027815if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027816 ac_cv_lib_dnet_dnet_ntoa=yes
27817else
cristy8b350f62009-11-15 23:12:43 +000027818 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027819fi
cristy8b350f62009-11-15 23:12:43 +000027820rm -f core conftest.err conftest.$ac_objext \
27821 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027822LIBS=$ac_check_lib_save_LIBS
27823fi
cristy8b350f62009-11-15 23:12:43 +000027824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027825$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027826if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027827 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27828fi
27829
27830 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027832$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027833if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027834 $as_echo_n "(cached) " >&6
27835else
27836 ac_check_lib_save_LIBS=$LIBS
27837LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027839/* end confdefs.h. */
27840
27841/* Override any GCC internal prototype to avoid an error.
27842 Use char because int might match the return type of a GCC
27843 builtin and then its argument prototype would still apply. */
27844#ifdef __cplusplus
27845extern "C"
27846#endif
27847char dnet_ntoa ();
27848int
27849main ()
27850{
27851return dnet_ntoa ();
27852 ;
27853 return 0;
27854}
27855_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027856if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027857 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27858else
cristy8b350f62009-11-15 23:12:43 +000027859 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027860fi
cristy8b350f62009-11-15 23:12:43 +000027861rm -f core conftest.err conftest.$ac_objext \
27862 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027863LIBS=$ac_check_lib_save_LIBS
27864fi
cristy8b350f62009-11-15 23:12:43 +000027865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027866$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027867if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027868 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27869fi
27870
27871 fi
27872fi
cristy8b350f62009-11-15 23:12:43 +000027873rm -f core conftest.err conftest.$ac_objext \
27874 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027875 LIBS="$ac_xsave_LIBS"
27876
27877 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27878 # to get the SysV transport functions.
27879 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27880 # needs -lnsl.
27881 # The nsl library prevents programs from opening the X display
27882 # on Irix 5.2, according to T.E. Dickey.
27883 # The functions gethostbyname, getservbyname, and inet_addr are
27884 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027885 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027886if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027887
cristy3ed852e2009-09-05 21:47:34 +000027888fi
27889
cristy3ed852e2009-09-05 21:47:34 +000027890 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027892$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027893if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027894 $as_echo_n "(cached) " >&6
27895else
27896 ac_check_lib_save_LIBS=$LIBS
27897LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027899/* end confdefs.h. */
27900
27901/* Override any GCC internal prototype to avoid an error.
27902 Use char because int might match the return type of a GCC
27903 builtin and then its argument prototype would still apply. */
27904#ifdef __cplusplus
27905extern "C"
27906#endif
27907char gethostbyname ();
27908int
27909main ()
27910{
27911return gethostbyname ();
27912 ;
27913 return 0;
27914}
27915_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027916if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027917 ac_cv_lib_nsl_gethostbyname=yes
27918else
cristy8b350f62009-11-15 23:12:43 +000027919 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027920fi
cristy8b350f62009-11-15 23:12:43 +000027921rm -f core conftest.err conftest.$ac_objext \
27922 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027923LIBS=$ac_check_lib_save_LIBS
27924fi
cristy8b350f62009-11-15 23:12:43 +000027925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027926$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027927if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027928 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27929fi
27930
27931 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027933$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027934if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027935 $as_echo_n "(cached) " >&6
27936else
27937 ac_check_lib_save_LIBS=$LIBS
27938LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027940/* end confdefs.h. */
27941
27942/* Override any GCC internal prototype to avoid an error.
27943 Use char because int might match the return type of a GCC
27944 builtin and then its argument prototype would still apply. */
27945#ifdef __cplusplus
27946extern "C"
27947#endif
27948char gethostbyname ();
27949int
27950main ()
27951{
27952return gethostbyname ();
27953 ;
27954 return 0;
27955}
27956_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027957if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027958 ac_cv_lib_bsd_gethostbyname=yes
27959else
cristy8b350f62009-11-15 23:12:43 +000027960 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027961fi
cristy8b350f62009-11-15 23:12:43 +000027962rm -f core conftest.err conftest.$ac_objext \
27963 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027964LIBS=$ac_check_lib_save_LIBS
27965fi
cristy8b350f62009-11-15 23:12:43 +000027966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027967$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027968if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027969 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27970fi
27971
27972 fi
27973 fi
27974
27975 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27976 # socket/setsockopt and other routines are undefined under SCO ODT
27977 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27978 # on later versions), says Simon Leinen: it contains gethostby*
27979 # variants that don't use the name server (or something). -lsocket
27980 # must be given before -lnsl if both are needed. We assume that
27981 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027982 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027983if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027984
cristy3ed852e2009-09-05 21:47:34 +000027985fi
27986
cristy3ed852e2009-09-05 21:47:34 +000027987 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027989$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027990if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027991 $as_echo_n "(cached) " >&6
27992else
27993 ac_check_lib_save_LIBS=$LIBS
27994LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027996/* end confdefs.h. */
27997
27998/* Override any GCC internal prototype to avoid an error.
27999 Use char because int might match the return type of a GCC
28000 builtin and then its argument prototype would still apply. */
28001#ifdef __cplusplus
28002extern "C"
28003#endif
28004char connect ();
28005int
28006main ()
28007{
28008return connect ();
28009 ;
28010 return 0;
28011}
28012_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028013if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028014 ac_cv_lib_socket_connect=yes
28015else
cristy8b350f62009-11-15 23:12:43 +000028016 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000028017fi
cristy8b350f62009-11-15 23:12:43 +000028018rm -f core conftest.err conftest.$ac_objext \
28019 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028020LIBS=$ac_check_lib_save_LIBS
28021fi
cristy8b350f62009-11-15 23:12:43 +000028022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000028023$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000028024if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028025 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28026fi
28027
28028 fi
28029
28030 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000028031 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000028032if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028033
cristy3ed852e2009-09-05 21:47:34 +000028034fi
28035
cristy3ed852e2009-09-05 21:47:34 +000028036 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000028037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000028038$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028039if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028040 $as_echo_n "(cached) " >&6
28041else
28042 ac_check_lib_save_LIBS=$LIBS
28043LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028045/* end confdefs.h. */
28046
28047/* Override any GCC internal prototype to avoid an error.
28048 Use char because int might match the return type of a GCC
28049 builtin and then its argument prototype would still apply. */
28050#ifdef __cplusplus
28051extern "C"
28052#endif
28053char remove ();
28054int
28055main ()
28056{
28057return remove ();
28058 ;
28059 return 0;
28060}
28061_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028062if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028063 ac_cv_lib_posix_remove=yes
28064else
cristy8b350f62009-11-15 23:12:43 +000028065 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000028066fi
cristy8b350f62009-11-15 23:12:43 +000028067rm -f core conftest.err conftest.$ac_objext \
28068 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028069LIBS=$ac_check_lib_save_LIBS
28070fi
cristy8b350f62009-11-15 23:12:43 +000028071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000028072$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000028073if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028074 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28075fi
28076
28077 fi
28078
28079 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000028080 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000028081if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028082
cristy3ed852e2009-09-05 21:47:34 +000028083fi
28084
cristy3ed852e2009-09-05 21:47:34 +000028085 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000028086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028087$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028088if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028089 $as_echo_n "(cached) " >&6
28090else
28091 ac_check_lib_save_LIBS=$LIBS
28092LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028094/* end confdefs.h. */
28095
28096/* Override any GCC internal prototype to avoid an error.
28097 Use char because int might match the return type of a GCC
28098 builtin and then its argument prototype would still apply. */
28099#ifdef __cplusplus
28100extern "C"
28101#endif
28102char shmat ();
28103int
28104main ()
28105{
28106return shmat ();
28107 ;
28108 return 0;
28109}
28110_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028111if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028112 ac_cv_lib_ipc_shmat=yes
28113else
cristy8b350f62009-11-15 23:12:43 +000028114 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028115fi
cristy8b350f62009-11-15 23:12:43 +000028116rm -f core conftest.err conftest.$ac_objext \
28117 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028118LIBS=$ac_check_lib_save_LIBS
28119fi
cristy8b350f62009-11-15 23:12:43 +000028120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028121$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028122if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028123 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28124fi
28125
28126 fi
28127 fi
28128
28129 # Check for libraries that X11R6 Xt/Xaw programs need.
28130 ac_save_LDFLAGS=$LDFLAGS
28131 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28132 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28133 # check for ICE first), but we must link in the order -lSM -lICE or
28134 # we get undefined symbols. So assume we have SM if we have ICE.
28135 # These have to be linked with before -lX11, unlike the other
28136 # libraries we check for below, so use a different variable.
28137 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028139$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028140if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028141 $as_echo_n "(cached) " >&6
28142else
28143 ac_check_lib_save_LIBS=$LIBS
28144LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028146/* end confdefs.h. */
28147
28148/* Override any GCC internal prototype to avoid an error.
28149 Use char because int might match the return type of a GCC
28150 builtin and then its argument prototype would still apply. */
28151#ifdef __cplusplus
28152extern "C"
28153#endif
28154char IceConnectionNumber ();
28155int
28156main ()
28157{
28158return IceConnectionNumber ();
28159 ;
28160 return 0;
28161}
28162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028163if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028164 ac_cv_lib_ICE_IceConnectionNumber=yes
28165else
cristy8b350f62009-11-15 23:12:43 +000028166 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028167fi
cristy8b350f62009-11-15 23:12:43 +000028168rm -f core conftest.err conftest.$ac_objext \
28169 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028170LIBS=$ac_check_lib_save_LIBS
28171fi
cristy8b350f62009-11-15 23:12:43 +000028172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028173$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028174if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028175 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28176fi
28177
28178 LDFLAGS=$ac_save_LDFLAGS
28179
28180fi
28181
28182if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000028183 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28184$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028186$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028187 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28188$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028189 LDFLAGS="$LDFLAGS $X_LIBS"
28190 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28191 LIBS="$X11_LIBS $LIBS"
28192 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28193
28194
cristy8b350f62009-11-15 23:12:43 +000028195$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028196
28197 #
28198 # Check for X11 shared memory extension
28199 #
28200 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028201 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028202if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028203 have_shmctl='yes'
28204fi
28205
28206 if test "$have_shmctl" != 'yes'; then
28207 PERSIST_LIBS=$LIBS
28208 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028210/* end confdefs.h. */
28211
28212/* Override any GCC internal prototype to avoid an error.
28213 Use char because int might match the return type of a GCC
28214 builtin and then its argument prototype would still apply. */
28215#ifdef __cplusplus
28216extern "C"
28217#endif
28218char shmctl ();
28219int
28220main ()
28221{
28222return shmctl ();
28223 ;
28224 return 0;
28225}
28226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028227if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028228 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028229fi
cristy8b350f62009-11-15 23:12:43 +000028230rm -f core conftest.err conftest.$ac_objext \
28231 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028232 LIBS=$PERSIST_LIBS
28233 fi
28234
28235 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028237$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028238if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028239 $as_echo_n "(cached) " >&6
28240else
28241 ac_check_lib_save_LIBS=$LIBS
28242LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028244/* end confdefs.h. */
28245
28246/* Override any GCC internal prototype to avoid an error.
28247 Use char because int might match the return type of a GCC
28248 builtin and then its argument prototype would still apply. */
28249#ifdef __cplusplus
28250extern "C"
28251#endif
28252char XShmAttach ();
28253int
28254main ()
28255{
28256return XShmAttach ();
28257 ;
28258 return 0;
28259}
28260_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028261if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028262 ac_cv_lib_Xext_XShmAttach=yes
28263else
cristy8b350f62009-11-15 23:12:43 +000028264 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028265fi
cristy8b350f62009-11-15 23:12:43 +000028266rm -f core conftest.err conftest.$ac_objext \
28267 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028268LIBS=$ac_check_lib_save_LIBS
28269fi
cristy8b350f62009-11-15 23:12:43 +000028270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028271$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028272if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028273 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028274$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028275
28276fi
28277
28278 fi
28279
28280 #
28281 # Check for X11 shape extension
28282 #
cristy8b350f62009-11-15 23:12:43 +000028283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028284$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028285if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028286 $as_echo_n "(cached) " >&6
28287else
28288 ac_check_lib_save_LIBS=$LIBS
28289LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028291/* end confdefs.h. */
28292
28293/* Override any GCC internal prototype to avoid an error.
28294 Use char because int might match the return type of a GCC
28295 builtin and then its argument prototype would still apply. */
28296#ifdef __cplusplus
28297extern "C"
28298#endif
28299char XShapeCombineMask ();
28300int
28301main ()
28302{
28303return XShapeCombineMask ();
28304 ;
28305 return 0;
28306}
28307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028308if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028309 ac_cv_lib_Xext_XShapeCombineMask=yes
28310else
cristy8b350f62009-11-15 23:12:43 +000028311 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028312fi
cristy8b350f62009-11-15 23:12:43 +000028313rm -f core conftest.err conftest.$ac_objext \
28314 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028315LIBS=$ac_check_lib_save_LIBS
28316fi
cristy8b350f62009-11-15 23:12:43 +000028317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028318$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028319if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028320 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028321$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028322
28323fi
28324
cristy8b350f62009-11-15 23:12:43 +000028325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028326$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028327if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028328 $as_echo_n "(cached) " >&6
28329else
28330 ac_check_lib_save_LIBS=$LIBS
28331LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028333/* end confdefs.h. */
28334
28335/* Override any GCC internal prototype to avoid an error.
28336 Use char because int might match the return type of a GCC
28337 builtin and then its argument prototype would still apply. */
28338#ifdef __cplusplus
28339extern "C"
28340#endif
28341char XtSetEventDispatcher ();
28342int
28343main ()
28344{
28345return XtSetEventDispatcher ();
28346 ;
28347 return 0;
28348}
28349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028350if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028351 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28352else
cristy8b350f62009-11-15 23:12:43 +000028353 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028354fi
cristy8b350f62009-11-15 23:12:43 +000028355rm -f core conftest.err conftest.$ac_objext \
28356 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028357LIBS=$ac_check_lib_save_LIBS
28358fi
cristy8b350f62009-11-15 23:12:43 +000028359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028360$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028361if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028362 XT_LIBS='-lXt'
28363fi
28364
28365 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28366fi
28367if test "$no_x" != 'yes'; then
28368 have_x='yes'
28369else
28370 have_x='no'
28371fi
cristy73bd4a52010-10-05 11:24:23 +000028372 if test "$have_x" = 'yes'; then
28373 X11_DELEGATE_TRUE=
28374 X11_DELEGATE_FALSE='#'
28375else
28376 X11_DELEGATE_TRUE='#'
28377 X11_DELEGATE_FALSE=
28378fi
28379
cristy3ed852e2009-09-05 21:47:34 +000028380
28381
28382
28383
28384#
28385# Check for ZLIB
28386#
28387
28388# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028389if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028390 withval=$with_zlib; with_zlib=$withval
28391else
28392 with_zlib='yes'
28393fi
28394
28395
28396if test "$with_zlib" != 'yes'; then
28397 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28398fi
28399
28400have_zlib='no'
28401ZLIB_LIBS=''
28402if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028403 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28404$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028406$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028407 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28408$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028409 ZLIB_LIBS=''
28410 failed=0
28411 passed=0
cristy8b350f62009-11-15 23:12:43 +000028412 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028413if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028414 passed=`expr $passed + 1`
28415else
28416 failed=`expr $failed + 1`
28417fi
28418
28419
cristy8b350f62009-11-15 23:12:43 +000028420 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028421if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028422 passed=`expr $passed + 1`
28423else
28424 failed=`expr $failed + 1`
28425fi
28426
28427
cristy8b350f62009-11-15 23:12:43 +000028428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028429$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028430if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028431 $as_echo_n "(cached) " >&6
28432else
28433 ac_check_lib_save_LIBS=$LIBS
28434LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028436/* end confdefs.h. */
28437
28438/* Override any GCC internal prototype to avoid an error.
28439 Use char because int might match the return type of a GCC
28440 builtin and then its argument prototype would still apply. */
28441#ifdef __cplusplus
28442extern "C"
28443#endif
28444char compress ();
28445int
28446main ()
28447{
28448return compress ();
28449 ;
28450 return 0;
28451}
28452_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028453if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028454 ac_cv_lib_z_compress=yes
28455else
cristy8b350f62009-11-15 23:12:43 +000028456 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028457fi
cristy8b350f62009-11-15 23:12:43 +000028458rm -f core conftest.err conftest.$ac_objext \
28459 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028460LIBS=$ac_check_lib_save_LIBS
28461fi
cristy8b350f62009-11-15 23:12:43 +000028462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028463$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028464if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028465 passed=`expr $passed + 1`
28466else
28467 failed=`expr $failed + 1`
28468fi
28469
cristy8b350f62009-11-15 23:12:43 +000028470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028471$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028472if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028473 $as_echo_n "(cached) " >&6
28474else
28475 ac_check_lib_save_LIBS=$LIBS
28476LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028478/* end confdefs.h. */
28479
28480/* Override any GCC internal prototype to avoid an error.
28481 Use char because int might match the return type of a GCC
28482 builtin and then its argument prototype would still apply. */
28483#ifdef __cplusplus
28484extern "C"
28485#endif
28486char uncompress ();
28487int
28488main ()
28489{
28490return uncompress ();
28491 ;
28492 return 0;
28493}
28494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028495if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028496 ac_cv_lib_z_uncompress=yes
28497else
cristy8b350f62009-11-15 23:12:43 +000028498 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028499fi
cristy8b350f62009-11-15 23:12:43 +000028500rm -f core conftest.err conftest.$ac_objext \
28501 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028502LIBS=$ac_check_lib_save_LIBS
28503fi
cristy8b350f62009-11-15 23:12:43 +000028504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028505$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028506if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028507 passed=`expr $passed + 1`
28508else
28509 failed=`expr $failed + 1`
28510fi
28511
cristy8b350f62009-11-15 23:12:43 +000028512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028513$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028514if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028515 $as_echo_n "(cached) " >&6
28516else
28517 ac_check_lib_save_LIBS=$LIBS
28518LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028520/* end confdefs.h. */
28521
28522/* Override any GCC internal prototype to avoid an error.
28523 Use char because int might match the return type of a GCC
28524 builtin and then its argument prototype would still apply. */
28525#ifdef __cplusplus
28526extern "C"
28527#endif
28528char deflate ();
28529int
28530main ()
28531{
28532return deflate ();
28533 ;
28534 return 0;
28535}
28536_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028537if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028538 ac_cv_lib_z_deflate=yes
28539else
cristy8b350f62009-11-15 23:12:43 +000028540 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028541fi
cristy8b350f62009-11-15 23:12:43 +000028542rm -f core conftest.err conftest.$ac_objext \
28543 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028544LIBS=$ac_check_lib_save_LIBS
28545fi
cristy8b350f62009-11-15 23:12:43 +000028546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028547$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028548if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028549 passed=`expr $passed + 1`
28550else
28551 failed=`expr $failed + 1`
28552fi
28553
cristy8b350f62009-11-15 23:12:43 +000028554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028555$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028556if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028557 $as_echo_n "(cached) " >&6
28558else
28559 ac_check_lib_save_LIBS=$LIBS
28560LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028562/* end confdefs.h. */
28563
28564/* Override any GCC internal prototype to avoid an error.
28565 Use char because int might match the return type of a GCC
28566 builtin and then its argument prototype would still apply. */
28567#ifdef __cplusplus
28568extern "C"
28569#endif
28570char inflate ();
28571int
28572main ()
28573{
28574return inflate ();
28575 ;
28576 return 0;
28577}
28578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028579if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028580 ac_cv_lib_z_inflate=yes
28581else
cristy8b350f62009-11-15 23:12:43 +000028582 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028583fi
cristy8b350f62009-11-15 23:12:43 +000028584rm -f core conftest.err conftest.$ac_objext \
28585 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028586LIBS=$ac_check_lib_save_LIBS
28587fi
cristy8b350f62009-11-15 23:12:43 +000028588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028589$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028590if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028591 passed=`expr $passed + 1`
28592else
28593 failed=`expr $failed + 1`
28594fi
28595
cristy8b350f62009-11-15 23:12:43 +000028596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028597$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028598if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028599 $as_echo_n "(cached) " >&6
28600else
28601 ac_check_lib_save_LIBS=$LIBS
28602LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028604/* end confdefs.h. */
28605
28606/* Override any GCC internal prototype to avoid an error.
28607 Use char because int might match the return type of a GCC
28608 builtin and then its argument prototype would still apply. */
28609#ifdef __cplusplus
28610extern "C"
28611#endif
28612char gzseek ();
28613int
28614main ()
28615{
28616return gzseek ();
28617 ;
28618 return 0;
28619}
28620_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028621if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028622 ac_cv_lib_z_gzseek=yes
28623else
cristy8b350f62009-11-15 23:12:43 +000028624 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028625fi
cristy8b350f62009-11-15 23:12:43 +000028626rm -f core conftest.err conftest.$ac_objext \
28627 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028628LIBS=$ac_check_lib_save_LIBS
28629fi
cristy8b350f62009-11-15 23:12:43 +000028630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028631$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028632if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028633 passed=`expr $passed + 1`
28634else
28635 failed=`expr $failed + 1`
28636fi
28637
cristy8b350f62009-11-15 23:12:43 +000028638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028639$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028640if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028641 $as_echo_n "(cached) " >&6
28642else
28643 ac_check_lib_save_LIBS=$LIBS
28644LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028646/* end confdefs.h. */
28647
28648/* Override any GCC internal prototype to avoid an error.
28649 Use char because int might match the return type of a GCC
28650 builtin and then its argument prototype would still apply. */
28651#ifdef __cplusplus
28652extern "C"
28653#endif
28654char gztell ();
28655int
28656main ()
28657{
28658return gztell ();
28659 ;
28660 return 0;
28661}
28662_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028663if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028664 ac_cv_lib_z_gztell=yes
28665else
cristy8b350f62009-11-15 23:12:43 +000028666 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028667fi
cristy8b350f62009-11-15 23:12:43 +000028668rm -f core conftest.err conftest.$ac_objext \
28669 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028670LIBS=$ac_check_lib_save_LIBS
28671fi
cristy8b350f62009-11-15 23:12:43 +000028672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028673$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028674if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028675 passed=`expr $passed + 1`
28676else
28677 failed=`expr $failed + 1`
28678fi
28679
cristy8b350f62009-11-15 23:12:43 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028681$as_echo_n "checking if ZLIB package is complete... " >&6; }
28682 if test $passed -gt 0; then
28683 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028684 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28685$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028686 have_zlib='no (failed tests)'
28687 else
28688 ZLIB_LIBS='-lz'
28689 LIBS="$ZLIB_LIBS $LIBS"
28690
cristy8b350f62009-11-15 23:12:43 +000028691$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028692
cristy09b53e12011-10-14 12:47:22 +000028693 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28694$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028695 have_zlib='yes'
28696 fi
28697 else
cristy09b53e12011-10-14 12:47:22 +000028698 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28699$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028700 fi
28701fi
cristy73bd4a52010-10-05 11:24:23 +000028702 if test "$have_zlib" = 'yes'; then
28703 ZLIB_DELEGATE_TRUE=
28704 ZLIB_DELEGATE_FALSE='#'
28705else
28706 ZLIB_DELEGATE_TRUE='#'
28707 ZLIB_DELEGATE_FALSE=
28708fi
28709
cristy3ed852e2009-09-05 21:47:34 +000028710
28711
28712#
28713# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28714#
28715LIB_DL=''
28716if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028718$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028719if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028720 $as_echo_n "(cached) " >&6
28721else
28722 ac_check_lib_save_LIBS=$LIBS
28723LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028725/* end confdefs.h. */
28726
28727/* Override any GCC internal prototype to avoid an error.
28728 Use char because int might match the return type of a GCC
28729 builtin and then its argument prototype would still apply. */
28730#ifdef __cplusplus
28731extern "C"
28732#endif
28733char dlopen ();
28734int
28735main ()
28736{
28737return dlopen ();
28738 ;
28739 return 0;
28740}
28741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028742if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028743 ac_cv_lib_dl_dlopen=yes
28744else
cristy8b350f62009-11-15 23:12:43 +000028745 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028746fi
cristy8b350f62009-11-15 23:12:43 +000028747rm -f core conftest.err conftest.$ac_objext \
28748 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028749LIBS=$ac_check_lib_save_LIBS
28750fi
cristy8b350f62009-11-15 23:12:43 +000028751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028752$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028753if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028754 LIB_DL='-ldl'
28755fi
28756
28757 LIBS="$LIB_DL $LIBS"
28758fi
28759
28760
28761
28762#
28763# Check for Autotrace delegate library.
28764#
28765
28766# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028767if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028768 withval=$with_autotrace; with_autotrace=$withval
28769else
28770 with_autotrace='no'
28771fi
28772
28773
28774if test "$with_autotrace" != 'yes'; then
28775 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28776fi
28777
28778have_autotrace='no'
28779AUTOTRACE_CFLAGS=""
28780AUTOTRACE_LIBS=""
28781AUTOTRACE_PKG=""
28782if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028783 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28784$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028785
28786pkg_failed=no
28787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28788$as_echo_n "checking for AUTOTRACE... " >&6; }
28789
28790if test -n "$AUTOTRACE_CFLAGS"; then
28791 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28792 elif test -n "$PKG_CONFIG"; then
28793 if test -n "$PKG_CONFIG" && \
28794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28795 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28796 ac_status=$?
28797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28798 test $ac_status = 0; }; then
28799 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28800else
28801 pkg_failed=yes
28802fi
28803 else
28804 pkg_failed=untried
28805fi
28806if test -n "$AUTOTRACE_LIBS"; then
28807 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28808 elif test -n "$PKG_CONFIG"; then
28809 if test -n "$PKG_CONFIG" && \
28810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28811 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28812 ac_status=$?
28813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28814 test $ac_status = 0; }; then
28815 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28816else
28817 pkg_failed=yes
28818fi
28819 else
28820 pkg_failed=untried
28821fi
28822
28823
28824
28825if test $pkg_failed = yes; then
28826
28827if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28828 _pkg_short_errors_supported=yes
28829else
28830 _pkg_short_errors_supported=no
28831fi
28832 if test $_pkg_short_errors_supported = yes; then
28833 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28834 else
28835 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28836 fi
28837 # Put the nasty error message in config.log where it belongs
28838 echo "$AUTOTRACE_PKG_ERRORS" >&5
28839
28840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28841$as_echo "no" >&6; }
28842 have_autotrace=no
28843elif test $pkg_failed = untried; then
28844 have_autotrace=no
28845else
28846 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28847 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28849$as_echo "yes" >&6; }
28850 have_autotrace=yes
28851fi
cristy09b53e12011-10-14 12:47:22 +000028852 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28853$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028854fi
28855
28856if test "$have_autotrace" = 'yes'; then
28857 failed=0
28858
cristy8b350f62009-11-15 23:12:43 +000028859$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028860
cristyc6722092012-10-14 00:19:31 +000028861 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028862 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28863 fi
28864fi
28865
cristy73bd4a52010-10-05 11:24:23 +000028866 if test "$have_autotrace" = 'yes'; then
28867 AUTOTRACE_DELEGATE_TRUE=
28868 AUTOTRACE_DELEGATE_FALSE='#'
28869else
28870 AUTOTRACE_DELEGATE_TRUE='#'
28871 AUTOTRACE_DELEGATE_FALSE=
28872fi
28873
cristy3ed852e2009-09-05 21:47:34 +000028874
28875
28876
28877
28878#
28879# Check for Display Postscript delegate library.
28880#
28881
28882# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028883if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028884 withval=$with_dps; with_dps=$withval
28885else
28886 with_dps='yes'
28887fi
28888
28889
28890if test "$with_dps" != 'yes'; then
28891 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28892fi
28893
28894have_dps='no'
28895DPS_LIBS=''
28896if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028897 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28898$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028900$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028901 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28902$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028903 failed=0
28904 passed=0
28905 PERSIST_CPPFLAGS="$CPPFLAGS"
28906 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028907 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 +000028908if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028909 passed=`expr $passed + 1`
28910else
28911 failed=`expr $failed + 1`
28912fi
28913
28914
28915 # DPS issues:
28916 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28917 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28918 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28919 # ImageMagick itself doesn't use -lXt.
28920 have_libdps='no'
28921 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028923$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028924if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028925 $as_echo_n "(cached) " >&6
28926else
28927 ac_check_lib_save_LIBS=$LIBS
28928LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028930/* end confdefs.h. */
28931
28932/* Override any GCC internal prototype to avoid an error.
28933 Use char because int might match the return type of a GCC
28934 builtin and then its argument prototype would still apply. */
28935#ifdef __cplusplus
28936extern "C"
28937#endif
28938char DPSInitialize ();
28939int
28940main ()
28941{
28942return DPSInitialize ();
28943 ;
28944 return 0;
28945}
28946_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028947if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028948 ac_cv_lib_dps_DPSInitialize=yes
28949else
cristy8b350f62009-11-15 23:12:43 +000028950 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028951fi
cristy8b350f62009-11-15 23:12:43 +000028952rm -f core conftest.err conftest.$ac_objext \
28953 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028954LIBS=$ac_check_lib_save_LIBS
28955fi
cristy8b350f62009-11-15 23:12:43 +000028956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028957$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028958if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028959 have_libdps='yes'
28960else
28961 have_libdps='no'
28962fi
28963
28964 if test "$have_libdps" != 'yes'; then
28965 # Unset cache variable so we can try again.
28966 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028968$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028969if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028970 $as_echo_n "(cached) " >&6
28971else
28972 ac_check_lib_save_LIBS=$LIBS
28973LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028975/* end confdefs.h. */
28976
28977/* Override any GCC internal prototype to avoid an error.
28978 Use char because int might match the return type of a GCC
28979 builtin and then its argument prototype would still apply. */
28980#ifdef __cplusplus
28981extern "C"
28982#endif
28983char DPSInitialize ();
28984int
28985main ()
28986{
28987return DPSInitialize ();
28988 ;
28989 return 0;
28990}
28991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028992if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028993 ac_cv_lib_dps_DPSInitialize=yes
28994else
cristy8b350f62009-11-15 23:12:43 +000028995 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028996fi
cristy8b350f62009-11-15 23:12:43 +000028997rm -f core conftest.err conftest.$ac_objext \
28998 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028999LIBS=$ac_check_lib_save_LIBS
29000fi
cristy8b350f62009-11-15 23:12:43 +000029001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029002$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029003if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029004 have_libdps='yes'
29005else
29006 have_libdps='no'
29007fi
29008
29009 if test "$have_libdps" = 'yes'; then
29010 LIBDPS_XT='-lXt'
29011 fi
29012 fi
29013 if test "$have_libdps" = 'yes'; then
29014 passed=`expr $passed + 1`
29015 else
29016 failed=`expr $failed + 1`
29017 fi
cristy8b350f62009-11-15 23:12:43 +000029018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000029019$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029020if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029021 $as_echo_n "(cached) " >&6
29022else
29023 ac_check_lib_save_LIBS=$LIBS
29024LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029026/* end confdefs.h. */
29027
29028/* Override any GCC internal prototype to avoid an error.
29029 Use char because int might match the return type of a GCC
29030 builtin and then its argument prototype would still apply. */
29031#ifdef __cplusplus
29032extern "C"
29033#endif
29034char XDPSPixelsPerPoint ();
29035int
29036main ()
29037{
29038return XDPSPixelsPerPoint ();
29039 ;
29040 return 0;
29041}
29042_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029043if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029044 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
29045else
cristy8b350f62009-11-15 23:12:43 +000029046 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000029047fi
cristy8b350f62009-11-15 23:12:43 +000029048rm -f core conftest.err conftest.$ac_objext \
29049 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029050LIBS=$ac_check_lib_save_LIBS
29051fi
cristy8b350f62009-11-15 23:12:43 +000029052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000029053$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000029054if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029055 passed=`expr $passed + 1`
29056else
29057 failed=`expr $failed + 1`
29058fi
29059
cristy8b350f62009-11-15 23:12:43 +000029060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029061$as_echo_n "checking if DPS package is complete... " >&6; }
29062 if test $passed -gt 0; then
29063 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029064 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29065$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029066 have_dps='no (failed tests)'
29067 CPPFLAGS="$PERSIST_CPPFLAGS"
29068 else
29069 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29070 LIBS="$DPS_LIBS $LIBS"
29071
cristy8b350f62009-11-15 23:12:43 +000029072$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029073
cristy09b53e12011-10-14 12:47:22 +000029074 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29075$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029076 have_dps='yes'
29077 fi
29078 else
cristy09b53e12011-10-14 12:47:22 +000029079 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29080$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029081 CPPFLAGS=$PERSIST_CPPFLAGS
29082 fi
29083fi
cristy73bd4a52010-10-05 11:24:23 +000029084 if test "$have_dps" = 'yes'; then
29085 DPS_DELEGATE_TRUE=
29086 DPS_DELEGATE_FALSE='#'
29087else
29088 DPS_DELEGATE_TRUE='#'
29089 DPS_DELEGATE_FALSE=
29090fi
29091
cristy3ed852e2009-09-05 21:47:34 +000029092
29093
29094
29095#
29096# Check for DJVU delegate library.
29097#
29098
29099# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000029100if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029101 withval=$with_djvu; with_djvu=$withval
29102else
29103 with_djvu='yes'
29104fi
29105
29106
29107if test "$with_djvu" != 'yes'; then
29108 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29109fi
29110
29111have_djvu='no'
29112DJVU_LIBS=''
29113if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029114 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29115$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000029117$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029118 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29119$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029120 failed=0
29121 passed=0
cristy8b350f62009-11-15 23:12:43 +000029122 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 +000029123if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029124 passed=`expr $passed + 1`
29125else
29126 failed=`expr $failed + 1`
29127fi
29128
29129
cristy8b350f62009-11-15 23:12:43 +000029130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000029131$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029132if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029133 $as_echo_n "(cached) " >&6
29134else
29135 ac_check_lib_save_LIBS=$LIBS
29136LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029138/* end confdefs.h. */
29139
29140/* Override any GCC internal prototype to avoid an error.
29141 Use char because int might match the return type of a GCC
29142 builtin and then its argument prototype would still apply. */
29143#ifdef __cplusplus
29144extern "C"
29145#endif
29146char ddjvu_context_create ();
29147int
29148main ()
29149{
29150return ddjvu_context_create ();
29151 ;
29152 return 0;
29153}
29154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029155if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029156 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29157else
cristy8b350f62009-11-15 23:12:43 +000029158 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000029159fi
cristy8b350f62009-11-15 23:12:43 +000029160rm -f core conftest.err conftest.$ac_objext \
29161 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029162LIBS=$ac_check_lib_save_LIBS
29163fi
cristy8b350f62009-11-15 23:12:43 +000029164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000029165$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000029166if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029167 passed=`expr $passed + 1`
29168else
29169 failed=`expr $failed + 1`
29170fi
29171
cristy8b350f62009-11-15 23:12:43 +000029172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029173$as_echo_n "checking if DJVU package is complete... " >&6; }
29174 if test $passed -gt 0; then
29175 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029176 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29177$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029178 have_djvu='no (failed tests)'
29179 else
29180 DJVU_LIBS='-ldjvulibre'
29181 LIBS="$DJVU_LIBS $LIBS"
29182
cristy8b350f62009-11-15 23:12:43 +000029183$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029184
cristy09b53e12011-10-14 12:47:22 +000029185 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29186$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029187 have_djvu='yes'
29188 fi
29189 else
cristy09b53e12011-10-14 12:47:22 +000029190 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29191$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029192 fi
29193fi
cristy73bd4a52010-10-05 11:24:23 +000029194 if test "$have_djvu" = 'yes'; then
29195 DJVU_DELEGATE_TRUE=
29196 DJVU_DELEGATE_FALSE='#'
29197else
29198 DJVU_DELEGATE_TRUE='#'
29199 DJVU_DELEGATE_FALSE=
29200fi
29201
cristy3ed852e2009-09-05 21:47:34 +000029202
29203
29204
29205#
cristy430a7312010-01-21 20:44:04 +000029206# Set DejaVu font directory.
29207#
29208
29209# Check whether --with-dejavu-font-dir was given.
29210if test "${with_dejavu_font_dir+set}" = set; then :
29211 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29212else
29213 with_dejavu_font_dir='default'
29214fi
29215
29216
29217if test "$with_dejavu_font_dir" != 'default'; then
29218 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29219fi
29220
29221
29222#
cristy3ed852e2009-09-05 21:47:34 +000029223# Check for FFTW delegate library.
29224#
29225
29226# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029227if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029228 withval=$with_fftw; with_fftw=$withval
29229else
29230 with_fftw='yes'
29231fi
29232
29233
29234if test "$with_fftw" != 'yes'; then
29235 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29236fi
29237
cristy81beccd2011-10-03 18:17:24 +000029238have_fftw='no'
29239FFTW_LIBS=''
29240if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029241 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29242$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29244$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029245 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29246$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029247 failed=0
29248 passed=0
29249 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29250if test "x$ac_cv_header_fftw3_h" = xyes; then :
29251 passed=`expr $passed + 1`
29252else
29253 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029254fi
29255
cristy81beccd2011-10-03 18:17:24 +000029256
29257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29258$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29259if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29260 $as_echo_n "(cached) " >&6
29261else
29262 ac_check_lib_save_LIBS=$LIBS
29263LIBS="-lfftw3 $LIBS"
29264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29265/* end confdefs.h. */
29266
29267/* Override any GCC internal prototype to avoid an error.
29268 Use char because int might match the return type of a GCC
29269 builtin and then its argument prototype would still apply. */
29270#ifdef __cplusplus
29271extern "C"
29272#endif
29273char fftw_execute ();
29274int
29275main ()
29276{
29277return fftw_execute ();
29278 ;
29279 return 0;
29280}
29281_ACEOF
29282if ac_fn_c_try_link "$LINENO"; then :
29283 ac_cv_lib_fftw3_fftw_execute=yes
29284else
29285 ac_cv_lib_fftw3_fftw_execute=no
29286fi
29287rm -f core conftest.err conftest.$ac_objext \
29288 conftest$ac_exeext conftest.$ac_ext
29289LIBS=$ac_check_lib_save_LIBS
29290fi
29291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29292$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29293if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29294 passed=`expr $passed + 1`
29295else
29296 failed=`expr $failed + 1`
29297fi
29298
29299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29300$as_echo_n "checking if FFTW package is complete... " >&6; }
29301 if test $passed -gt 0; then
29302 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029303 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29304$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029305 have_fftw='no (failed tests)'
29306 else
29307 FFTW_LIBS='-lfftw3'
29308 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029309
cristy8b350f62009-11-15 23:12:43 +000029310$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029311
cristy09b53e12011-10-14 12:47:22 +000029312 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29313$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029314 have_fftw='yes'
29315 fi
29316 else
cristy09b53e12011-10-14 12:47:22 +000029317 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29318$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029319 fi
29320fi
cristy73bd4a52010-10-05 11:24:23 +000029321 if test "$have_fftw" = 'yes'; then
29322 FFTW_DELEGATE_TRUE=
29323 FFTW_DELEGATE_FALSE='#'
29324else
29325 FFTW_DELEGATE_TRUE='#'
29326 FFTW_DELEGATE_FALSE=
29327fi
29328
cristy3ed852e2009-09-05 21:47:34 +000029329
29330
29331
29332#
29333# Check for FlashPIX delegate library.
29334#
29335
29336# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029337if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029338 withval=$with_fpx; with_fpx=$withval
29339else
29340 with_fpx='yes'
29341fi
29342
29343
29344if test "$with_fpx" != 'yes'; then
29345 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29346fi
29347
29348have_fpx='no'
29349FPX_LIBS=''
29350if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029351 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29352$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029354$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029355 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29356$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029357 failed=0
29358 passed=0
29359 ac_ext=cpp
29360ac_cpp='$CXXCPP $CPPFLAGS'
29361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29364
29365
cristy8b350f62009-11-15 23:12:43 +000029366ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029367if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029368 passed=`expr $passed + 1`
29369else
29370 failed=`expr $failed + 1`
29371fi
29372
29373
cristy8b350f62009-11-15 23:12:43 +000029374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029375$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029376if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029377 $as_echo_n "(cached) " >&6
29378else
29379 ac_check_lib_save_LIBS=$LIBS
29380LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029382/* end confdefs.h. */
29383
29384/* Override any GCC internal prototype to avoid an error.
29385 Use char because int might match the return type of a GCC
29386 builtin and then its argument prototype would still apply. */
29387#ifdef __cplusplus
29388extern "C"
29389#endif
29390char FPX_OpenImageByFilename ();
29391int
29392main ()
29393{
29394return FPX_OpenImageByFilename ();
29395 ;
29396 return 0;
29397}
29398_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029399if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029400 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29401else
cristy8b350f62009-11-15 23:12:43 +000029402 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029403fi
cristy8b350f62009-11-15 23:12:43 +000029404rm -f core conftest.err conftest.$ac_objext \
29405 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029406LIBS=$ac_check_lib_save_LIBS
29407fi
cristy8b350f62009-11-15 23:12:43 +000029408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029409$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029410if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029411 passed=`expr $passed + 1`
29412else
29413 failed=`expr $failed + 1`
29414fi
29415
29416 ac_ext=c
29417ac_cpp='$CPP $CPPFLAGS'
29418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29420ac_compiler_gnu=$ac_cv_c_compiler_gnu
29421
cristy8b350f62009-11-15 23:12:43 +000029422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029423$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29424 if test $passed -gt 0; then
29425 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029426 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29427$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029428 have_fpx='no (failed tests)'
29429 else
29430 FPX_LIBS='-lfpx'
29431
cristy8b350f62009-11-15 23:12:43 +000029432$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029433
cristy09b53e12011-10-14 12:47:22 +000029434 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29435$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029436 have_fpx='yes'
29437 PERLMAINCC="$CXX"
29438 fi
29439 else
cristy09b53e12011-10-14 12:47:22 +000029440 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29441$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029442 fi
29443fi
cristy73bd4a52010-10-05 11:24:23 +000029444 if test "$have_fpx" = 'yes'; then
29445 FPX_DELEGATE_TRUE=
29446 FPX_DELEGATE_FALSE='#'
29447else
29448 FPX_DELEGATE_TRUE='#'
29449 FPX_DELEGATE_FALSE=
29450fi
29451
cristy3ed852e2009-09-05 21:47:34 +000029452
29453
29454
29455#
29456# Check for fontconfig delegate library.
29457#
29458
29459# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029460if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029461 withval=$with_fontconfig; with_fontconfig=$withval
29462else
cristyfc3d0222012-02-07 15:05:57 +000029463 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029464fi
29465
29466
29467if test "$with_fontconfig" != 'yes'; then
29468 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29469fi
29470
29471have_fontconfig='no'
29472FONTCONFIG_CFLAGS=""
29473FONTCONFIG_LIBS=""
29474FONTCONFIG_PKG=""
29475if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029476 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29477$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029478
29479pkg_failed=no
29480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29481$as_echo_n "checking for FONTCONFIG... " >&6; }
29482
29483if test -n "$FONTCONFIG_CFLAGS"; then
29484 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29485 elif test -n "$PKG_CONFIG"; then
29486 if test -n "$PKG_CONFIG" && \
29487 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29488 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29489 ac_status=$?
29490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29491 test $ac_status = 0; }; then
29492 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29493else
29494 pkg_failed=yes
29495fi
29496 else
29497 pkg_failed=untried
29498fi
29499if test -n "$FONTCONFIG_LIBS"; then
29500 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29501 elif test -n "$PKG_CONFIG"; then
29502 if test -n "$PKG_CONFIG" && \
29503 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29504 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29505 ac_status=$?
29506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29507 test $ac_status = 0; }; then
29508 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29509else
29510 pkg_failed=yes
29511fi
29512 else
29513 pkg_failed=untried
29514fi
29515
29516
29517
29518if test $pkg_failed = yes; then
29519
29520if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29521 _pkg_short_errors_supported=yes
29522else
29523 _pkg_short_errors_supported=no
29524fi
29525 if test $_pkg_short_errors_supported = yes; then
29526 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29527 else
29528 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29529 fi
29530 # Put the nasty error message in config.log where it belongs
29531 echo "$FONTCONFIG_PKG_ERRORS" >&5
29532
29533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29534$as_echo "no" >&6; }
29535 have_fontconfig=no
29536elif test $pkg_failed = untried; then
29537 have_fontconfig=no
29538else
29539 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29540 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29542$as_echo "yes" >&6; }
29543 have_fontconfig=yes
29544fi
cristy09b53e12011-10-14 12:47:22 +000029545 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29546$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029547fi
29548
29549if test "$have_fontconfig" = 'yes'; then
29550
cristy8b350f62009-11-15 23:12:43 +000029551$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029552
cristyc6722092012-10-14 00:19:31 +000029553 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029554 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029555 fi
cristy3ed852e2009-09-05 21:47:34 +000029556fi
29557
cristy73bd4a52010-10-05 11:24:23 +000029558 if test "$have_fontconfig" = 'yes'; then
29559 FONTCONFIG_DELEGATE_TRUE=
29560 FONTCONFIG_DELEGATE_FALSE='#'
29561else
29562 FONTCONFIG_DELEGATE_TRUE='#'
29563 FONTCONFIG_DELEGATE_FALSE=
29564fi
29565
cristy3ed852e2009-09-05 21:47:34 +000029566
29567
29568
29569
29570#
cristy81beccd2011-10-03 18:17:24 +000029571# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029572#
29573
29574# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029575if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029576 withval=$with_freetype; with_freetype=$withval
29577else
29578 with_freetype='yes'
29579fi
29580
29581
cristy81beccd2011-10-03 18:17:24 +000029582
cristy3ed852e2009-09-05 21:47:34 +000029583if test "$with_freetype" != 'yes'; then
29584 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29585fi
29586
cristy81beccd2011-10-03 18:17:24 +000029587have_freetype='no'
29588FREETYPE_LIBS=''
29589if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029590 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29591$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29593$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029594 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29595$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029596 failed=0
29597 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029598 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029599 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029600 freetype_config=''
29601 # Allow the user to specify the location of freetype.
29602 if test "$with_freetype" != 'yes'; then
29603 if test -x "${with_freetype}/bin/freetype-config"; then
29604 freetype_config="${with_freetype}/bin/freetype-config"
29605 elif test -x "${with_freetype}"; then
29606 freetype_config=${with_freetype}
29607 fi
29608 fi
29609 if test -z "$freetype_config"; then
29610 # Extract the first word of "freetype-config", so it can be a program name with args.
29611set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29613$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029614if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029615 $as_echo_n "(cached) " >&6
29616else
cristy98ca0f52011-10-08 23:19:10 +000029617 case $freetype_config in
29618 [\\/]* | ?:[\\/]*)
29619 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29620 ;;
29621 *)
29622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029623for as_dir in $PATH
29624do
29625 IFS=$as_save_IFS
29626 test -z "$as_dir" && as_dir=.
29627 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000029628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000029629 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29631 break 2
29632 fi
29633done
29634 done
29635IFS=$as_save_IFS
29636
cristy98ca0f52011-10-08 23:19:10 +000029637 ;;
29638esac
cristy81beccd2011-10-03 18:17:24 +000029639fi
cristy98ca0f52011-10-08 23:19:10 +000029640freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029641if test -n "$freetype_config"; then
29642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29643$as_echo "$freetype_config" >&6; }
29644else
29645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29646$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029647fi
29648
cristy98ca0f52011-10-08 23:19:10 +000029649 fi
29650 if test -n "$freetype_config"; then
29651 freetype_prefix=`${freetype_config} --prefix`
29652 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29653 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29654 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029655 fi
29656
29657 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029659$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29660if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29661 $as_echo_n "(cached) " >&6
29662else
29663 ac_check_lib_save_LIBS=$LIBS
29664LIBS="-lfreetype $LIBS"
29665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29666/* end confdefs.h. */
29667
29668/* Override any GCC internal prototype to avoid an error.
29669 Use char because int might match the return type of a GCC
29670 builtin and then its argument prototype would still apply. */
29671#ifdef __cplusplus
29672extern "C"
29673#endif
29674char FT_Init_FreeType ();
29675int
29676main ()
29677{
29678return FT_Init_FreeType ();
29679 ;
29680 return 0;
29681}
29682_ACEOF
29683if ac_fn_c_try_link "$LINENO"; then :
29684 ac_cv_lib_freetype_FT_Init_FreeType=yes
29685else
29686 ac_cv_lib_freetype_FT_Init_FreeType=no
29687fi
29688rm -f core conftest.err conftest.$ac_objext \
29689 conftest$ac_exeext conftest.$ac_ext
29690LIBS=$ac_check_lib_save_LIBS
29691fi
29692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29693$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29694if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29695 FREETYPE_LIBS='-lfreetype'
29696fi
29697
cristy98ca0f52011-10-08 23:19:10 +000029698 if test "$FREETYPE_LIBS" != ''; then
29699 passed=`expr $passed + 1`
29700 else
29701 failed=`expr $failed + 1`
29702 LDFLAGS="$PERSIST_LDFLAGS"
29703 fi
cristy81beccd2011-10-03 18:17:24 +000029704 fi
29705
29706 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29707if test "x$ac_cv_header_ft2build_h" = xyes; then :
29708 FT2BUILD_H='#include <ft2build.h>'
29709else
29710 ft2build=''
29711fi
29712
29713
29714 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29715"
29716if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29717 have_freetype_h='yes'
29718else
29719 have_freetype_h='no'
29720fi
29721
29722
cristy98ca0f52011-10-08 23:19:10 +000029723 if test "$have_freetype_h" = 'yes'; then
29724 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029725 else
cristy98ca0f52011-10-08 23:19:10 +000029726 failed=`expr $failed + 1`
29727 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029728 fi
29729
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29731$as_echo_n "checking if FreeType package is complete... " >&6; }
29732 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029733 if test $failed -gt 0; then
29734 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029735 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29736$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029737 have_freetype='no (failed tests)'
29738 else
29739 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029740
cristy8b350f62009-11-15 23:12:43 +000029741$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029742
cristy98ca0f52011-10-08 23:19:10 +000029743 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029744
29745$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29746
cristy81beccd2011-10-03 18:17:24 +000029747 fi
cristy09b53e12011-10-14 12:47:22 +000029748 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29749$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029750 have_freetype='yes'
29751 fi
cristy81beccd2011-10-03 18:17:24 +000029752 else
cristy09b53e12011-10-14 12:47:22 +000029753 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29754$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029755 fi
29756fi
cristy73bd4a52010-10-05 11:24:23 +000029757 if test "$have_freetype" = 'yes'; then
29758 FREETYPE_DELEGATE_TRUE=
29759 FREETYPE_DELEGATE_FALSE='#'
29760else
29761 FREETYPE_DELEGATE_TRUE='#'
29762 FREETYPE_DELEGATE_FALSE=
29763fi
29764
cristy3ed852e2009-09-05 21:47:34 +000029765
29766
29767
cristy3ed852e2009-09-05 21:47:34 +000029768#
29769# Check for Ghostscript library or framework.
29770#
29771# Test for iapi.h & test for gsapi_new_instance in -lgs
29772# or -framework Ghostscript
29773
29774
29775# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029776if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029777 withval=$with_gslib; with_gslib=$withval
29778else
29779 with_gslib='no'
29780fi
29781
29782
cristyb7931f12009-09-25 10:22:21 +000029783gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029784if test "$with_gslib" != 'yes'; then
29785 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29786fi
29787
29788have_gslib='no'
29789GS_LIBS=''
29790if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029791 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29792$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029794$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029795 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29796$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029797 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029798 failed=0
29799 passed=0
cristy8b350f62009-11-15 23:12:43 +000029800 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 +000029801if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029802 passed=`expr $passed + 1`
29803else
29804 failed=`expr $failed + 1`
29805fi
29806
29807
cristy8b350f62009-11-15 23:12:43 +000029808 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 +000029809if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029810 passed=`expr $passed + 1`
29811else
29812 failed=`expr $failed + 1`
29813fi
29814
29815
cristy73bd4a52010-10-05 11:24:23 +000029816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29817$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029818if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029819 $as_echo_n "(cached) " >&6
29820else
29821 ac_check_framework_save_LIBS=$LIBS
29822LIBS="-framework Ghostscript $LIBS"
29823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29824/* end confdefs.h. */
29825
29826/* Override any GCC internal prototype to avoid an error.
29827 Use char because int might match the return type of a GCC
29828 builtin and then its argument prototype would still apply. */
29829#ifdef __cplusplus
29830extern "C"
29831#endif
29832char gsapi_new_instance ();
29833int
29834main ()
29835{
29836return gsapi_new_instance ();
29837 ;
29838 return 0;
29839}
29840_ACEOF
29841if ac_fn_c_try_link "$LINENO"; then :
29842 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29843else
29844 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29845fi
29846rm -f core conftest.err conftest.$ac_objext \
29847 conftest$ac_exeext conftest.$ac_ext
29848LIBS=$ac_check_framework_save_LIBS
29849fi
29850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29851$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29852if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29853 framework=`expr $framework + 1`
29854else
29855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029856$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029857if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029858 $as_echo_n "(cached) " >&6
29859else
29860 ac_check_lib_save_LIBS=$LIBS
29861LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029863/* end confdefs.h. */
29864
29865/* Override any GCC internal prototype to avoid an error.
29866 Use char because int might match the return type of a GCC
29867 builtin and then its argument prototype would still apply. */
29868#ifdef __cplusplus
29869extern "C"
29870#endif
29871char gsapi_new_instance ();
29872int
29873main ()
29874{
29875return gsapi_new_instance ();
29876 ;
29877 return 0;
29878}
29879_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029880if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029881 ac_cv_lib_gs_gsapi_new_instance=yes
29882else
cristy8b350f62009-11-15 23:12:43 +000029883 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029884fi
cristy8b350f62009-11-15 23:12:43 +000029885rm -f core conftest.err conftest.$ac_objext \
29886 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029887LIBS=$ac_check_lib_save_LIBS
29888fi
cristy8b350f62009-11-15 23:12:43 +000029889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029890$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029891if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029892 passed=`expr $passed + 1`
29893else
29894 failed=`expr $failed + 1`
29895fi
cristy73bd4a52010-10-05 11:24:23 +000029896
29897fi
cristy8b350f62009-11-15 23:12:43 +000029898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029899$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29900 if test $passed -gt 0; then
29901 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029902 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29903$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029904 have_gslib='no (failed tests)'
29905 else
29906 if test $framework -gt 0; then
29907 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029908 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029909 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29910$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029911 else
cristy09b53e12011-10-14 12:47:22 +000029912 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29913$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029914 GS_LIBS='-lgs'
29915 fi
29916 LIBS="$GS_LIBS $LIBS"
29917
cristy8b350f62009-11-15 23:12:43 +000029918$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029919
29920 have_gslib='yes'
29921 fi
29922 else
cristy09b53e12011-10-14 12:47:22 +000029923 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29924$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029925 fi
29926fi
cristy73bd4a52010-10-05 11:24:23 +000029927 if test "$have_gslib" = 'yes'; then
29928 GS_DELEGATE_TRUE=
29929 GS_DELEGATE_FALSE='#'
29930else
29931 GS_DELEGATE_TRUE='#'
29932 GS_DELEGATE_FALSE=
29933fi
29934
cristy3ed852e2009-09-05 21:47:34 +000029935
29936
29937# Set default font search path
29938
29939# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029940if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029941 withval=$with_fontpath; with_fontpath=$withval
29942else
29943 with_fontpath=''
29944fi
29945
29946
29947if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29948 with_fontpath=''
29949else
29950
29951cat >>confdefs.h <<_ACEOF
29952#define MAGICK_FONT_PATH "$with_fontpath"
29953_ACEOF
29954
29955fi
29956if test "$with_fontpath=" != ''; then
29957 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29958fi
29959
29960# Set Ghostscript font directory
29961
29962# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029963if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029964 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29965else
29966 with_gs_font_dir='default'
29967fi
29968
29969
29970if test "$with_gs_font_dir" != 'default'; then
29971 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29972fi
29973
29974
29975#
29976# Check for GVC delegate library.
29977#
29978
29979# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029980if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029981 withval=$with_gvc; with_gvc=$withval
29982else
cristy1b70dc82012-07-01 23:15:05 +000029983 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029984fi
29985
29986
29987if test "$with_gvc" != 'yes'; then
29988 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29989fi
29990
29991GVC_PKG=""
29992if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029993 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29994$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029995
29996pkg_failed=no
29997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29998$as_echo_n "checking for GVC... " >&6; }
29999
30000if test -n "$GVC_CFLAGS"; then
30001 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
30002 elif test -n "$PKG_CONFIG"; then
30003 if test -n "$PKG_CONFIG" && \
30004 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30005 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30006 ac_status=$?
30007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30008 test $ac_status = 0; }; then
30009 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
30010else
30011 pkg_failed=yes
30012fi
30013 else
30014 pkg_failed=untried
30015fi
30016if test -n "$GVC_LIBS"; then
30017 pkg_cv_GVC_LIBS="$GVC_LIBS"
30018 elif test -n "$PKG_CONFIG"; then
30019 if test -n "$PKG_CONFIG" && \
30020 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30021 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30022 ac_status=$?
30023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30024 test $ac_status = 0; }; then
30025 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
30026else
30027 pkg_failed=yes
30028fi
30029 else
30030 pkg_failed=untried
30031fi
30032
30033
30034
30035if test $pkg_failed = yes; then
30036
30037if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30038 _pkg_short_errors_supported=yes
30039else
30040 _pkg_short_errors_supported=no
30041fi
30042 if test $_pkg_short_errors_supported = yes; then
30043 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
30044 else
30045 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
30046 fi
30047 # Put the nasty error message in config.log where it belongs
30048 echo "$GVC_PKG_ERRORS" >&5
30049
30050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30051$as_echo "no" >&6; }
30052 have_gvc=no
30053elif test $pkg_failed = untried; then
30054 have_gvc=no
30055else
30056 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
30057 GVC_LIBS=$pkg_cv_GVC_LIBS
30058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30059$as_echo "yes" >&6; }
30060 have_gvc=yes
30061fi
cristy09b53e12011-10-14 12:47:22 +000030062 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30063$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030064fi
30065
30066if test "$have_gvc" = 'yes'; then
30067
cristy8b350f62009-11-15 23:12:43 +000030068$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030069
cristyc6722092012-10-14 00:19:31 +000030070 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030071 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
30072 fi
30073fi
30074
cristy73bd4a52010-10-05 11:24:23 +000030075 if test "$have_gvc" = 'yes'; then
30076 GVC_DELEGATE_TRUE=
30077 GVC_DELEGATE_FALSE='#'
30078else
30079 GVC_DELEGATE_TRUE='#'
30080 GVC_DELEGATE_FALSE=
30081fi
30082
cristy3ed852e2009-09-05 21:47:34 +000030083
30084
30085
30086
30087#
30088# Check for JBIG delegate library.
30089#
30090
30091
30092# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000030093if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030094 withval=$with_jbig; with_jbig=$withval
30095else
30096 with_jbig='yes'
30097fi
30098
30099
30100have_jbig='no'
30101JBIG_LIBS=''
30102if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030103 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30104$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030106$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030107 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30108$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030109 failed=0
30110 passed=0
cristy8b350f62009-11-15 23:12:43 +000030111 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030112if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030113 passed=`expr $passed + 1`
30114else
30115 failed=`expr $failed + 1`
30116fi
30117
30118
cristy8b350f62009-11-15 23:12:43 +000030119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030120$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030121if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030122 $as_echo_n "(cached) " >&6
30123else
30124 ac_check_lib_save_LIBS=$LIBS
30125LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030127/* end confdefs.h. */
30128
30129/* Override any GCC internal prototype to avoid an error.
30130 Use char because int might match the return type of a GCC
30131 builtin and then its argument prototype would still apply. */
30132#ifdef __cplusplus
30133extern "C"
30134#endif
30135char jbg_dec_init ();
30136int
30137main ()
30138{
30139return jbg_dec_init ();
30140 ;
30141 return 0;
30142}
30143_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030144if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030145 ac_cv_lib_jbig_jbg_dec_init=yes
30146else
cristy8b350f62009-11-15 23:12:43 +000030147 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030148fi
cristy8b350f62009-11-15 23:12:43 +000030149rm -f core conftest.err conftest.$ac_objext \
30150 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030151LIBS=$ac_check_lib_save_LIBS
30152fi
cristy8b350f62009-11-15 23:12:43 +000030153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030154$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030155if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030156 passed=`expr $passed + 1`
30157else
30158 failed=`expr $failed + 1`
30159fi
30160
cristy8b350f62009-11-15 23:12:43 +000030161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030162$as_echo_n "checking if JBIG package is complete... " >&6; }
30163 if test $passed -gt 0; then
30164 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030165 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30166$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030167 have_jbig='no (failed tests)'
30168 else
30169 JBIG_LIBS='-ljbig'
30170 LIBS="$JBIG_LIBS $LIBS"
30171
cristy8b350f62009-11-15 23:12:43 +000030172$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030173
cristy09b53e12011-10-14 12:47:22 +000030174 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30175$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030176 have_jbig='yes'
30177 fi
30178 else
cristy09b53e12011-10-14 12:47:22 +000030179 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30180$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030181 fi
30182fi
cristy73bd4a52010-10-05 11:24:23 +000030183 if test "$have_jbig" = 'yes'; then
30184 JBIG_DELEGATE_TRUE=
30185 JBIG_DELEGATE_FALSE='#'
30186else
30187 JBIG_DELEGATE_TRUE='#'
30188 JBIG_DELEGATE_FALSE=
30189fi
30190
cristy3ed852e2009-09-05 21:47:34 +000030191
30192
30193
30194#
30195# Check for JPEG delegate library.
30196#
30197
30198# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030199if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030200 withval=$with_jpeg; with_jpeg=$withval
30201else
30202 with_jpeg='yes'
30203fi
30204
30205
30206if test "$with_jpeg" != 'yes'; then
30207 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30208fi
30209
30210have_jpeg='no'
30211JPEG_LIBS=''
30212if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030213 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30214$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030216$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030217 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30218$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030219 failed=0
30220 passed=0
cristy8b350f62009-11-15 23:12:43 +000030221 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030222if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030223 passed=`expr $passed + 1`
30224else
30225 failed=`expr $failed + 1`
30226fi
30227
30228
cristy8b350f62009-11-15 23:12:43 +000030229 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030230if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030231 passed=`expr $passed + 1`
30232else
30233 failed=`expr $failed + 1`
30234fi
30235
30236
cristy8b350f62009-11-15 23:12:43 +000030237 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030238if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030239 passed=`expr $passed + 1`
30240else
30241 failed=`expr $failed + 1`
30242fi
30243
30244
cristy8b350f62009-11-15 23:12:43 +000030245 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030246if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030247 passed=`expr $passed + 1`
30248else
30249 failed=`expr $failed + 1`
30250fi
30251
30252
cristy8b350f62009-11-15 23:12:43 +000030253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030254$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030255if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030256 $as_echo_n "(cached) " >&6
30257else
30258 ac_check_lib_save_LIBS=$LIBS
30259LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030261/* end confdefs.h. */
30262
30263/* Override any GCC internal prototype to avoid an error.
30264 Use char because int might match the return type of a GCC
30265 builtin and then its argument prototype would still apply. */
30266#ifdef __cplusplus
30267extern "C"
30268#endif
30269char jpeg_read_header ();
30270int
30271main ()
30272{
30273return jpeg_read_header ();
30274 ;
30275 return 0;
30276}
30277_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030278if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030279 ac_cv_lib_jpeg_jpeg_read_header=yes
30280else
cristy8b350f62009-11-15 23:12:43 +000030281 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030282fi
cristy8b350f62009-11-15 23:12:43 +000030283rm -f core conftest.err conftest.$ac_objext \
30284 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030285LIBS=$ac_check_lib_save_LIBS
30286fi
cristy8b350f62009-11-15 23:12:43 +000030287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030288$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030289if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030290 passed=`expr $passed + 1`
30291else
30292 failed=`expr $failed + 1`
30293fi
30294
30295
30296# Test for compatible JPEG library
30297if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030299$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030300if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030301 $as_echo_n "(cached) " >&6
30302else
cristy8b350f62009-11-15 23:12:43 +000030303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030304/* end confdefs.h. */
30305#include <stdio.h>
30306#include <stdlib.h>
30307#include <jpeglib.h>
30308
30309int
30310main ()
30311{
30312
30313#if JPEG_LIB_VERSION < 62
30314#error IJG JPEG library must be version 6b or newer!
30315#endif
30316return 0;
30317
30318 ;
30319 return 0;
30320}
30321_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030322if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030323 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30324else
cristy8b350f62009-11-15 23:12:43 +000030325 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030326fi
cristy3ed852e2009-09-05 21:47:34 +000030327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30328fi
cristy8b350f62009-11-15 23:12:43 +000030329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030330$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30331fi
cristy8b350f62009-11-15 23:12:43 +000030332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030333$as_echo_n "checking if JPEG package is complete... " >&6; }
30334 if test $passed -gt 0; then
30335 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030336 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30337$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030338 have_jpeg='no (failed tests)'
30339 else
30340 JPEG_LIBS='-ljpeg'
30341 LIBS="$JPEG_LIBS $LIBS"
30342
cristy8b350f62009-11-15 23:12:43 +000030343$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030344
cristy09b53e12011-10-14 12:47:22 +000030345 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30346$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030347 have_jpeg='yes'
30348 fi
30349 else
cristy09b53e12011-10-14 12:47:22 +000030350 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30351$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030352 fi
30353fi
cristy73bd4a52010-10-05 11:24:23 +000030354 if test "$have_jpeg" = 'yes'; then
30355 JPEG_DELEGATE_TRUE=
30356 JPEG_DELEGATE_FALSE='#'
30357else
30358 JPEG_DELEGATE_TRUE='#'
30359 JPEG_DELEGATE_FALSE=
30360fi
30361
cristy3ed852e2009-09-05 21:47:34 +000030362
30363
30364
30365#
30366# Check for JPEG Version 2 delegate library.
30367#
30368
30369# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030370if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030371 withval=$with_jp2; with_jp2=$withval
30372else
30373 with_jp2='yes'
30374fi
30375
30376
30377if test "$with_jp2" != 'yes'; then
30378 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30379fi
30380
30381have_jp2='no'
30382JP2_LIBS=''
30383if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030384 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30385$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030387$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030388 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30389$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030390 failed=0
30391 passed=0
cristy8b350f62009-11-15 23:12:43 +000030392 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 +000030393if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030394 passed=`expr $passed + 1`
30395else
30396 failed=`expr $failed + 1`
30397fi
30398
30399
cristy8b350f62009-11-15 23:12:43 +000030400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030401$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030402if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030403 $as_echo_n "(cached) " >&6
30404else
30405 ac_check_lib_save_LIBS=$LIBS
30406LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030408/* end confdefs.h. */
30409
30410/* Override any GCC internal prototype to avoid an error.
30411 Use char because int might match the return type of a GCC
30412 builtin and then its argument prototype would still apply. */
30413#ifdef __cplusplus
30414extern "C"
30415#endif
30416char jas_stream_fopen ();
30417int
30418main ()
30419{
30420return jas_stream_fopen ();
30421 ;
30422 return 0;
30423}
30424_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030425if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030426 ac_cv_lib_jasper_jas_stream_fopen=yes
30427else
cristy8b350f62009-11-15 23:12:43 +000030428 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030429fi
cristy8b350f62009-11-15 23:12:43 +000030430rm -f core conftest.err conftest.$ac_objext \
30431 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030432LIBS=$ac_check_lib_save_LIBS
30433fi
cristy8b350f62009-11-15 23:12:43 +000030434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030435$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030436if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030437 passed=`expr $passed + 1`
30438else
30439 failed=`expr $failed + 1`
30440fi
30441
cristy8b350f62009-11-15 23:12:43 +000030442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030443$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30444 if test $passed -gt 0; then
30445 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030446 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30447$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030448 have_jp2='no (failed tests)'
30449 else
30450 JP2_LIBS='-ljasper'
30451 LIBS="$JP2_LIBS $LIBS"
30452
cristy8b350f62009-11-15 23:12:43 +000030453$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030454
cristy09b53e12011-10-14 12:47:22 +000030455 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30456$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030457 have_jp2='yes'
30458 fi
30459 else
cristy09b53e12011-10-14 12:47:22 +000030460 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30461$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030462 fi
30463fi
cristy73bd4a52010-10-05 11:24:23 +000030464 if test "$have_jp2" = 'yes'; then
30465 JP2_DELEGATE_TRUE=
30466 JP2_DELEGATE_FALSE='#'
30467else
30468 JP2_DELEGATE_TRUE='#'
30469 JP2_DELEGATE_FALSE=
30470fi
30471
cristy3ed852e2009-09-05 21:47:34 +000030472
30473
30474
30475#
30476# Check for LCMS delegate library.
30477#
cristy71203402010-06-18 13:12:03 +000030478# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030479
30480# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030481if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030482 withval=$with_lcms; with_lcms=$withval
30483else
30484 with_lcms='yes'
30485fi
30486
cristy71203402010-06-18 13:12:03 +000030487if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030488 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30489fi
30490
cristy71203402010-06-18 13:12:03 +000030491# Disable LCMS2.
30492
30493# Check whether --with-lcms2 was given.
30494if test "${with_lcms2+set}" = set; then :
30495 withval=$with_lcms2; with_lcms2=$withval
30496else
30497 with_lcms2='yes'
30498fi
30499
30500if test "$with_lcms2" != 'yes' ; then
30501 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30502fi
30503
30504have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030505LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030506if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030507 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30508$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30510$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030511 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30512$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030513 failed=0
30514 passed=0
30515 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030516
30517 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030518 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030519if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030520 have_lcms_header='yes'
30521fi
30522
30523
30524 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030525
30526$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30527
cristy71203402010-06-18 13:12:03 +000030528 passed=`expr $passed + 1`
30529 fi
30530
30531 # Check for <lcms2/lcms2.h)
30532 if test "$have_lcms_header" != 'yes'; then
30533 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 +000030534if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030535 have_lcms_header='yes'
30536fi
30537
30538
cristy71203402010-06-18 13:12:03 +000030539 if test "$have_lcms_header" = 'yes'; then
30540 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030541
cristy71203402010-06-18 13:12:03 +000030542$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030543
cristy71203402010-06-18 13:12:03 +000030544 fi
cristyd09bcf92010-03-25 03:04:45 +000030545 fi
cristy71203402010-06-18 13:12:03 +000030546
30547 # Failed to find lcms header?
30548 if test "$have_lcms_header" != 'yes'; then
30549 failed=`expr $failed + 1`
30550 fi
30551
30552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30553$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030554if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030555 $as_echo_n "(cached) " >&6
30556else
30557 ac_check_lib_save_LIBS=$LIBS
30558LIBS="-llcms2 $LIBS"
30559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30560/* end confdefs.h. */
30561
30562/* Override any GCC internal prototype to avoid an error.
30563 Use char because int might match the return type of a GCC
30564 builtin and then its argument prototype would still apply. */
30565#ifdef __cplusplus
30566extern "C"
30567#endif
cristy71203402010-06-18 13:12:03 +000030568char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030569int
30570main ()
30571{
cristy71203402010-06-18 13:12:03 +000030572return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030573 ;
30574 return 0;
30575}
30576_ACEOF
30577if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030578 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030579else
cristy71203402010-06-18 13:12:03 +000030580 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030581fi
30582rm -f core conftest.err conftest.$ac_objext \
30583 conftest$ac_exeext conftest.$ac_ext
30584LIBS=$ac_check_lib_save_LIBS
30585fi
cristy71203402010-06-18 13:12:03 +000030586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30587$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030588if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030589 passed=`expr $passed + 1`
30590else
30591 failed=`expr $failed + 1`
30592fi
30593
cristy71203402010-06-18 13:12:03 +000030594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30595$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030596 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030597 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030598 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30599$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030600 have_lcms2='no (failed tests)'
30601 else
30602 LCMS_LIBS='-llcms2'
30603 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030604 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30605$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030606 have_lcms2='yes'
30607 fi
cristyd09bcf92010-03-25 03:04:45 +000030608 else
cristy09b53e12011-10-14 12:47:22 +000030609 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30610$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030611 fi
30612fi
30613
cristy71203402010-06-18 13:12:03 +000030614#
30615# Check for LCMS v1 (1.11 or later)
30616#
30617if test $have_lcms2 = 'yes'; then
30618 with_lcms='no'
30619fi
30620
30621have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030622if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030623 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30624$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30626$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030627 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30628$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030629 failed=0
30630 passed=0
30631 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030632
30633 # Check for <lcms.h>
30634 if test "$have_lcms_header" != 'yes'; then
30635 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030636if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030637 have_lcms_header='yes'
30638fi
30639
30640
cristy71203402010-06-18 13:12:03 +000030641 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030642 passed=`expr $passed + 1`
30643
cristy8b350f62009-11-15 23:12:43 +000030644$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030645
cristy71203402010-06-18 13:12:03 +000030646 fi
30647 fi
30648
30649 # Check for <lcms/lcms.h>
30650 if test "$have_lcms_header" != 'yes'; then
30651 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 +000030652if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030653 have_lcms_header='yes'
30654fi
30655
30656
cristy71203402010-06-18 13:12:03 +000030657 if test "$have_lcms_header" = 'yes'; then
30658 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030659
cristy8b350f62009-11-15 23:12:43 +000030660$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030661
cristy71203402010-06-18 13:12:03 +000030662 fi
cristy3ed852e2009-09-05 21:47:34 +000030663 fi
cristy71203402010-06-18 13:12:03 +000030664
30665 # Failed to find lcms header?
30666 if test "$have_lcms_header" != 'yes'; then
30667 failed=`expr $failed + 1`
30668 fi
30669
30670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30671$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030672if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030673 $as_echo_n "(cached) " >&6
30674else
30675 ac_check_lib_save_LIBS=$LIBS
30676LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030678/* end confdefs.h. */
30679
30680/* Override any GCC internal prototype to avoid an error.
30681 Use char because int might match the return type of a GCC
30682 builtin and then its argument prototype would still apply. */
30683#ifdef __cplusplus
30684extern "C"
30685#endif
cristy71203402010-06-18 13:12:03 +000030686char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030687int
30688main ()
30689{
cristy71203402010-06-18 13:12:03 +000030690return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030691 ;
30692 return 0;
30693}
30694_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030695if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030696 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030697else
cristy71203402010-06-18 13:12:03 +000030698 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030699fi
cristy8b350f62009-11-15 23:12:43 +000030700rm -f core conftest.err conftest.$ac_objext \
30701 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030702LIBS=$ac_check_lib_save_LIBS
30703fi
cristy71203402010-06-18 13:12:03 +000030704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30705$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030706if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030707 passed=`expr $passed + 1`
30708else
30709 failed=`expr $failed + 1`
30710fi
30711
cristy8b350f62009-11-15 23:12:43 +000030712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030713$as_echo_n "checking if LCMS package is complete... " >&6; }
30714 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030715 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030716 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30717$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030718 have_lcms='no (failed tests)'
30719 else
30720 LCMS_LIBS='-llcms'
30721 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030722 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30723$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030724 have_lcms='yes'
30725 fi
cristy3ed852e2009-09-05 21:47:34 +000030726 else
cristy09b53e12011-10-14 12:47:22 +000030727 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30728$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030729 fi
30730fi
cristy71203402010-06-18 13:12:03 +000030731
cristy73bd4a52010-10-05 11:24:23 +000030732 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30733 LCMS_DELEGATE_TRUE=
30734 LCMS_DELEGATE_FALSE='#'
30735else
30736 LCMS_DELEGATE_TRUE='#'
30737 LCMS_DELEGATE_FALSE=
30738fi
30739
cristy71203402010-06-18 13:12:03 +000030740if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30741
30742$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30743
30744fi
30745
cristy3ed852e2009-09-05 21:47:34 +000030746
30747
30748
30749#
30750# Check for the LQR (Liquid Rescale) delegate library.
30751#
30752
30753# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030754if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030755 withval=$with_lqr; with_lqr=$withval
30756else
30757 with_lqr='yes'
30758fi
30759
30760
30761if test "$with_lqr" != 'yes'; then
30762 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30763fi
30764
30765have_lqr='no'
30766LQR_CFLAGS=""
30767LQR_LIBS=""
30768LQR_PKG=""
30769if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030770 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30771$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030772
30773pkg_failed=no
30774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30775$as_echo_n "checking for LQR... " >&6; }
30776
30777if test -n "$LQR_CFLAGS"; then
30778 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30779 elif test -n "$PKG_CONFIG"; then
30780 if test -n "$PKG_CONFIG" && \
30781 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30782 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30783 ac_status=$?
30784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30785 test $ac_status = 0; }; then
30786 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30787else
30788 pkg_failed=yes
30789fi
30790 else
30791 pkg_failed=untried
30792fi
30793if test -n "$LQR_LIBS"; then
30794 pkg_cv_LQR_LIBS="$LQR_LIBS"
30795 elif test -n "$PKG_CONFIG"; then
30796 if test -n "$PKG_CONFIG" && \
30797 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30798 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30799 ac_status=$?
30800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30801 test $ac_status = 0; }; then
30802 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30803else
30804 pkg_failed=yes
30805fi
30806 else
30807 pkg_failed=untried
30808fi
30809
30810
30811
30812if test $pkg_failed = yes; then
30813
30814if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30815 _pkg_short_errors_supported=yes
30816else
30817 _pkg_short_errors_supported=no
30818fi
30819 if test $_pkg_short_errors_supported = yes; then
30820 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30821 else
30822 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30823 fi
30824 # Put the nasty error message in config.log where it belongs
30825 echo "$LQR_PKG_ERRORS" >&5
30826
30827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30828$as_echo "no" >&6; }
30829 have_lqr=no
30830elif test $pkg_failed = untried; then
30831 have_lqr=no
30832else
30833 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30834 LQR_LIBS=$pkg_cv_LQR_LIBS
30835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30836$as_echo "yes" >&6; }
30837 have_lqr=yes
30838fi
cristy09b53e12011-10-14 12:47:22 +000030839 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30840$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030841fi
30842
30843if test "$have_lqr" = 'yes'; then
30844
cristy8b350f62009-11-15 23:12:43 +000030845$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030846
30847 CFLAGS="$LQR_CFLAGS $CFLAGS"
30848fi
30849
cristy73bd4a52010-10-05 11:24:23 +000030850 if test "$have_lqr" = 'yes'; then
30851 LQR_DELEGATE_TRUE=
30852 LQR_DELEGATE_FALSE='#'
30853else
30854 LQR_DELEGATE_TRUE='#'
30855 LQR_DELEGATE_FALSE=
30856fi
30857
cristy3ed852e2009-09-05 21:47:34 +000030858
30859
30860
30861
cristy81beccd2011-10-03 18:17:24 +000030862# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030863
30864# Check whether --with-lzma was given.
30865if test "${with_lzma+set}" = set; then :
30866 withval=$with_lzma; with_lzma=$withval
30867else
30868 with_lzma='yes'
30869fi
30870
cristy81beccd2011-10-03 18:17:24 +000030871if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030872 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30873fi
30874
cristyb94e5002011-11-14 13:20:10 +000030875LZMA_PKG=""
30876if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030877 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30878$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030879
30880pkg_failed=no
30881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030882$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030883
30884if test -n "$LZMA_CFLAGS"; then
30885 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30886 elif test -n "$PKG_CONFIG"; then
30887 if test -n "$PKG_CONFIG" && \
30888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30889 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30890 ac_status=$?
30891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30892 test $ac_status = 0; }; then
30893 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30894else
30895 pkg_failed=yes
30896fi
30897 else
30898 pkg_failed=untried
30899fi
30900if test -n "$LZMA_LIBS"; then
30901 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30902 elif test -n "$PKG_CONFIG"; then
30903 if test -n "$PKG_CONFIG" && \
30904 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30905 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30906 ac_status=$?
30907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30908 test $ac_status = 0; }; then
30909 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30910else
30911 pkg_failed=yes
30912fi
30913 else
30914 pkg_failed=untried
30915fi
30916
30917
30918
30919if test $pkg_failed = yes; then
30920
30921if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30922 _pkg_short_errors_supported=yes
30923else
30924 _pkg_short_errors_supported=no
30925fi
30926 if test $_pkg_short_errors_supported = yes; then
30927 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30928 else
30929 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30930 fi
30931 # Put the nasty error message in config.log where it belongs
30932 echo "$LZMA_PKG_ERRORS" >&5
30933
30934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30935$as_echo "no" >&6; }
30936 have_lzma=no
30937elif test $pkg_failed = untried; then
30938 have_lzma=no
30939else
30940 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30941 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30943$as_echo "yes" >&6; }
30944 have_lzma=yes
30945fi
30946 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030947$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030948fi
30949
cristyb94e5002011-11-14 13:20:10 +000030950if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030951
30952$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30953
cristyc6722092012-10-14 00:19:31 +000030954 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030955 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030956 fi
cristyfbb0ef02010-12-19 02:32:11 +000030957fi
cristyb94e5002011-11-14 13:20:10 +000030958
cristyfbb0ef02010-12-19 02:32:11 +000030959 if test "$have_lzma" = 'yes'; then
30960 LZMA_DELEGATE_TRUE=
30961 LZMA_DELEGATE_FALSE='#'
30962else
30963 LZMA_DELEGATE_TRUE='#'
30964 LZMA_DELEGATE_FALSE=
30965fi
30966
30967
30968
30969
cristyb94e5002011-11-14 13:20:10 +000030970
cristy3ed852e2009-09-05 21:47:34 +000030971#
30972# Check for the OpenEXR delegate library.
30973#
30974
30975# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030976if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030977 withval=$with_openexr; with_openexr=$withval
30978else
30979 with_openexr='yes'
30980fi
30981
30982
30983if test "$with_openexr" != 'yes'; then
30984 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30985fi
30986
30987have_openexr='no'
30988OPENEXR_CFLAGS=""
30989OPENEXR_LIBS=""
30990OPENEXR_PKG=""
30991if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030992 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30993$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030994
30995pkg_failed=no
30996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30997$as_echo_n "checking for OPENEXR... " >&6; }
30998
30999if test -n "$OPENEXR_CFLAGS"; then
31000 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
31001 elif test -n "$PKG_CONFIG"; then
31002 if test -n "$PKG_CONFIG" && \
31003 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31004 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31005 ac_status=$?
31006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31007 test $ac_status = 0; }; then
31008 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
31009else
31010 pkg_failed=yes
31011fi
31012 else
31013 pkg_failed=untried
31014fi
31015if test -n "$OPENEXR_LIBS"; then
31016 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
31017 elif test -n "$PKG_CONFIG"; then
31018 if test -n "$PKG_CONFIG" && \
31019 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31020 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31021 ac_status=$?
31022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31023 test $ac_status = 0; }; then
31024 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
31025else
31026 pkg_failed=yes
31027fi
31028 else
31029 pkg_failed=untried
31030fi
31031
31032
31033
31034if test $pkg_failed = yes; then
31035
31036if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31037 _pkg_short_errors_supported=yes
31038else
31039 _pkg_short_errors_supported=no
31040fi
31041 if test $_pkg_short_errors_supported = yes; then
31042 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
31043 else
31044 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
31045 fi
31046 # Put the nasty error message in config.log where it belongs
31047 echo "$OPENEXR_PKG_ERRORS" >&5
31048
31049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31050$as_echo "no" >&6; }
31051 have_openexr=no
31052elif test $pkg_failed = untried; then
31053 have_openexr=no
31054else
31055 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
31056 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31058$as_echo "yes" >&6; }
31059 have_openexr=yes
31060fi
cristy09b53e12011-10-14 12:47:22 +000031061 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31062$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031063fi
31064
31065if test "$have_openexr" = 'yes'; then
31066
cristy8b350f62009-11-15 23:12:43 +000031067$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031068
cristyc6722092012-10-14 00:19:31 +000031069 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031070 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
31071 fi
31072fi
31073
cristy73bd4a52010-10-05 11:24:23 +000031074 if test "$have_openexr" = 'yes'; then
31075 OPENEXR_DELEGATE_TRUE=
31076 OPENEXR_DELEGATE_FALSE='#'
31077else
31078 OPENEXR_DELEGATE_TRUE='#'
31079 OPENEXR_DELEGATE_FALSE=
31080fi
31081
cristy3ed852e2009-09-05 21:47:34 +000031082
31083
31084
31085
31086#
cristy41cbe8a2011-10-27 01:35:18 +000031087# Check for PANGO delegate library.
31088#
31089
31090# Check whether --with-pango was given.
31091if test "${with_pango+set}" = set; then :
31092 withval=$with_pango; with_pango=$withval
31093else
cristyfc3d0222012-02-07 15:05:57 +000031094 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000031095fi
31096
31097
31098if test "$with_pango" != 'yes'; then
31099 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31100fi
31101
31102have_pango='no'
cristya054b762012-03-26 23:16:00 +000031103have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031104PANGO_CFLAGS=""
31105PANGO_LIBS=""
31106PANGO_PKG=""
31107if test "x$with_pango" = "xyes"; then
31108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31109$as_echo "-------------------------------------------------------------" >&6; }
31110
31111pkg_failed=no
31112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31113$as_echo_n "checking for PANGO... " >&6; }
31114
31115if test -n "$PANGO_CFLAGS"; then
31116 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31117 elif test -n "$PKG_CONFIG"; then
31118 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31120 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031121 ac_status=$?
31122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31123 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031124 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031125else
31126 pkg_failed=yes
31127fi
31128 else
31129 pkg_failed=untried
31130fi
31131if test -n "$PANGO_LIBS"; then
31132 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31133 elif test -n "$PKG_CONFIG"; then
31134 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031135 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31136 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031137 ac_status=$?
31138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31139 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031140 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031141else
31142 pkg_failed=yes
31143fi
31144 else
31145 pkg_failed=untried
31146fi
31147
31148
31149
31150if test $pkg_failed = yes; then
31151
31152if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31153 _pkg_short_errors_supported=yes
31154else
31155 _pkg_short_errors_supported=no
31156fi
31157 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031158 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031159 else
cristya054b762012-03-26 23:16:00 +000031160 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031161 fi
31162 # Put the nasty error message in config.log where it belongs
31163 echo "$PANGO_PKG_ERRORS" >&5
31164
31165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31166$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031167 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031168elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031169 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031170else
31171 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31172 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31174$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031175 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031176fi
31177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31178$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031179
31180pkg_failed=no
31181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31182$as_echo_n "checking for PANGO... " >&6; }
31183
31184if test -n "$PANGO_CFLAGS"; then
31185 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31186 elif test -n "$PKG_CONFIG"; then
31187 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031188 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31189 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031190 ac_status=$?
31191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31192 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031193 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031194else
31195 pkg_failed=yes
31196fi
31197 else
31198 pkg_failed=untried
31199fi
31200if test -n "$PANGO_LIBS"; then
31201 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31202 elif test -n "$PKG_CONFIG"; then
31203 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31205 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031206 ac_status=$?
31207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31208 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031209 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031210else
31211 pkg_failed=yes
31212fi
31213 else
31214 pkg_failed=untried
31215fi
31216
31217
31218
31219if test $pkg_failed = yes; then
31220
31221if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31222 _pkg_short_errors_supported=yes
31223else
31224 _pkg_short_errors_supported=no
31225fi
31226 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031227 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031228 else
cristy2542fc62011-12-06 17:50:25 +000031229 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031230 fi
31231 # Put the nasty error message in config.log where it belongs
31232 echo "$PANGO_PKG_ERRORS" >&5
31233
31234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31235$as_echo "no" >&6; }
31236 have_pango=no
31237elif test $pkg_failed = untried; then
31238 have_pango=no
31239else
31240 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31241 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31243$as_echo "yes" >&6; }
31244 have_pango=yes
31245fi
31246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31247$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031248fi
31249
31250if test "$have_pango" = 'yes'; then
31251
31252$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31253
cristyc6722092012-10-14 00:19:31 +000031254 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000031255 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31256 fi
31257fi
31258
cristya054b762012-03-26 23:16:00 +000031259if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031260
cristya054b762012-03-26 23:16:00 +000031261$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031262
cristyc6722092012-10-14 00:19:31 +000031263 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031264 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031265 fi
31266fi
31267
31268 if test "$have_pango" = 'yes'; then
31269 PANGO_DELEGATE_TRUE=
31270 PANGO_DELEGATE_FALSE='#'
31271else
31272 PANGO_DELEGATE_TRUE='#'
31273 PANGO_DELEGATE_FALSE=
31274fi
31275
cristya054b762012-03-26 23:16:00 +000031276 if test "$have_pangocairo" = 'yes'; then
31277 PANGOCAIRO_DELEGATE_TRUE=
31278 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031279else
cristya054b762012-03-26 23:16:00 +000031280 PANGOCAIRO_DELEGATE_TRUE='#'
31281 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031282fi
31283
31284
31285
31286
31287
31288#
cristy3ed852e2009-09-05 21:47:34 +000031289# Check for PNG delegate library.
31290#
31291
31292# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031293if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031294 withval=$with_png; with_png=$withval
31295else
31296 with_png='yes'
31297fi
31298
31299
31300if test "$with_png" != 'yes'; then
31301 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31302fi
31303
cristy81beccd2011-10-03 18:17:24 +000031304have_png='no'
31305PNG_LIBS=''
31306
31307if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031308 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31309$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31311$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031312 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31313$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031314 failed=0
31315 passed=0
31316 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31317if test "x$ac_cv_header_png_h" = xyes; then :
31318 passed=`expr $passed + 1`
31319else
31320 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031321fi
31322
cristy81beccd2011-10-03 18:17:24 +000031323
31324
31325 if test $passed -gt 0; then
31326 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031327 if test "$have_png" = 'no' ; then
31328 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031329 pnglib='png'
31330 else
31331 pnglib="png1${var}"
31332 fi
31333
31334# Test for compatible LIBPNG library
31335 failed=0
31336 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031337 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031338 if test "${pnglib}" != 'png' ; then
31339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31340$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31342/* end confdefs.h. */
31343#include <stdio.h>
31344#include <stdlib.h>
31345#include <png.h>
31346
31347int
31348main ()
31349{
31350
31351#if PNG_LIBPNG_VER_MINOR != ${var}
31352#error LIBPNG library must be version 1${var}!
31353Kaboom, Kaboom
31354#endif
31355return 0;
31356
31357 ;
31358 return 0;
31359}
31360_ACEOF
31361if ac_fn_c_try_compile "$LINENO"; then :
31362 ac_cv_libpng_ok='yes'
31363else
31364 ac_cv_libpng_ok='no'
31365fi
31366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31367 if test "$ac_cv_libpng_ok" = 'yes' ; then
31368 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031369 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31370$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031371 else
31372 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031373 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31374$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031375 fi
31376 else
31377 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031378 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31379$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031380 fi
31381 fi
31382
31383 if test $passed -gt 0 -a $failed -le 0; then
31384 if test "1${var}" = '15' ; then
31385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31386$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31387if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31388 $as_echo_n "(cached) " >&6
31389else
31390 ac_check_lib_save_LIBS=$LIBS
31391LIBS="-lpng15 $LIBS"
31392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31393/* end confdefs.h. */
31394
31395/* Override any GCC internal prototype to avoid an error.
31396 Use char because int might match the return type of a GCC
31397 builtin and then its argument prototype would still apply. */
31398#ifdef __cplusplus
31399extern "C"
31400#endif
31401char png_get_io_ptr ();
31402int
31403main ()
31404{
31405return png_get_io_ptr ();
31406 ;
31407 return 0;
31408}
31409_ACEOF
31410if ac_fn_c_try_link "$LINENO"; then :
31411 ac_cv_lib_png15_png_get_io_ptr=yes
31412else
31413 ac_cv_lib_png15_png_get_io_ptr=no
31414fi
31415rm -f core conftest.err conftest.$ac_objext \
31416 conftest$ac_exeext conftest.$ac_ext
31417LIBS=$ac_check_lib_save_LIBS
31418fi
31419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31420$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31421if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31422 passed=`expr $passed + 1`
31423else
31424 failed=`expr $failed + 1`
31425fi
31426
31427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31428$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31429if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31430 $as_echo_n "(cached) " >&6
31431else
31432 ac_check_lib_save_LIBS=$LIBS
31433LIBS="-lpng15 $LIBS"
31434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31435/* end confdefs.h. */
31436
31437/* Override any GCC internal prototype to avoid an error.
31438 Use char because int might match the return type of a GCC
31439 builtin and then its argument prototype would still apply. */
31440#ifdef __cplusplus
31441extern "C"
31442#endif
31443char png_longjmp ();
31444int
31445main ()
31446{
31447return png_longjmp ();
31448 ;
31449 return 0;
31450}
31451_ACEOF
31452if ac_fn_c_try_link "$LINENO"; then :
31453 ac_cv_lib_png15_png_longjmp=yes
31454else
31455 ac_cv_lib_png15_png_longjmp=no
31456fi
31457rm -f core conftest.err conftest.$ac_objext \
31458 conftest$ac_exeext conftest.$ac_ext
31459LIBS=$ac_check_lib_save_LIBS
31460fi
31461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31462$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31463if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31464 passed=`expr $passed + 1`
31465else
31466 failed=`expr $failed + 1`
31467fi
31468
31469 fi
31470 if test "1${var}" = '14' ; then
31471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31472$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31473if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31474 $as_echo_n "(cached) " >&6
31475else
31476 ac_check_lib_save_LIBS=$LIBS
31477LIBS="-lpng14 $LIBS"
31478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31479/* end confdefs.h. */
31480
31481/* Override any GCC internal prototype to avoid an error.
31482 Use char because int might match the return type of a GCC
31483 builtin and then its argument prototype would still apply. */
31484#ifdef __cplusplus
31485extern "C"
31486#endif
31487char png_get_io_ptr ();
31488int
31489main ()
31490{
31491return png_get_io_ptr ();
31492 ;
31493 return 0;
31494}
31495_ACEOF
31496if ac_fn_c_try_link "$LINENO"; then :
31497 ac_cv_lib_png14_png_get_io_ptr=yes
31498else
31499 ac_cv_lib_png14_png_get_io_ptr=no
31500fi
31501rm -f core conftest.err conftest.$ac_objext \
31502 conftest$ac_exeext conftest.$ac_ext
31503LIBS=$ac_check_lib_save_LIBS
31504fi
31505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31506$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31507if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31508 passed=`expr $passed + 1`
31509else
31510 failed=`expr $failed + 1`
31511fi
31512
31513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31514$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31515if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31516 $as_echo_n "(cached) " >&6
31517else
31518 ac_check_lib_save_LIBS=$LIBS
31519LIBS="-lpng14 $LIBS"
31520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31521/* end confdefs.h. */
31522
31523/* Override any GCC internal prototype to avoid an error.
31524 Use char because int might match the return type of a GCC
31525 builtin and then its argument prototype would still apply. */
31526#ifdef __cplusplus
31527extern "C"
31528#endif
31529char png_get_io_state ();
31530int
31531main ()
31532{
31533return png_get_io_state ();
31534 ;
31535 return 0;
31536}
31537_ACEOF
31538if ac_fn_c_try_link "$LINENO"; then :
31539 ac_cv_lib_png14_png_get_io_state=yes
31540else
31541 ac_cv_lib_png14_png_get_io_state=no
31542fi
31543rm -f core conftest.err conftest.$ac_objext \
31544 conftest$ac_exeext conftest.$ac_ext
31545LIBS=$ac_check_lib_save_LIBS
31546fi
31547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31548$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31549if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31550 passed=`expr $passed + 1`
31551else
31552 failed=`expr $failed + 1`
31553fi
31554
31555 fi
31556 if test "1${var}" = '12' ; then
31557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31558$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31559if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31560 $as_echo_n "(cached) " >&6
31561else
31562 ac_check_lib_save_LIBS=$LIBS
31563LIBS="-lpng12 $LIBS"
31564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31565/* end confdefs.h. */
31566
31567/* Override any GCC internal prototype to avoid an error.
31568 Use char because int might match the return type of a GCC
31569 builtin and then its argument prototype would still apply. */
31570#ifdef __cplusplus
31571extern "C"
31572#endif
31573char png_get_io_ptr ();
31574int
31575main ()
31576{
31577return png_get_io_ptr ();
31578 ;
31579 return 0;
31580}
31581_ACEOF
31582if ac_fn_c_try_link "$LINENO"; then :
31583 ac_cv_lib_png12_png_get_io_ptr=yes
31584else
31585 ac_cv_lib_png12_png_get_io_ptr=no
31586fi
31587rm -f core conftest.err conftest.$ac_objext \
31588 conftest$ac_exeext conftest.$ac_ext
31589LIBS=$ac_check_lib_save_LIBS
31590fi
31591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31592$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31593if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31594 passed=`expr $passed + 1`
31595else
31596 failed=`expr $failed + 1`
31597fi
31598
31599 fi
31600 if test "1${var}" = '1' ; then
31601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31602$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31603if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31604 $as_echo_n "(cached) " >&6
31605else
31606 ac_check_lib_save_LIBS=$LIBS
31607LIBS="-lpng $LIBS"
31608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31609/* end confdefs.h. */
31610
31611/* Override any GCC internal prototype to avoid an error.
31612 Use char because int might match the return type of a GCC
31613 builtin and then its argument prototype would still apply. */
31614#ifdef __cplusplus
31615extern "C"
31616#endif
31617char png_get_io_ptr ();
31618int
31619main ()
31620{
31621return png_get_io_ptr ();
31622 ;
31623 return 0;
31624}
31625_ACEOF
31626if ac_fn_c_try_link "$LINENO"; then :
31627 ac_cv_lib_png_png_get_io_ptr=yes
31628else
31629 ac_cv_lib_png_png_get_io_ptr=no
31630fi
31631rm -f core conftest.err conftest.$ac_objext \
31632 conftest$ac_exeext conftest.$ac_ext
31633LIBS=$ac_check_lib_save_LIBS
31634fi
31635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31636$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31637if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31638 passed=`expr $passed + 1`
31639else
31640 failed=`expr $failed + 1`
31641fi
31642
31643 fi
31644 if test $passed -gt 0 -a $failed -le 0 ; then
31645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31646$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31647 if test $passed -gt 0 ; then
31648 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031649 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31650$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031651 have_png='no (failed tests)'
31652 else
31653 PNG_LIBS="-l${pnglib}"
31654 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031655
cristy8b350f62009-11-15 23:12:43 +000031656$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031657
cristy09b53e12011-10-14 12:47:22 +000031658 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31659$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031660 have_png='yes'
31661 fi
31662 fi
31663 fi
31664 fi
31665 fi
31666 done
31667 fi
cristy3ed852e2009-09-05 21:47:34 +000031668fi
cristy64877302011-08-23 19:10:31 +000031669
cristy73bd4a52010-10-05 11:24:23 +000031670 if test "$have_png" = 'yes'; then
31671 PNG_DELEGATE_TRUE=
31672 PNG_DELEGATE_FALSE='#'
31673else
31674 PNG_DELEGATE_TRUE='#'
31675 PNG_DELEGATE_FALSE=
31676fi
31677
cristy3ed852e2009-09-05 21:47:34 +000031678
cristy50d3f5c2011-09-10 20:09:06 +000031679
cristy3ed852e2009-09-05 21:47:34 +000031680
31681
31682#
31683# Check for RSVG delegate library.
31684#
31685
31686# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031687if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031688 withval=$with_rsvg; with_rsvg=$withval
31689else
cristy1164d5f2012-08-15 00:58:25 +000031690 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031691fi
31692
31693
31694if test "$with_rsvg" != 'yes'; then
31695 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31696fi
31697
31698have_rsvg='no'
31699have_cairo='no'
31700RSVG_CFLAGS=""
31701RSVG_LIBS=""
31702RSVG_PKG=""
31703if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031704 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31705$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031706
31707pkg_failed=no
31708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31709$as_echo_n "checking for RSVG... " >&6; }
31710
31711if test -n "$RSVG_CFLAGS"; then
31712 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31713 elif test -n "$PKG_CONFIG"; then
31714 if test -n "$PKG_CONFIG" && \
31715 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31716 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31717 ac_status=$?
31718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31719 test $ac_status = 0; }; then
31720 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31721else
31722 pkg_failed=yes
31723fi
31724 else
31725 pkg_failed=untried
31726fi
31727if test -n "$RSVG_LIBS"; then
31728 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31729 elif test -n "$PKG_CONFIG"; then
31730 if test -n "$PKG_CONFIG" && \
31731 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31732 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31733 ac_status=$?
31734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31735 test $ac_status = 0; }; then
31736 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31737else
31738 pkg_failed=yes
31739fi
31740 else
31741 pkg_failed=untried
31742fi
31743
31744
31745
31746if test $pkg_failed = yes; then
31747
31748if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31749 _pkg_short_errors_supported=yes
31750else
31751 _pkg_short_errors_supported=no
31752fi
31753 if test $_pkg_short_errors_supported = yes; then
31754 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31755 else
31756 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31757 fi
31758 # Put the nasty error message in config.log where it belongs
31759 echo "$RSVG_PKG_ERRORS" >&5
31760
31761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31762$as_echo "no" >&6; }
31763 have_rsvg=no
31764elif test $pkg_failed = untried; then
31765 have_rsvg=no
31766else
31767 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31768 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31770$as_echo "yes" >&6; }
31771 have_rsvg=yes
31772fi
cristy09b53e12011-10-14 12:47:22 +000031773 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31774$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031775
31776pkg_failed=no
31777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31778$as_echo_n "checking for CAIRO_SVG... " >&6; }
31779
31780if test -n "$CAIRO_SVG_CFLAGS"; then
31781 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31782 elif test -n "$PKG_CONFIG"; then
31783 if test -n "$PKG_CONFIG" && \
31784 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31785 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31786 ac_status=$?
31787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31788 test $ac_status = 0; }; then
31789 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31790else
31791 pkg_failed=yes
31792fi
31793 else
31794 pkg_failed=untried
31795fi
31796if test -n "$CAIRO_SVG_LIBS"; then
31797 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31798 elif test -n "$PKG_CONFIG"; then
31799 if test -n "$PKG_CONFIG" && \
31800 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31801 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31802 ac_status=$?
31803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31804 test $ac_status = 0; }; then
31805 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31806else
31807 pkg_failed=yes
31808fi
31809 else
31810 pkg_failed=untried
31811fi
31812
31813
31814
31815if test $pkg_failed = yes; then
31816
31817if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31818 _pkg_short_errors_supported=yes
31819else
31820 _pkg_short_errors_supported=no
31821fi
31822 if test $_pkg_short_errors_supported = yes; then
31823 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31824 else
31825 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31826 fi
31827 # Put the nasty error message in config.log where it belongs
31828 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31829
31830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31831$as_echo "no" >&6; }
31832 have_cairo=no
31833elif test $pkg_failed = untried; then
31834 have_cairo=no
31835else
31836 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31837 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31839$as_echo "yes" >&6; }
31840 have_cairo=yes
31841fi
cristy09b53e12011-10-14 12:47:22 +000031842 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31843$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031844fi
31845
31846if test "$have_rsvg" = 'yes'; then
31847
cristy8b350f62009-11-15 23:12:43 +000031848$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031849
cristyc6722092012-10-14 00:19:31 +000031850 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031851 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31852 fi
31853fi
31854
31855if test "$have_cairo" = 'yes'; then
31856
cristy8b350f62009-11-15 23:12:43 +000031857$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031858
cristyc6722092012-10-14 00:19:31 +000031859 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031860 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31861 fi
31862fi
31863
cristy73bd4a52010-10-05 11:24:23 +000031864 if test "$have_rsvg" = 'yes'; then
31865 RSVG_DELEGATE_TRUE=
31866 RSVG_DELEGATE_FALSE='#'
31867else
31868 RSVG_DELEGATE_TRUE='#'
31869 RSVG_DELEGATE_FALSE=
31870fi
31871
31872 if test "$have_cairo" = 'yes'; then
31873 CAIRO_DELEGATE_TRUE=
31874 CAIRO_DELEGATE_FALSE='#'
31875else
31876 CAIRO_DELEGATE_TRUE='#'
31877 CAIRO_DELEGATE_FALSE=
31878fi
31879
cristy3ed852e2009-09-05 21:47:34 +000031880
31881
31882
31883
31884#
31885# Check for TIFF delegate library.
31886#
31887
31888# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031889if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031890 withval=$with_tiff; with_tiff=$withval
31891else
31892 with_tiff='yes'
31893fi
31894
31895
31896if test "$with_tiff" != 'yes'; then
31897 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31898fi
31899
31900have_tiff='no'
31901TIFF_LIBS=''
31902if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031903 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31904$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031906$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031907 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31908$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031909 failed=0
31910 passed=0
cristy8b350f62009-11-15 23:12:43 +000031911 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031912if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031913 passed=`expr $passed + 1`
31914else
31915 failed=`expr $failed + 1`
31916fi
31917
31918
cristy8b350f62009-11-15 23:12:43 +000031919 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031920if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031921 passed=`expr $passed + 1`
31922else
31923 failed=`expr $failed + 1`
31924fi
31925
31926
cristy8b350f62009-11-15 23:12:43 +000031927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031928$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031929if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031930 $as_echo_n "(cached) " >&6
31931else
31932 ac_check_lib_save_LIBS=$LIBS
31933LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031935/* end confdefs.h. */
31936
31937/* Override any GCC internal prototype to avoid an error.
31938 Use char because int might match the return type of a GCC
31939 builtin and then its argument prototype would still apply. */
31940#ifdef __cplusplus
31941extern "C"
31942#endif
31943char TIFFOpen ();
31944int
31945main ()
31946{
31947return TIFFOpen ();
31948 ;
31949 return 0;
31950}
31951_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031952if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031953 ac_cv_lib_tiff_TIFFOpen=yes
31954else
cristy8b350f62009-11-15 23:12:43 +000031955 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031956fi
cristy8b350f62009-11-15 23:12:43 +000031957rm -f core conftest.err conftest.$ac_objext \
31958 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031959LIBS=$ac_check_lib_save_LIBS
31960fi
cristy8b350f62009-11-15 23:12:43 +000031961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031962$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031963if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031964 passed=`expr $passed + 1`
31965else
31966 failed=`expr $failed + 1`
31967fi
31968
cristy8b350f62009-11-15 23:12:43 +000031969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031970$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031971if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031972 $as_echo_n "(cached) " >&6
31973else
31974 ac_check_lib_save_LIBS=$LIBS
31975LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031977/* end confdefs.h. */
31978
31979/* Override any GCC internal prototype to avoid an error.
31980 Use char because int might match the return type of a GCC
31981 builtin and then its argument prototype would still apply. */
31982#ifdef __cplusplus
31983extern "C"
31984#endif
31985char TIFFClientOpen ();
31986int
31987main ()
31988{
31989return TIFFClientOpen ();
31990 ;
31991 return 0;
31992}
31993_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031994if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031995 ac_cv_lib_tiff_TIFFClientOpen=yes
31996else
cristy8b350f62009-11-15 23:12:43 +000031997 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031998fi
cristy8b350f62009-11-15 23:12:43 +000031999rm -f core conftest.err conftest.$ac_objext \
32000 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032001LIBS=$ac_check_lib_save_LIBS
32002fi
cristy8b350f62009-11-15 23:12:43 +000032003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032004$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032005if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032006 passed=`expr $passed + 1`
32007else
32008 failed=`expr $failed + 1`
32009fi
32010
cristy8b350f62009-11-15 23:12:43 +000032011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032012$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032013if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032014 $as_echo_n "(cached) " >&6
32015else
32016 ac_check_lib_save_LIBS=$LIBS
32017LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032019/* end confdefs.h. */
32020
32021/* Override any GCC internal prototype to avoid an error.
32022 Use char because int might match the return type of a GCC
32023 builtin and then its argument prototype would still apply. */
32024#ifdef __cplusplus
32025extern "C"
32026#endif
32027char TIFFIsByteSwapped ();
32028int
32029main ()
32030{
32031return TIFFIsByteSwapped ();
32032 ;
32033 return 0;
32034}
32035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032036if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032037 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
32038else
cristy8b350f62009-11-15 23:12:43 +000032039 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000032040fi
cristy8b350f62009-11-15 23:12:43 +000032041rm -f core conftest.err conftest.$ac_objext \
32042 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032043LIBS=$ac_check_lib_save_LIBS
32044fi
cristy8b350f62009-11-15 23:12:43 +000032045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000032046$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000032047if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032048 passed=`expr $passed + 1`
32049else
32050 failed=`expr $failed + 1`
32051fi
32052
cristy8b350f62009-11-15 23:12:43 +000032053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032054$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032055if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032056 $as_echo_n "(cached) " >&6
32057else
32058 ac_check_lib_save_LIBS=$LIBS
32059LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032061/* end confdefs.h. */
32062
32063/* Override any GCC internal prototype to avoid an error.
32064 Use char because int might match the return type of a GCC
32065 builtin and then its argument prototype would still apply. */
32066#ifdef __cplusplus
32067extern "C"
32068#endif
32069char TIFFReadRGBATile ();
32070int
32071main ()
32072{
32073return TIFFReadRGBATile ();
32074 ;
32075 return 0;
32076}
32077_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032078if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032079 ac_cv_lib_tiff_TIFFReadRGBATile=yes
32080else
cristy8b350f62009-11-15 23:12:43 +000032081 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000032082fi
cristy8b350f62009-11-15 23:12:43 +000032083rm -f core conftest.err conftest.$ac_objext \
32084 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032085LIBS=$ac_check_lib_save_LIBS
32086fi
cristy8b350f62009-11-15 23:12:43 +000032087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000032088$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000032089if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032090 passed=`expr $passed + 1`
32091else
32092 failed=`expr $failed + 1`
32093fi
32094
cristy8b350f62009-11-15 23:12:43 +000032095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032096$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032097if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032098 $as_echo_n "(cached) " >&6
32099else
32100 ac_check_lib_save_LIBS=$LIBS
32101LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032103/* end confdefs.h. */
32104
32105/* Override any GCC internal prototype to avoid an error.
32106 Use char because int might match the return type of a GCC
32107 builtin and then its argument prototype would still apply. */
32108#ifdef __cplusplus
32109extern "C"
32110#endif
32111char TIFFReadRGBAStrip ();
32112int
32113main ()
32114{
32115return TIFFReadRGBAStrip ();
32116 ;
32117 return 0;
32118}
32119_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032120if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032121 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32122else
cristy8b350f62009-11-15 23:12:43 +000032123 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032124fi
cristy8b350f62009-11-15 23:12:43 +000032125rm -f core conftest.err conftest.$ac_objext \
32126 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032127LIBS=$ac_check_lib_save_LIBS
32128fi
cristy8b350f62009-11-15 23:12:43 +000032129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032130$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032131if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032132 passed=`expr $passed + 1`
32133else
32134 failed=`expr $failed + 1`
32135fi
32136
cristy8b350f62009-11-15 23:12:43 +000032137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032138$as_echo_n "checking if TIFF package is complete... " >&6; }
32139 if test $passed -gt 0; then
32140 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032141 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32142$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032143 have_tiff='no (failed tests)'
32144 else
32145 TIFF_LIBS='-ltiff'
32146 LIBS="$TIFF_LIBS $LIBS"
32147
cristy8b350f62009-11-15 23:12:43 +000032148$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032149
cristy09b53e12011-10-14 12:47:22 +000032150 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32151$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032152 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032153 for ac_header in tiffconf.h
32154do :
32155 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032156if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032157 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032158#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032159_ACEOF
32160
32161fi
32162
32163done
32164
cristy8b350f62009-11-15 23:12:43 +000032165 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032166 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32167 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32168 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032169do :
32170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32171ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032172if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032173 cat >>confdefs.h <<_ACEOF
32174#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32175_ACEOF
32176
32177fi
32178done
32179
32180 fi
32181 else
cristy09b53e12011-10-14 12:47:22 +000032182 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32183$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032184 fi
32185fi
cristy73bd4a52010-10-05 11:24:23 +000032186 if test "$have_tiff" = 'yes'; then
32187 TIFF_DELEGATE_TRUE=
32188 TIFF_DELEGATE_FALSE='#'
32189else
32190 TIFF_DELEGATE_TRUE='#'
32191 TIFF_DELEGATE_FALSE=
32192fi
32193
cristy3ed852e2009-09-05 21:47:34 +000032194
32195
32196
32197#
cristyb1860752011-03-14 00:27:46 +000032198# Check for WEBP delegate library.
32199#
32200
32201# Check whether --with-webp was given.
32202if test "${with_webp+set}" = set; then :
32203 withval=$with_webp; with_webp=$withval
32204else
32205 with_webp='yes'
32206fi
32207
32208
32209if test "$with_webp" != 'yes'; then
32210 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32211fi
32212
32213have_webp='no'
32214WEBP_LIBS=''
32215if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032216 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32217$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000032218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32219$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032220 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32221$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000032222 failed=0
32223 passed=0
32224 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32225if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32226 passed=`expr $passed + 1`
32227else
32228 failed=`expr $failed + 1`
32229fi
32230
32231
32232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32233$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32234if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32235 $as_echo_n "(cached) " >&6
32236else
32237 ac_check_lib_save_LIBS=$LIBS
32238LIBS="-lwebp $LIBS"
32239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32240/* end confdefs.h. */
32241
32242/* Override any GCC internal prototype to avoid an error.
32243 Use char because int might match the return type of a GCC
32244 builtin and then its argument prototype would still apply. */
32245#ifdef __cplusplus
32246extern "C"
32247#endif
32248char WebPDecodeRGB ();
32249int
32250main ()
32251{
32252return WebPDecodeRGB ();
32253 ;
32254 return 0;
32255}
32256_ACEOF
32257if ac_fn_c_try_link "$LINENO"; then :
32258 ac_cv_lib_webp_WebPDecodeRGB=yes
32259else
32260 ac_cv_lib_webp_WebPDecodeRGB=no
32261fi
32262rm -f core conftest.err conftest.$ac_objext \
32263 conftest$ac_exeext conftest.$ac_ext
32264LIBS=$ac_check_lib_save_LIBS
32265fi
32266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32267$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32268if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32269 passed=`expr $passed + 1`
32270else
32271 failed=`expr $failed + 1`
32272fi
32273
32274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32275$as_echo_n "checking if WEBP package is complete... " >&6; }
32276 if test $passed -gt 0; then
32277 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032278 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32279$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032280 have_webp='no (failed tests)'
32281 else
32282 WEBP_LIBS='-lwebp'
32283 LIBS="$WEBP_LIBS $LIBS"
32284
32285$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32286
cristy09b53e12011-10-14 12:47:22 +000032287 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32288$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032289 have_webp='yes'
32290 fi
32291 else
cristy09b53e12011-10-14 12:47:22 +000032292 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32293$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032294 fi
32295fi
32296 if test "$have_webp" = 'yes'; then
32297 WEBP_DELEGATE_TRUE=
32298 WEBP_DELEGATE_FALSE='#'
32299else
32300 WEBP_DELEGATE_TRUE='#'
32301 WEBP_DELEGATE_FALSE=
32302fi
32303
32304
32305
32306
32307#
cristy3ed852e2009-09-05 21:47:34 +000032308# Set Windows font directory.
32309#
32310
32311# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032312if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032313 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32314else
32315 with_windows_font_dir=''
32316fi
32317
32318if test "$with_windows_font_dir" != '' ; then
32319 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32320fi
32321
32322
32323#
32324# Check for WMF delegate library.
32325#
32326
32327# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032328if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032329 withval=$with_wmf; with_wmf=$withval
32330else
cristyfc3d0222012-02-07 15:05:57 +000032331 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032332fi
32333
32334
32335if test "$with_wmf" != 'yes'; then
32336 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32337fi
32338
32339have_wmf='no'
32340WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032341WMF_LIBS_DEPS=''
32342OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032343if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32345$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032347$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32349$as_echo "" >&6; }
32350 have_libwmf='no'
32351 have_libwmflite='no'
32352 have_libwmf_ipa_h='no'
32353
32354 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32355"
32356if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32357 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032358fi
32359
32360
cristy03f7cf92011-12-15 01:40:41 +000032361 if test "$have_libwmf_ipa_h" = 'yes'; then
32362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32363$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32364if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032365 $as_echo_n "(cached) " >&6
32366else
32367 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032368LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032370/* end confdefs.h. */
32371
32372/* Override any GCC internal prototype to avoid an error.
32373 Use char because int might match the return type of a GCC
32374 builtin and then its argument prototype would still apply. */
32375#ifdef __cplusplus
32376extern "C"
32377#endif
cristy03f7cf92011-12-15 01:40:41 +000032378char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032379int
32380main ()
32381{
cristy03f7cf92011-12-15 01:40:41 +000032382return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032383 ;
32384 return 0;
32385}
32386_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032387if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032388 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032389else
cristy03f7cf92011-12-15 01:40:41 +000032390 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032391fi
cristy8b350f62009-11-15 23:12:43 +000032392rm -f core conftest.err conftest.$ac_objext \
32393 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032394LIBS=$ac_check_lib_save_LIBS
32395fi
cristy03f7cf92011-12-15 01:40:41 +000032396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32397$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32398if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32399 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032400fi
32401
cristy03f7cf92011-12-15 01:40:41 +000032402 if test "$have_libwmflite" = 'yes'; then
32403
32404$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32405
32406 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032407 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032408 have_wmf='yes'
32409 else
32410 WMF_LIBS_DEPS=''
32411 WMF_CONFIG_LIBS=`libwmf-config --libs`
32412 for lib in xml2 expat freetype jpeg png z; do
32413 testlib="-l${lib}"
32414 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32415 done
32416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32417$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32418if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32419 $as_echo_n "(cached) " >&6
32420else
32421 ac_check_lib_save_LIBS=$LIBS
32422LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32424/* end confdefs.h. */
32425
32426/* Override any GCC internal prototype to avoid an error.
32427 Use char because int might match the return type of a GCC
32428 builtin and then its argument prototype would still apply. */
32429#ifdef __cplusplus
32430extern "C"
32431#endif
32432char wmf_api_create ();
32433int
32434main ()
32435{
32436return wmf_api_create ();
32437 ;
32438 return 0;
32439}
32440_ACEOF
32441if ac_fn_c_try_link "$LINENO"; then :
32442 ac_cv_lib_wmf_wmf_api_create=yes
32443else
32444 ac_cv_lib_wmf_wmf_api_create=no
32445fi
32446rm -f core conftest.err conftest.$ac_objext \
32447 conftest$ac_exeext conftest.$ac_ext
32448LIBS=$ac_check_lib_save_LIBS
32449fi
32450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32451$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32452if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32453 have_libwmf='yes'
32454fi
32455
32456 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032457
cristy8b350f62009-11-15 23:12:43 +000032458$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032459
cristy03f7cf92011-12-15 01:40:41 +000032460 WMF_LIBS='-lwmf'
32461 LIBS="$WMF_LIBS $LIBS"
32462 have_wmf='yes'
32463 else
32464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32465$as_echo "no -- some components failed test" >&6; }
32466 have_wmf='no (failed tests)'
32467 have_wmflite='no (failed tests)'
32468 LIBS="$OLIBS"
32469 WMF_LIBS=''
32470 fi
glennrp33e524b2011-08-24 17:41:57 +000032471 fi
cristy03f7cf92011-12-15 01:40:41 +000032472 fi
32473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32474$as_echo_n "checking if WMF package is complete... " >&6; }
32475 if test "$have_wmf" = 'yes'; then
32476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32477$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032478 else
cristy03f7cf92011-12-15 01:40:41 +000032479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32480$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032481 fi
cristy3ed852e2009-09-05 21:47:34 +000032482fi
cristy73bd4a52010-10-05 11:24:23 +000032483 if test "$have_wmf" = 'yes'; then
32484 WMF_DELEGATE_TRUE=
32485 WMF_DELEGATE_FALSE='#'
32486else
32487 WMF_DELEGATE_TRUE='#'
32488 WMF_DELEGATE_FALSE=
32489fi
32490
cristy3ed852e2009-09-05 21:47:34 +000032491
32492
32493
cristy81beccd2011-10-03 18:17:24 +000032494
32495
cristy3ed852e2009-09-05 21:47:34 +000032496#
32497# Check for XML delegate library.
32498#
32499
32500# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032501if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032502 withval=$with_xml; with_xml=$withval
32503else
cristyfc3d0222012-02-07 15:05:57 +000032504 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032505fi
32506
32507
cristy81beccd2011-10-03 18:17:24 +000032508if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032509 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32510fi
32511
cristy81beccd2011-10-03 18:17:24 +000032512have_xml='no'
32513XML_LIBS=''
32514if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032515 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32516$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32518$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032519 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32520$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032521 PERSIST_LDFLAGS=$LDFLAGS
32522 PERSIST_CPPFLAGS=$CPPFLAGS
32523 xml2_config=''
32524 # Extract the first word of "xml2-config", so it can be a program name with args.
32525set dummy xml2-config; ac_word=$2
32526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32527$as_echo_n "checking for $ac_word... " >&6; }
32528if ${ac_cv_path_xml2_config+:} false; then :
32529 $as_echo_n "(cached) " >&6
32530else
32531 case $xml2_config in
32532 [\\/]* | ?:[\\/]*)
32533 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32534 ;;
32535 *)
32536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32537for as_dir in $PATH
32538do
32539 IFS=$as_save_IFS
32540 test -z "$as_dir" && as_dir=.
32541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032543 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32545 break 2
32546 fi
32547done
32548 done
32549IFS=$as_save_IFS
32550
32551 ;;
32552esac
32553fi
32554xml2_config=$ac_cv_path_xml2_config
32555if test -n "$xml2_config"; then
32556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32557$as_echo "$xml2_config" >&6; }
32558else
32559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32560$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032561fi
32562
cristy81beccd2011-10-03 18:17:24 +000032563 if test -n "$xml2_config"; then
32564 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32565 # the shared library installed under /usr/lib, whereas the package
32566 # installs itself under $prefix/libxml and $prefix/lib.
32567 xml2_prefix=`xml2-config --prefix`
32568 if test -d "${xml2_prefix}/include/libxml2"; then
32569 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32570 fi
32571 if test "${xml2_prefix}" != '/usr'; then
32572 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32573 fi
32574 fi
32575 failed=0
32576 passed=0
32577 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32578if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32579 passed=`expr $passed + 1`
32580else
32581 failed=`expr $failed + 1`
32582fi
32583
32584
32585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32586$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32587if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32588 $as_echo_n "(cached) " >&6
32589else
32590 ac_check_lib_save_LIBS=$LIBS
32591LIBS="-lxml2 $LIBS"
32592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32593/* end confdefs.h. */
32594
32595/* Override any GCC internal prototype to avoid an error.
32596 Use char because int might match the return type of a GCC
32597 builtin and then its argument prototype would still apply. */
32598#ifdef __cplusplus
32599extern "C"
32600#endif
32601char xmlSAXVersion ();
32602int
32603main ()
32604{
32605return xmlSAXVersion ();
32606 ;
32607 return 0;
32608}
32609_ACEOF
32610if ac_fn_c_try_link "$LINENO"; then :
32611 ac_cv_lib_xml2_xmlSAXVersion=yes
32612else
32613 ac_cv_lib_xml2_xmlSAXVersion=no
32614fi
32615rm -f core conftest.err conftest.$ac_objext \
32616 conftest$ac_exeext conftest.$ac_ext
32617LIBS=$ac_check_lib_save_LIBS
32618fi
32619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32620$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32621if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32622 passed=`expr $passed + 1`
32623else
32624 failed=`expr $failed + 1`
32625fi
32626
32627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32628$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32629if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32630 $as_echo_n "(cached) " >&6
32631else
32632 ac_check_lib_save_LIBS=$LIBS
32633LIBS="-lxml2 $LIBS"
32634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32635/* end confdefs.h. */
32636
32637/* Override any GCC internal prototype to avoid an error.
32638 Use char because int might match the return type of a GCC
32639 builtin and then its argument prototype would still apply. */
32640#ifdef __cplusplus
32641extern "C"
32642#endif
32643char xmlParseChunk ();
32644int
32645main ()
32646{
32647return xmlParseChunk ();
32648 ;
32649 return 0;
32650}
32651_ACEOF
32652if ac_fn_c_try_link "$LINENO"; then :
32653 ac_cv_lib_xml2_xmlParseChunk=yes
32654else
32655 ac_cv_lib_xml2_xmlParseChunk=no
32656fi
32657rm -f core conftest.err conftest.$ac_objext \
32658 conftest$ac_exeext conftest.$ac_ext
32659LIBS=$ac_check_lib_save_LIBS
32660fi
32661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32662$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32663if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32664 passed=`expr $passed + 1`
32665else
32666 failed=`expr $failed + 1`
32667fi
32668
32669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32670$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32671if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32672 $as_echo_n "(cached) " >&6
32673else
32674 ac_check_lib_save_LIBS=$LIBS
32675LIBS="-lxml2 $LIBS"
32676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32677/* end confdefs.h. */
32678
32679/* Override any GCC internal prototype to avoid an error.
32680 Use char because int might match the return type of a GCC
32681 builtin and then its argument prototype would still apply. */
32682#ifdef __cplusplus
32683extern "C"
32684#endif
32685char xmlCreatePushParserCtxt ();
32686int
32687main ()
32688{
32689return xmlCreatePushParserCtxt ();
32690 ;
32691 return 0;
32692}
32693_ACEOF
32694if ac_fn_c_try_link "$LINENO"; then :
32695 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32696else
32697 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32698fi
32699rm -f core conftest.err conftest.$ac_objext \
32700 conftest$ac_exeext conftest.$ac_ext
32701LIBS=$ac_check_lib_save_LIBS
32702fi
32703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32704$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32705if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32706 passed=`expr $passed + 1`
32707else
32708 failed=`expr $failed + 1`
32709fi
32710
32711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32712$as_echo_n "checking if XML package is complete... " >&6; }
32713 if test $passed -gt 0; then
32714 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032715 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32716$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032717 have_xml='no (failed tests)'
32718 LDFLAGS="$PERSIST_LDFLAGS"
32719 CPPFLAGS="$PERSIST_CPPFLAGS"
32720 else
32721 XML_LIBS='-lxml2'
32722 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032723
cristy8b350f62009-11-15 23:12:43 +000032724$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032725
cristy09b53e12011-10-14 12:47:22 +000032726 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32727$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032728 have_xml='yes'
32729 fi
32730 else
cristy09b53e12011-10-14 12:47:22 +000032731 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32732$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032733 fi
32734fi
cristy73bd4a52010-10-05 11:24:23 +000032735 if test "$have_xml" = 'yes'; then
32736 XML_DELEGATE_TRUE=
32737 XML_DELEGATE_FALSE='#'
32738else
32739 XML_DELEGATE_TRUE='#'
32740 XML_DELEGATE_FALSE=
32741fi
32742
cristy3ed852e2009-09-05 21:47:34 +000032743
32744
32745
32746# Substitute compiler name to build/link PerlMagick
32747#
32748
32749
32750#
32751# Configure install Paths
32752#
cristy7def36a2011-10-28 19:04:41 +000032753
cristy2a11bef2011-10-28 18:33:11 +000032754# Path to ImageMagick header files
32755INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032756INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32757DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032758case "${build_os}" in
32759 mingw* )
32760 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32761 ;;
32762esac
32763
32764cat >>confdefs.h <<_ACEOF
32765#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32766_ACEOF
32767
32768
cristy3ed852e2009-09-05 21:47:34 +000032769
32770# Subdirectory under lib to place ImageMagick lib files
32771LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32772
32773cat >>confdefs.h <<_ACEOF
32774#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32775_ACEOF
32776
32777
32778# Path to ImageMagick bin directory
32779EXECUTABLE_PATH="${BIN_DIR}"
32780DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32781case "${build_os}" in
32782 mingw* )
32783 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32784 ;;
32785esac
32786
32787cat >>confdefs.h <<_ACEOF
32788#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32789_ACEOF
32790
32791
32792
32793# Path to ImageMagick lib
32794LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32795DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32796case "${build_os}" in
32797 mingw* )
32798 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32799 ;;
32800esac
32801
32802cat >>confdefs.h <<_ACEOF
32803#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32804_ACEOF
32805
32806
32807
cristy3ed852e2009-09-05 21:47:34 +000032808#
32809# Subdirectory under lib to place ImageMagick coder module files
32810CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32811
32812cat >>confdefs.h <<_ACEOF
32813#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32814_ACEOF
32815
32816CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32817DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32818case "${build_os}" in
32819 mingw* )
32820 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32821 ;;
32822esac
32823
32824cat >>confdefs.h <<_ACEOF
32825#define CODER_PATH "$DEFINE_CODER_PATH"
32826_ACEOF
32827
32828
32829
32830#
32831# Subdirectory under lib to place ImageMagick filter module files
32832FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32833
32834cat >>confdefs.h <<_ACEOF
32835#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32836_ACEOF
32837
32838FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32839DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32840case "${build_os}" in
32841 mingw* )
32842 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32843 ;;
32844esac
32845
32846cat >>confdefs.h <<_ACEOF
32847#define FILTER_PATH "$DEFINE_FILTER_PATH"
32848_ACEOF
32849
32850
32851
32852#
32853# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032854DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032855DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32856DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032857case "${build_os}" in
32858 mingw* )
32859 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32860 ;;
32861esac
32862
32863cat >>confdefs.h <<_ACEOF
32864#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32865_ACEOF
32866
32867
32868
cristy2a11bef2011-10-28 18:33:11 +000032869# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032870CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032871
32872cat >>confdefs.h <<_ACEOF
32873#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32874_ACEOF
32875
cristy7def36a2011-10-28 19:04:41 +000032876CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032877DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32878case "${build_os}" in
32879 mingw* )
32880 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32881 ;;
32882esac
32883
32884cat >>confdefs.h <<_ACEOF
32885#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32886_ACEOF
32887
32888
32889
cristy2a11bef2011-10-28 18:33:11 +000032890# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032891SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032892
32893cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032894#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032895_ACEOF
32896
cristy670aa3c2011-11-03 00:54:00 +000032897SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032898DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032899case "${build_os}" in
32900 mingw* )
cristy4f820712011-04-01 12:35:43 +000032901 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032902 ;;
32903esac
32904
32905cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032906#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032907_ACEOF
32908
32909
32910
cristy408ebcd2011-11-14 01:36:57 +000032911# Subdirectory to place architecture-dependent configuration files
32912SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032913
32914cat >>confdefs.h <<_ACEOF
32915#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32916_ACEOF
32917
cristy408ebcd2011-11-14 01:36:57 +000032918SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32919DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032920case "${build_os}" in
32921 mingw* )
32922 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32923 ;;
32924esac
32925
32926cat >>confdefs.h <<_ACEOF
32927#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32928_ACEOF
32929
32930
32931
cristy3ed852e2009-09-05 21:47:34 +000032932#
32933# program_transform_name is formed for use in a Makefile, so create a
32934# modified version for use in a shell script.
32935configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32936
32937# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032938{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32939$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032941$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032942{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32943$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032944AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032945BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032946BZIPDelegateDefault='bzip2'
32947BrowseDelegateDefault='xdg-open'
32948CGMDecodeDelegateDefault='ralcgm'
32949CatDelegateDefault='cat'
32950DNGDecodeDelegateDefault='ufraw-batch'
32951GVCDecodeDelegateDefault='dot'
32952DVIDecodeDelegateDefault='dvips'
32953EchoDelegateDefault='echo'
32954EditorDelegateDefault='xterm'
32955FIGDecodeDelegateDefault='fig2dev'
32956ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32957DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32958MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32959GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032960HPGLDecodeDelegateDefault='hp2xx'
32961HTMLDecodeDelegateDefault='html2ps'
32962ILBMDecodeDelegateDefault='ilbmtoppm'
32963ILBMEncodeDelegateDefault='ppmtoilbm'
32964LPDelegateDefault='lp'
32965LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032966LaunchDelegateDefault='gimp'
32967MANDelegateDefault='groff'
32968MPEGDecodeDelegateDefault='ffmpeg'
32969MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032970MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032971MVDelegateDefault='mv'
32972PCLDelegateDefault='pcl6'
32973PGPDecodeDelegateDefault='pgpv'
32974POVDelegateDefault='povray'
32975if test "$native_win32_build" = 'yes'; then
32976 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032977elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032978 PSDelegateDefault='gsc'
32979else
32980 PSDelegateDefault='gs'
32981fi
32982RLEEncodeDelegateDefault='rawtorle'
32983RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032984RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032985SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032986SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032987TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032988UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032989WMFDecodeDelegateDefault='wmf2eps'
32990WWWDecodeDelegateDefault='curl'
32991XPSDelegateDefault='gxps'
32992ZipDelegateDefault='gzip'
32993
32994# Search for delegates
32995# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32996set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032998$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032999if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033000 $as_echo_n "(cached) " >&6
33001else
33002 case $AutotraceDecodeDelegate in
33003 [\\/]* | ?:[\\/]*)
33004 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
33005 ;;
33006 *)
33007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33008for as_dir in $PATH
33009do
33010 IFS=$as_save_IFS
33011 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033012 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033014 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033016 break 2
33017 fi
33018done
cristy8b350f62009-11-15 23:12:43 +000033019 done
cristy3ed852e2009-09-05 21:47:34 +000033020IFS=$as_save_IFS
33021
33022 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
33023 ;;
33024esac
33025fi
33026AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
33027if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033029$as_echo "$AutotraceDecodeDelegate" >&6; }
33030else
cristy8b350f62009-11-15 23:12:43 +000033031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033032$as_echo "no" >&6; }
33033fi
33034
33035
cristy3ed852e2009-09-05 21:47:34 +000033036# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
33037set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033039$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033040if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033041 $as_echo_n "(cached) " >&6
33042else
33043 case $BlenderDecodeDelegate in
33044 [\\/]* | ?:[\\/]*)
33045 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
33046 ;;
33047 *)
33048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33049for as_dir in $PATH
33050do
33051 IFS=$as_save_IFS
33052 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033053 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033055 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033057 break 2
33058 fi
33059done
cristy8b350f62009-11-15 23:12:43 +000033060 done
cristy3ed852e2009-09-05 21:47:34 +000033061IFS=$as_save_IFS
33062
33063 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33064 ;;
33065esac
33066fi
33067BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33068if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033070$as_echo "$BlenderDecodeDelegate" >&6; }
33071else
cristy8b350f62009-11-15 23:12:43 +000033072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033073$as_echo "no" >&6; }
33074fi
33075
33076
33077# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33078set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033081if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033082 $as_echo_n "(cached) " >&6
33083else
33084 case $BZIPDelegate in
33085 [\\/]* | ?:[\\/]*)
33086 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33087 ;;
33088 *)
33089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33090for as_dir in $PATH
33091do
33092 IFS=$as_save_IFS
33093 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033096 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033098 break 2
33099 fi
33100done
cristy8b350f62009-11-15 23:12:43 +000033101 done
cristy3ed852e2009-09-05 21:47:34 +000033102IFS=$as_save_IFS
33103
33104 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33105 ;;
33106esac
33107fi
33108BZIPDelegate=$ac_cv_path_BZIPDelegate
33109if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033111$as_echo "$BZIPDelegate" >&6; }
33112else
cristy8b350f62009-11-15 23:12:43 +000033113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033114$as_echo "no" >&6; }
33115fi
33116
33117
cristyc59f0e72012-08-27 12:59:33 +000033118for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33119do
33120 # Extract the first word of "$ac_prog", so it can be a program name with args.
33121set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033123$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033124if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033125 $as_echo_n "(cached) " >&6
33126else
33127 case $BrowseDelegate in
33128 [\\/]* | ?:[\\/]*)
33129 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33130 ;;
33131 *)
33132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33133for as_dir in $PATH
33134do
33135 IFS=$as_save_IFS
33136 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033137 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033139 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033141 break 2
33142 fi
33143done
cristy8b350f62009-11-15 23:12:43 +000033144 done
cristy3ed852e2009-09-05 21:47:34 +000033145IFS=$as_save_IFS
33146
cristy3ed852e2009-09-05 21:47:34 +000033147 ;;
33148esac
33149fi
33150BrowseDelegate=$ac_cv_path_BrowseDelegate
33151if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033153$as_echo "$BrowseDelegate" >&6; }
33154else
cristy8b350f62009-11-15 23:12:43 +000033155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033156$as_echo "no" >&6; }
33157fi
33158
33159
cristyc59f0e72012-08-27 12:59:33 +000033160 test -n "$BrowseDelegate" && break
33161done
33162test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33163
cristy3ed852e2009-09-05 21:47:34 +000033164# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
33165set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033167$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033168if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033169 $as_echo_n "(cached) " >&6
33170else
33171 case $CGMDecodeDelegate in
33172 [\\/]* | ?:[\\/]*)
33173 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
33174 ;;
33175 *)
33176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33177for as_dir in $PATH
33178do
33179 IFS=$as_save_IFS
33180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033183 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033185 break 2
33186 fi
33187done
cristy8b350f62009-11-15 23:12:43 +000033188 done
cristy3ed852e2009-09-05 21:47:34 +000033189IFS=$as_save_IFS
33190
33191 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
33192 ;;
33193esac
33194fi
33195CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
33196if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033198$as_echo "$CGMDecodeDelegate" >&6; }
33199else
cristy8b350f62009-11-15 23:12:43 +000033200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033201$as_echo "no" >&6; }
33202fi
33203
33204
33205# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33206set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033208$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033209if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033210 $as_echo_n "(cached) " >&6
33211else
33212 case $CatDelegate in
33213 [\\/]* | ?:[\\/]*)
33214 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33215 ;;
33216 *)
33217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33218for as_dir in $PATH
33219do
33220 IFS=$as_save_IFS
33221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033224 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033226 break 2
33227 fi
33228done
cristy8b350f62009-11-15 23:12:43 +000033229 done
cristy3ed852e2009-09-05 21:47:34 +000033230IFS=$as_save_IFS
33231
33232 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33233 ;;
33234esac
33235fi
33236CatDelegate=$ac_cv_path_CatDelegate
33237if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033239$as_echo "$CatDelegate" >&6; }
33240else
cristy8b350f62009-11-15 23:12:43 +000033241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033242$as_echo "no" >&6; }
33243fi
33244
33245
33246# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33247set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033249$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033250if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033251 $as_echo_n "(cached) " >&6
33252else
33253 case $DNGDecodeDelegate in
33254 [\\/]* | ?:[\\/]*)
33255 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33256 ;;
33257 *)
33258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33259for as_dir in $PATH
33260do
33261 IFS=$as_save_IFS
33262 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033263 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033265 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033267 break 2
33268 fi
33269done
cristy8b350f62009-11-15 23:12:43 +000033270 done
cristy3ed852e2009-09-05 21:47:34 +000033271IFS=$as_save_IFS
33272
33273 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33274 ;;
33275esac
33276fi
33277DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33278if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033280$as_echo "$DNGDecodeDelegate" >&6; }
33281else
cristy8b350f62009-11-15 23:12:43 +000033282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033283$as_echo "no" >&6; }
33284fi
33285
33286
33287# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33288set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033290$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033291if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033292 $as_echo_n "(cached) " >&6
33293else
33294 case $GVCDecodeDelegate in
33295 [\\/]* | ?:[\\/]*)
33296 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33297 ;;
33298 *)
33299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33300for as_dir in $PATH
33301do
33302 IFS=$as_save_IFS
33303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033306 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033308 break 2
33309 fi
33310done
cristy8b350f62009-11-15 23:12:43 +000033311 done
cristy3ed852e2009-09-05 21:47:34 +000033312IFS=$as_save_IFS
33313
33314 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33315 ;;
33316esac
33317fi
33318GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33319if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033321$as_echo "$GVCDecodeDelegate" >&6; }
33322else
cristy8b350f62009-11-15 23:12:43 +000033323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033324$as_echo "no" >&6; }
33325fi
33326
33327
33328# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33329set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033331$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033332if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033333 $as_echo_n "(cached) " >&6
33334else
33335 case $DVIDecodeDelegate in
33336 [\\/]* | ?:[\\/]*)
33337 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33338 ;;
33339 *)
33340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33341for as_dir in $PATH
33342do
33343 IFS=$as_save_IFS
33344 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033345 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033347 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033349 break 2
33350 fi
33351done
cristy8b350f62009-11-15 23:12:43 +000033352 done
cristy3ed852e2009-09-05 21:47:34 +000033353IFS=$as_save_IFS
33354
33355 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33356 ;;
33357esac
33358fi
33359DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33360if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033362$as_echo "$DVIDecodeDelegate" >&6; }
33363else
cristy8b350f62009-11-15 23:12:43 +000033364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033365$as_echo "no" >&6; }
33366fi
33367
33368
33369# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33370set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033372$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033373if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033374 $as_echo_n "(cached) " >&6
33375else
33376 case $EchoDelegate in
33377 [\\/]* | ?:[\\/]*)
33378 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33379 ;;
33380 *)
33381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33382for as_dir in $PATH
33383do
33384 IFS=$as_save_IFS
33385 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033388 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033390 break 2
33391 fi
33392done
cristy8b350f62009-11-15 23:12:43 +000033393 done
cristy3ed852e2009-09-05 21:47:34 +000033394IFS=$as_save_IFS
33395
33396 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33397 ;;
33398esac
33399fi
33400EchoDelegate=$ac_cv_path_EchoDelegate
33401if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033403$as_echo "$EchoDelegate" >&6; }
33404else
cristy8b350f62009-11-15 23:12:43 +000033405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033406$as_echo "no" >&6; }
33407fi
33408
33409
33410# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33411set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033413$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033414if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033415 $as_echo_n "(cached) " >&6
33416else
33417 case $EditorDelegate in
33418 [\\/]* | ?:[\\/]*)
33419 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33420 ;;
33421 *)
33422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33423for as_dir in $PATH
33424do
33425 IFS=$as_save_IFS
33426 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033427 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033429 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033431 break 2
33432 fi
33433done
cristy8b350f62009-11-15 23:12:43 +000033434 done
cristy3ed852e2009-09-05 21:47:34 +000033435IFS=$as_save_IFS
33436
33437 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33438 ;;
33439esac
33440fi
33441EditorDelegate=$ac_cv_path_EditorDelegate
33442if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033444$as_echo "$EditorDelegate" >&6; }
33445else
cristy8b350f62009-11-15 23:12:43 +000033446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033447$as_echo "no" >&6; }
33448fi
33449
33450
33451# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33452set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033455if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033456 $as_echo_n "(cached) " >&6
33457else
33458 case $FIGDecodeDelegate in
33459 [\\/]* | ?:[\\/]*)
33460 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33461 ;;
33462 *)
33463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33464for as_dir in $PATH
33465do
33466 IFS=$as_save_IFS
33467 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033470 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033472 break 2
33473 fi
33474done
cristy8b350f62009-11-15 23:12:43 +000033475 done
cristy3ed852e2009-09-05 21:47:34 +000033476IFS=$as_save_IFS
33477
33478 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33479 ;;
33480esac
33481fi
33482FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33483if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033485$as_echo "$FIGDecodeDelegate" >&6; }
33486else
cristy8b350f62009-11-15 23:12:43 +000033487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033488$as_echo "no" >&6; }
33489fi
33490
33491
33492# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33493set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033495$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033496if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033497 $as_echo_n "(cached) " >&6
33498else
33499 case $ConvertDelegate in
33500 [\\/]* | ?:[\\/]*)
33501 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33502 ;;
33503 *)
33504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33505for as_dir in $PATH
33506do
33507 IFS=$as_save_IFS
33508 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033511 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033513 break 2
33514 fi
33515done
cristy8b350f62009-11-15 23:12:43 +000033516 done
cristy3ed852e2009-09-05 21:47:34 +000033517IFS=$as_save_IFS
33518
33519 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33520 ;;
33521esac
33522fi
33523ConvertDelegate=$ac_cv_path_ConvertDelegate
33524if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033526$as_echo "$ConvertDelegate" >&6; }
33527else
cristy8b350f62009-11-15 23:12:43 +000033528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033529$as_echo "no" >&6; }
33530fi
33531
33532
33533# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33534set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033536$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033537if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033538 $as_echo_n "(cached) " >&6
33539else
33540 case $DisplayDelegate in
33541 [\\/]* | ?:[\\/]*)
33542 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33543 ;;
33544 *)
33545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33546for as_dir in $PATH
33547do
33548 IFS=$as_save_IFS
33549 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033552 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033554 break 2
33555 fi
33556done
cristy8b350f62009-11-15 23:12:43 +000033557 done
cristy3ed852e2009-09-05 21:47:34 +000033558IFS=$as_save_IFS
33559
33560 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33561 ;;
33562esac
33563fi
33564DisplayDelegate=$ac_cv_path_DisplayDelegate
33565if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033567$as_echo "$DisplayDelegate" >&6; }
33568else
cristy8b350f62009-11-15 23:12:43 +000033569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033570$as_echo "no" >&6; }
33571fi
33572
33573
33574# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33575set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033577$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033578if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033579 $as_echo_n "(cached) " >&6
33580else
33581 case $MogrifyDelegate in
33582 [\\/]* | ?:[\\/]*)
33583 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33584 ;;
33585 *)
33586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33587for as_dir in $PATH
33588do
33589 IFS=$as_save_IFS
33590 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033591 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033593 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033595 break 2
33596 fi
33597done
cristy8b350f62009-11-15 23:12:43 +000033598 done
cristy3ed852e2009-09-05 21:47:34 +000033599IFS=$as_save_IFS
33600
33601 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33602 ;;
33603esac
33604fi
33605MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33606if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033608$as_echo "$MogrifyDelegate" >&6; }
33609else
cristy8b350f62009-11-15 23:12:43 +000033610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033611$as_echo "no" >&6; }
33612fi
33613
33614
33615# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33616set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033618$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033619if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033620 $as_echo_n "(cached) " >&6
33621else
33622 case $GnuplotDecodeDelegate in
33623 [\\/]* | ?:[\\/]*)
33624 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33625 ;;
33626 *)
33627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33628for as_dir in $PATH
33629do
33630 IFS=$as_save_IFS
33631 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033632 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033634 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033636 break 2
33637 fi
33638done
cristy8b350f62009-11-15 23:12:43 +000033639 done
cristy3ed852e2009-09-05 21:47:34 +000033640IFS=$as_save_IFS
33641
33642 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33643 ;;
33644esac
33645fi
33646GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33647if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033649$as_echo "$GnuplotDecodeDelegate" >&6; }
33650else
cristy8b350f62009-11-15 23:12:43 +000033651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033652$as_echo "no" >&6; }
33653fi
33654
33655
cristy3ed852e2009-09-05 21:47:34 +000033656# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33657set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033659$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033660if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033661 $as_echo_n "(cached) " >&6
33662else
33663 case $HPGLDecodeDelegate in
33664 [\\/]* | ?:[\\/]*)
33665 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33666 ;;
33667 *)
33668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33669for as_dir in $PATH
33670do
33671 IFS=$as_save_IFS
33672 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033675 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033677 break 2
33678 fi
33679done
cristy8b350f62009-11-15 23:12:43 +000033680 done
cristy3ed852e2009-09-05 21:47:34 +000033681IFS=$as_save_IFS
33682
33683 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33684 ;;
33685esac
33686fi
33687HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33688if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033690$as_echo "$HPGLDecodeDelegate" >&6; }
33691else
cristy8b350f62009-11-15 23:12:43 +000033692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033693$as_echo "no" >&6; }
33694fi
33695
33696
33697# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33698set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033700$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033701if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033702 $as_echo_n "(cached) " >&6
33703else
33704 case $HTMLDecodeDelegate in
33705 [\\/]* | ?:[\\/]*)
33706 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33707 ;;
33708 *)
33709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33710for as_dir in $PATH
33711do
33712 IFS=$as_save_IFS
33713 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033714 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033716 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033718 break 2
33719 fi
33720done
cristy8b350f62009-11-15 23:12:43 +000033721 done
cristy3ed852e2009-09-05 21:47:34 +000033722IFS=$as_save_IFS
33723
33724 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33725 ;;
33726esac
33727fi
33728HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33729if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033731$as_echo "$HTMLDecodeDelegate" >&6; }
33732else
cristy8b350f62009-11-15 23:12:43 +000033733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033734$as_echo "no" >&6; }
33735fi
33736
33737
33738# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33739set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033742if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033743 $as_echo_n "(cached) " >&6
33744else
33745 case $ILBMDecodeDelegate in
33746 [\\/]* | ?:[\\/]*)
33747 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33748 ;;
33749 *)
33750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33751for as_dir in $PATH
33752do
33753 IFS=$as_save_IFS
33754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033757 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033759 break 2
33760 fi
33761done
cristy8b350f62009-11-15 23:12:43 +000033762 done
cristy3ed852e2009-09-05 21:47:34 +000033763IFS=$as_save_IFS
33764
33765 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33766 ;;
33767esac
33768fi
33769ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33770if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033772$as_echo "$ILBMDecodeDelegate" >&6; }
33773else
cristy8b350f62009-11-15 23:12:43 +000033774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033775$as_echo "no" >&6; }
33776fi
33777
33778
33779# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33780set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033783if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033784 $as_echo_n "(cached) " >&6
33785else
33786 case $ILBMEncodeDelegate in
33787 [\\/]* | ?:[\\/]*)
33788 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33789 ;;
33790 *)
33791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33792for as_dir in $PATH
33793do
33794 IFS=$as_save_IFS
33795 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033798 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033800 break 2
33801 fi
33802done
cristy8b350f62009-11-15 23:12:43 +000033803 done
cristy3ed852e2009-09-05 21:47:34 +000033804IFS=$as_save_IFS
33805
33806 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33807 ;;
33808esac
33809fi
33810ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33811if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033813$as_echo "$ILBMEncodeDelegate" >&6; }
33814else
cristy8b350f62009-11-15 23:12:43 +000033815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033816$as_echo "no" >&6; }
33817fi
33818
33819
33820# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33821set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033823$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033824if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033825 $as_echo_n "(cached) " >&6
33826else
33827 case $LPDelegate in
33828 [\\/]* | ?:[\\/]*)
33829 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33830 ;;
33831 *)
33832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33833for as_dir in $PATH
33834do
33835 IFS=$as_save_IFS
33836 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033837 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033839 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033841 break 2
33842 fi
33843done
cristy8b350f62009-11-15 23:12:43 +000033844 done
cristy3ed852e2009-09-05 21:47:34 +000033845IFS=$as_save_IFS
33846
33847 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33848 ;;
33849esac
33850fi
33851LPDelegate=$ac_cv_path_LPDelegate
33852if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033854$as_echo "$LPDelegate" >&6; }
33855else
cristy8b350f62009-11-15 23:12:43 +000033856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033857$as_echo "no" >&6; }
33858fi
33859
33860
33861# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33862set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033864$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033865if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033866 $as_echo_n "(cached) " >&6
33867else
33868 case $LPRDelegate in
33869 [\\/]* | ?:[\\/]*)
33870 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33871 ;;
33872 *)
33873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33874for as_dir in $PATH
33875do
33876 IFS=$as_save_IFS
33877 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033880 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033882 break 2
33883 fi
33884done
cristy8b350f62009-11-15 23:12:43 +000033885 done
cristy3ed852e2009-09-05 21:47:34 +000033886IFS=$as_save_IFS
33887
33888 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33889 ;;
33890esac
33891fi
33892LPRDelegate=$ac_cv_path_LPRDelegate
33893if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033895$as_echo "$LPRDelegate" >&6; }
33896else
cristy8b350f62009-11-15 23:12:43 +000033897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033898$as_echo "no" >&6; }
33899fi
33900
33901
cristy3ed852e2009-09-05 21:47:34 +000033902# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33903set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033906if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033907 $as_echo_n "(cached) " >&6
33908else
33909 case $LaunchDelegate in
33910 [\\/]* | ?:[\\/]*)
33911 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33912 ;;
33913 *)
33914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33915for as_dir in $PATH
33916do
33917 IFS=$as_save_IFS
33918 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033921 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033923 break 2
33924 fi
33925done
cristy8b350f62009-11-15 23:12:43 +000033926 done
cristy3ed852e2009-09-05 21:47:34 +000033927IFS=$as_save_IFS
33928
33929 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33930 ;;
33931esac
33932fi
33933LaunchDelegate=$ac_cv_path_LaunchDelegate
33934if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033936$as_echo "$LaunchDelegate" >&6; }
33937else
cristy8b350f62009-11-15 23:12:43 +000033938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033939$as_echo "no" >&6; }
33940fi
33941
33942
33943# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33944set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033946$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033947if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033948 $as_echo_n "(cached) " >&6
33949else
33950 case $MANDelegate in
33951 [\\/]* | ?:[\\/]*)
33952 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33953 ;;
33954 *)
33955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33956for as_dir in $PATH
33957do
33958 IFS=$as_save_IFS
33959 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033960 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033962 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033964 break 2
33965 fi
33966done
cristy8b350f62009-11-15 23:12:43 +000033967 done
cristy3ed852e2009-09-05 21:47:34 +000033968IFS=$as_save_IFS
33969
33970 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33971 ;;
33972esac
33973fi
33974MANDelegate=$ac_cv_path_MANDelegate
33975if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033977$as_echo "$MANDelegate" >&6; }
33978else
cristy8b350f62009-11-15 23:12:43 +000033979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033980$as_echo "no" >&6; }
33981fi
33982
33983
33984# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33985set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033987$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033988if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033989 $as_echo_n "(cached) " >&6
33990else
33991 case $MPEGDecodeDelegate in
33992 [\\/]* | ?:[\\/]*)
33993 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33994 ;;
33995 *)
33996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33997for as_dir in $PATH
33998do
33999 IFS=$as_save_IFS
34000 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034001 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034003 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034005 break 2
34006 fi
34007done
cristy8b350f62009-11-15 23:12:43 +000034008 done
cristy3ed852e2009-09-05 21:47:34 +000034009IFS=$as_save_IFS
34010
34011 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34012 ;;
34013esac
34014fi
34015MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34016if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034018$as_echo "$MPEGDecodeDelegate" >&6; }
34019else
cristy8b350f62009-11-15 23:12:43 +000034020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034021$as_echo "no" >&6; }
34022fi
34023
34024
34025# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34026set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034028$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034029if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034030 $as_echo_n "(cached) " >&6
34031else
34032 case $MPEGEncodeDelegate in
34033 [\\/]* | ?:[\\/]*)
34034 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34035 ;;
34036 *)
34037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34038for as_dir in $PATH
34039do
34040 IFS=$as_save_IFS
34041 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034044 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034046 break 2
34047 fi
34048done
cristy8b350f62009-11-15 23:12:43 +000034049 done
cristy3ed852e2009-09-05 21:47:34 +000034050IFS=$as_save_IFS
34051
34052 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34053 ;;
34054esac
34055fi
34056MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34057if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034059$as_echo "$MPEGEncodeDelegate" >&6; }
34060else
cristy8b350f62009-11-15 23:12:43 +000034061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034062$as_echo "no" >&6; }
34063fi
34064
34065
cristy935c86e2010-06-05 23:50:07 +000034066# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34067set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34069$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034070if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034071 $as_echo_n "(cached) " >&6
34072else
34073 case $MrSIDDecodeDelegate in
34074 [\\/]* | ?:[\\/]*)
34075 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34076 ;;
34077 *)
34078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34079for as_dir in $PATH
34080do
34081 IFS=$as_save_IFS
34082 test -z "$as_dir" && as_dir=.
34083 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034085 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34087 break 2
34088 fi
34089done
34090 done
34091IFS=$as_save_IFS
34092
34093 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34094 ;;
34095esac
34096fi
34097MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34098if test -n "$MrSIDDecodeDelegate"; then
34099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34100$as_echo "$MrSIDDecodeDelegate" >&6; }
34101else
34102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34103$as_echo "no" >&6; }
34104fi
34105
34106
cristy3ed852e2009-09-05 21:47:34 +000034107# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34108set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034110$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034111if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034112 $as_echo_n "(cached) " >&6
34113else
34114 case $MVDelegate in
34115 [\\/]* | ?:[\\/]*)
34116 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34117 ;;
34118 *)
34119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34120for as_dir in $PATH
34121do
34122 IFS=$as_save_IFS
34123 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034124 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034126 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034128 break 2
34129 fi
34130done
cristy8b350f62009-11-15 23:12:43 +000034131 done
cristy3ed852e2009-09-05 21:47:34 +000034132IFS=$as_save_IFS
34133
34134 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34135 ;;
34136esac
34137fi
34138MVDelegate=$ac_cv_path_MVDelegate
34139if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034141$as_echo "$MVDelegate" >&6; }
34142else
cristy8b350f62009-11-15 23:12:43 +000034143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034144$as_echo "no" >&6; }
34145fi
34146
34147
34148# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34149set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034151$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034152if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034153 $as_echo_n "(cached) " >&6
34154else
34155 case $PCLDelegate in
34156 [\\/]* | ?:[\\/]*)
34157 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34158 ;;
34159 *)
34160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34161for as_dir in $PATH
34162do
34163 IFS=$as_save_IFS
34164 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034165 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034167 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034169 break 2
34170 fi
34171done
cristy8b350f62009-11-15 23:12:43 +000034172 done
cristy3ed852e2009-09-05 21:47:34 +000034173IFS=$as_save_IFS
34174
34175 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34176 ;;
34177esac
34178fi
34179PCLDelegate=$ac_cv_path_PCLDelegate
34180if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034182$as_echo "$PCLDelegate" >&6; }
34183else
cristy8b350f62009-11-15 23:12:43 +000034184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034185$as_echo "no" >&6; }
34186fi
34187
34188
34189# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34190set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034192$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034193if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034194 $as_echo_n "(cached) " >&6
34195else
34196 case $PGPDecodeDelegate in
34197 [\\/]* | ?:[\\/]*)
34198 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34199 ;;
34200 *)
34201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34202for as_dir in $PATH
34203do
34204 IFS=$as_save_IFS
34205 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034206 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034208 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034210 break 2
34211 fi
34212done
cristy8b350f62009-11-15 23:12:43 +000034213 done
cristy3ed852e2009-09-05 21:47:34 +000034214IFS=$as_save_IFS
34215
34216 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34217 ;;
34218esac
34219fi
34220PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34221if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034223$as_echo "$PGPDecodeDelegate" >&6; }
34224else
cristy8b350f62009-11-15 23:12:43 +000034225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034226$as_echo "no" >&6; }
34227fi
34228
34229
34230# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34231set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034233$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034234if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034235 $as_echo_n "(cached) " >&6
34236else
34237 case $POVDelegate in
34238 [\\/]* | ?:[\\/]*)
34239 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34240 ;;
34241 *)
34242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34243for as_dir in $PATH
34244do
34245 IFS=$as_save_IFS
34246 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034249 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034251 break 2
34252 fi
34253done
cristy8b350f62009-11-15 23:12:43 +000034254 done
cristy3ed852e2009-09-05 21:47:34 +000034255IFS=$as_save_IFS
34256
34257 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34258 ;;
34259esac
34260fi
34261POVDelegate=$ac_cv_path_POVDelegate
34262if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034264$as_echo "$POVDelegate" >&6; }
34265else
cristy8b350f62009-11-15 23:12:43 +000034266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034267$as_echo "no" >&6; }
34268fi
34269
34270
34271for ac_prog in gsx gsc "$PSDelegateDefault"
34272do
34273 # Extract the first word of "$ac_prog", so it can be a program name with args.
34274set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034276$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034277if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034278 $as_echo_n "(cached) " >&6
34279else
34280 case $PSDelegate in
34281 [\\/]* | ?:[\\/]*)
34282 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34283 ;;
34284 *)
34285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34286for as_dir in $PATH
34287do
34288 IFS=$as_save_IFS
34289 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034290 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034292 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034294 break 2
34295 fi
34296done
cristy8b350f62009-11-15 23:12:43 +000034297 done
cristy3ed852e2009-09-05 21:47:34 +000034298IFS=$as_save_IFS
34299
34300 ;;
34301esac
34302fi
34303PSDelegate=$ac_cv_path_PSDelegate
34304if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034306$as_echo "$PSDelegate" >&6; }
34307else
cristy8b350f62009-11-15 23:12:43 +000034308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034309$as_echo "no" >&6; }
34310fi
34311
34312
34313 test -n "$PSDelegate" && break
34314done
34315test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34316
34317# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34318set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034320$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034321if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034322 $as_echo_n "(cached) " >&6
34323else
34324 case $RLEEncodeDelegate in
34325 [\\/]* | ?:[\\/]*)
34326 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34327 ;;
34328 *)
34329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34330for as_dir in $PATH
34331do
34332 IFS=$as_save_IFS
34333 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034336 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034338 break 2
34339 fi
34340done
cristy8b350f62009-11-15 23:12:43 +000034341 done
cristy3ed852e2009-09-05 21:47:34 +000034342IFS=$as_save_IFS
34343
34344 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34345 ;;
34346esac
34347fi
34348RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34349if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034351$as_echo "$RLEEncodeDelegate" >&6; }
34352else
cristy8b350f62009-11-15 23:12:43 +000034353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034354$as_echo "no" >&6; }
34355fi
34356
34357
34358# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34359set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034361$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034362if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034363 $as_echo_n "(cached) " >&6
34364else
34365 case $RMDelegate in
34366 [\\/]* | ?:[\\/]*)
34367 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34368 ;;
34369 *)
34370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34371for as_dir in $PATH
34372do
34373 IFS=$as_save_IFS
34374 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034375 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034377 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034379 break 2
34380 fi
34381done
cristy8b350f62009-11-15 23:12:43 +000034382 done
cristy3ed852e2009-09-05 21:47:34 +000034383IFS=$as_save_IFS
34384
34385 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34386 ;;
34387esac
34388fi
34389RMDelegate=$ac_cv_path_RMDelegate
34390if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034392$as_echo "$RMDelegate" >&6; }
34393else
cristy8b350f62009-11-15 23:12:43 +000034394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034395$as_echo "no" >&6; }
34396fi
34397
34398
cristy4689cf02010-02-17 21:15:45 +000034399# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34400set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34402$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034403if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034404 $as_echo_n "(cached) " >&6
34405else
34406 case $RSVGDecodeDelegate in
34407 [\\/]* | ?:[\\/]*)
34408 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34409 ;;
34410 *)
34411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34412for as_dir in $PATH
34413do
34414 IFS=$as_save_IFS
34415 test -z "$as_dir" && as_dir=.
34416 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034418 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34420 break 2
34421 fi
34422done
34423 done
34424IFS=$as_save_IFS
34425
34426 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34427 ;;
34428esac
34429fi
34430RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34431if test -n "$RSVGDecodeDelegate"; then
34432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34433$as_echo "$RSVGDecodeDelegate" >&6; }
34434else
34435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34436$as_echo "no" >&6; }
34437fi
34438
34439
cristy3ed852e2009-09-05 21:47:34 +000034440# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34441set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034443$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034444if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034445 $as_echo_n "(cached) " >&6
34446else
34447 case $SCANDecodeDelegate in
34448 [\\/]* | ?:[\\/]*)
34449 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34450 ;;
34451 *)
34452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34453for as_dir in $PATH
34454do
34455 IFS=$as_save_IFS
34456 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034457 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034459 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034461 break 2
34462 fi
34463done
cristy8b350f62009-11-15 23:12:43 +000034464 done
cristy3ed852e2009-09-05 21:47:34 +000034465IFS=$as_save_IFS
34466
34467 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34468 ;;
34469esac
34470fi
34471SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34472if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034474$as_echo "$SCANDecodeDelegate" >&6; }
34475else
cristy8b350f62009-11-15 23:12:43 +000034476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034477$as_echo "no" >&6; }
34478fi
34479
34480
cristyec6934f2012-08-14 18:38:40 +000034481# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34482set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34484$as_echo_n "checking for $ac_word... " >&6; }
34485if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34486 $as_echo_n "(cached) " >&6
34487else
34488 case $SVGDecodeDelegate in
34489 [\\/]* | ?:[\\/]*)
34490 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34491 ;;
34492 *)
34493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34494for as_dir in $PATH
34495do
34496 IFS=$as_save_IFS
34497 test -z "$as_dir" && as_dir=.
34498 for ac_exec_ext in '' $ac_executable_extensions; do
34499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34500 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34502 break 2
34503 fi
34504done
34505 done
34506IFS=$as_save_IFS
34507
34508 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34509 ;;
34510esac
34511fi
34512SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34513if test -n "$SVGDecodeDelegate"; then
34514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34515$as_echo "$SVGDecodeDelegate" >&6; }
34516else
34517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34518$as_echo "no" >&6; }
34519fi
34520
34521
cristy3ed852e2009-09-05 21:47:34 +000034522# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34523set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034525$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034526if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034527 $as_echo_n "(cached) " >&6
34528else
34529 case $TXTDelegate in
34530 [\\/]* | ?:[\\/]*)
34531 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34532 ;;
34533 *)
34534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34535for as_dir in $PATH
34536do
34537 IFS=$as_save_IFS
34538 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034539 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034541 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034543 break 2
34544 fi
34545done
cristy8b350f62009-11-15 23:12:43 +000034546 done
cristy3ed852e2009-09-05 21:47:34 +000034547IFS=$as_save_IFS
34548
34549 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34550 ;;
34551esac
34552fi
34553TXTDelegate=$ac_cv_path_TXTDelegate
34554if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034556$as_echo "$TXTDelegate" >&6; }
34557else
cristy8b350f62009-11-15 23:12:43 +000034558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034559$as_echo "no" >&6; }
34560fi
34561
34562
cristy5ac9ac82010-07-29 13:24:24 +000034563# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34564set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34566$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034567if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034568 $as_echo_n "(cached) " >&6
34569else
34570 case $UniconvertorDelegate in
34571 [\\/]* | ?:[\\/]*)
34572 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34573 ;;
34574 *)
34575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34576for as_dir in $PATH
34577do
34578 IFS=$as_save_IFS
34579 test -z "$as_dir" && as_dir=.
34580 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034582 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34584 break 2
34585 fi
34586done
34587 done
34588IFS=$as_save_IFS
34589
34590 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34591 ;;
34592esac
34593fi
34594UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34595if test -n "$UniconvertorDelegate"; then
34596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34597$as_echo "$UniconvertorDelegate" >&6; }
34598else
34599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34600$as_echo "no" >&6; }
34601fi
34602
34603
cristy3ed852e2009-09-05 21:47:34 +000034604# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34605set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034607$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034608if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034609 $as_echo_n "(cached) " >&6
34610else
34611 case $WMFDecodeDelegate in
34612 [\\/]* | ?:[\\/]*)
34613 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34614 ;;
34615 *)
34616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34617for as_dir in $PATH
34618do
34619 IFS=$as_save_IFS
34620 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034621 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034623 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034625 break 2
34626 fi
34627done
cristy8b350f62009-11-15 23:12:43 +000034628 done
cristy3ed852e2009-09-05 21:47:34 +000034629IFS=$as_save_IFS
34630
34631 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34632 ;;
34633esac
34634fi
34635WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34636if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034638$as_echo "$WMFDecodeDelegate" >&6; }
34639else
cristy8b350f62009-11-15 23:12:43 +000034640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034641$as_echo "no" >&6; }
34642fi
34643
34644
34645# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34646set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034648$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034649if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034650 $as_echo_n "(cached) " >&6
34651else
34652 case $WWWDecodeDelegate in
34653 [\\/]* | ?:[\\/]*)
34654 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34655 ;;
34656 *)
34657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34658for as_dir in $PATH
34659do
34660 IFS=$as_save_IFS
34661 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034662 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034664 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034666 break 2
34667 fi
34668done
cristy8b350f62009-11-15 23:12:43 +000034669 done
cristy3ed852e2009-09-05 21:47:34 +000034670IFS=$as_save_IFS
34671
34672 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34673 ;;
34674esac
34675fi
34676WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34677if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034679$as_echo "$WWWDecodeDelegate" >&6; }
34680else
cristy8b350f62009-11-15 23:12:43 +000034681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034682$as_echo "no" >&6; }
34683fi
34684
34685
34686# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34687set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034689$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034690if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034691 $as_echo_n "(cached) " >&6
34692else
34693 case $XPSDelegate in
34694 [\\/]* | ?:[\\/]*)
34695 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34696 ;;
34697 *)
34698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34699for as_dir in $PATH
34700do
34701 IFS=$as_save_IFS
34702 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034705 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034707 break 2
34708 fi
34709done
cristy8b350f62009-11-15 23:12:43 +000034710 done
cristy3ed852e2009-09-05 21:47:34 +000034711IFS=$as_save_IFS
34712
34713 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34714 ;;
34715esac
34716fi
34717XPSDelegate=$ac_cv_path_XPSDelegate
34718if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034720$as_echo "$XPSDelegate" >&6; }
34721else
cristy8b350f62009-11-15 23:12:43 +000034722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034723$as_echo "no" >&6; }
34724fi
34725
34726
34727# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34728set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034730$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034731if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034732 $as_echo_n "(cached) " >&6
34733else
34734 case $ZipDelegate in
34735 [\\/]* | ?:[\\/]*)
34736 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34737 ;;
34738 *)
34739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34740for as_dir in $PATH
34741do
34742 IFS=$as_save_IFS
34743 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034746 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034748 break 2
34749 fi
34750done
cristy8b350f62009-11-15 23:12:43 +000034751 done
cristy3ed852e2009-09-05 21:47:34 +000034752IFS=$as_save_IFS
34753
34754 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34755 ;;
34756esac
34757fi
34758ZipDelegate=$ac_cv_path_ZipDelegate
34759if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034761$as_echo "$ZipDelegate" >&6; }
34762else
cristy8b350f62009-11-15 23:12:43 +000034763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034764$as_echo "no" >&6; }
34765fi
34766
34767
34768
34769# Prefer lpr to lp; lp needs options tacked on.
34770if test "$LPRDelegate" != no; then
34771 PrintDelegate="$LPRDelegate"
34772else
34773 PrintDelegate="$LPDelegate -c -s"
34774fi
34775
34776
34777# Installed ImageMagick utiltity paths
34778ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34779DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34780MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34781
34782# Set delegate booleans
34783have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34784have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34785have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34786have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34787have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034788have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034789have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34790have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034791have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34792have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34793
34794#
34795# Test for font directories
34796#
34797type_include_files=''
34798
cristy430a7312010-01-21 20:44:04 +000034799# Dejavu fonts.
34800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34801$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34802dejavu_font_dir=''
34803if test "${with_dejavu_font_dir}" != 'default'; then
34804 dejavu_font_dir="${with_dejavu_font_dir}/"
34805else
34806 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34807 if test -f "${font_dir}DejaVuSerif.ttf"; then
34808 dejavu_font_dir="${font_dir}"
34809 break 1
34810 fi
34811 done
34812fi
34813if test "${dejavu_font_dir}x" != 'x'; then
34814 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034815 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34816$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034817else
cristy09b53e12011-10-14 12:47:22 +000034818 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34819$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034820fi
34821
34822
cristy3ed852e2009-09-05 21:47:34 +000034823# Windows
34824windows_font_dir=''
34825if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34826 windows_font_dir="${with_windows_font_dir}/"
34827fi
cristy430a7312010-01-21 20:44:04 +000034828if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034829 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34830 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34831 fi
34832 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34833 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34834 fi
34835 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34836 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34837 fi
34838fi
cristy430a7312010-01-21 20:44:04 +000034839if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034840 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34841fi
34842
34843
34844# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034846$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34847ghostscript_font_dir=''
34848if test "${with_gs_font_dir}" != 'default'; then
34849 ghostscript_font_dir="${with_gs_font_dir}/"
34850else
34851 if test "${native_win32_build}" = 'yes'; then
34852 # Native Windows Build
34853 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34854 if test -f "${font_dir}a010013l.pfb"; then
34855 ghostscript_font_dir="$font_dir"
34856 break 1
34857 fi
34858 done
34859 if test "${PSDelegate}" != 'gswin32c'; then
34860 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34861 fi
34862 else
34863 # Linux / Mac OS X / Unix Build
34864 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
34865 if test -f "${font_dir}a010013l.pfb"; then
34866 ghostscript_font_dir="${font_dir}"
34867 break 1
34868 fi
34869 done
34870 if test "${ghostscript_font_dir}x" = 'x'; then
34871 if test "$PSDelegate" != 'gs'; then
34872 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34873 fi
34874 fi
34875 fi
34876fi
34877if test "${ghostscript_font_dir}x" != 'x'; then
34878 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034879 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34880$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034881else
cristy09b53e12011-10-14 12:47:22 +000034882 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34883$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034884fi
34885
34886case "${build_os}" in
34887 mingw* )
34888 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34889 ;;
34890esac
34891
34892
34893
34894#
34895# Handle case where user doesn't want frozen paths
34896#
34897if test "$with_frozenpaths" != 'yes'; then
34898 # Re-set delegate definitions to default (no paths)
34899 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034900 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34901 BZIPDelegate="$BZIPDelegateDefault"
34902 BrowseDelegate="$BrowseDelegateDefault"
34903 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34904 CatDelegate="$CatDelegateDefault"
34905 ConvertDelegate="$ConvertDelegateDefault"
34906 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34907 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34908 EchoDelegate="$EchoDelegateDefault"
34909 EditorDelegate="$EditorDelegateDefault"
34910 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34911 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34912 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34913 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34914 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34915 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34916 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034917 LaunchDelegate="$LaunchDelegateDefault"
34918 MANDelegate="$MANDelegateDefault"
34919 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34920 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034921 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034922 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34923 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034924 PCLDelegate="$PCLDelegateDefault"
34925 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34926 POVDelegate="$POVDelegateDefault"
34927 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034928 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34929 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034930 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034931 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034932 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034933 ShowImageDelegate="$ShowImageDelegateDefault"
34934 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034935 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034936 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34937 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34938 XPSDelegate="$XPSDelegateDefault"
34939 ZipDelegate="$ZipDelegateDefault"
34940fi
34941
34942# Delegate substitutions
34943
34944
34945
34946
34947
34948
34949
34950
34951
34952
34953
34954
34955
34956
34957
34958
34959
34960
34961
34962
34963
34964
34965
34966
34967
34968
34969
34970
34971
34972
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982
cristy3ed852e2009-09-05 21:47:34 +000034983#
34984# RPM support.
34985#
34986RPM=''
34987for ac_prog in gnutar gtar tar
34988do
34989 # Extract the first word of "$ac_prog", so it can be a program name with args.
34990set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034992$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034993if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034994 $as_echo_n "(cached) " >&6
34995else
34996 if test -n "$TAR"; then
34997 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34998else
34999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35000for as_dir in $PATH
35001do
35002 IFS=$as_save_IFS
35003 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035004 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035006 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035008 break 2
35009 fi
35010done
cristy8b350f62009-11-15 23:12:43 +000035011 done
cristy3ed852e2009-09-05 21:47:34 +000035012IFS=$as_save_IFS
35013
35014fi
35015fi
35016TAR=$ac_cv_prog_TAR
35017if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035019$as_echo "$TAR" >&6; }
35020else
cristy8b350f62009-11-15 23:12:43 +000035021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035022$as_echo "no" >&6; }
35023fi
35024
35025
35026 test -n "$TAR" && break
35027done
35028
35029for ac_prog in perl
35030do
35031 # Extract the first word of "$ac_prog", so it can be a program name with args.
35032set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035034$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035035if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035036 $as_echo_n "(cached) " >&6
35037else
35038 if test -n "$PERL"; then
35039 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35040else
35041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35042for as_dir in $PATH
35043do
35044 IFS=$as_save_IFS
35045 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035046 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035048 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035050 break 2
35051 fi
35052done
cristy8b350f62009-11-15 23:12:43 +000035053 done
cristy3ed852e2009-09-05 21:47:34 +000035054IFS=$as_save_IFS
35055
35056fi
35057fi
35058PERL=$ac_cv_prog_PERL
35059if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035061$as_echo "$PERL" >&6; }
35062else
cristy8b350f62009-11-15 23:12:43 +000035063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035064$as_echo "no" >&6; }
35065fi
35066
35067
35068 test -n "$PERL" && break
35069done
35070
35071for ac_prog in rpmbuild rpm
35072do
35073 # Extract the first word of "$ac_prog", so it can be a program name with args.
35074set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035076$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035077if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035078 $as_echo_n "(cached) " >&6
35079else
35080 if test -n "$RPM"; then
35081 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35082else
35083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35084for as_dir in $PATH
35085do
35086 IFS=$as_save_IFS
35087 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035088 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035090 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035092 break 2
35093 fi
35094done
cristy8b350f62009-11-15 23:12:43 +000035095 done
cristy3ed852e2009-09-05 21:47:34 +000035096IFS=$as_save_IFS
35097
35098fi
35099fi
35100RPM=$ac_cv_prog_RPM
35101if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035103$as_echo "$RPM" >&6; }
35104else
cristy8b350f62009-11-15 23:12:43 +000035105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035106$as_echo "no" >&6; }
35107fi
35108
35109
35110 test -n "$RPM" && break
35111done
35112
35113
cristy73bd4a52010-10-05 11:24:23 +000035114ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35115
35116
35117AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35118
35119
35120AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35121
35122
35123AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35124
35125
35126 if test "x$RPM" != "x" ; then
35127 RPM_DELEGATE_TRUE=
35128 RPM_DELEGATE_FALSE='#'
35129else
35130 RPM_DELEGATE_TRUE='#'
35131 RPM_DELEGATE_FALSE=
35132fi
35133
cristy3ed852e2009-09-05 21:47:34 +000035134
35135#
35136# 7ZIP support (http://p7zip.sourceforge.net/)
35137#
35138P7ZIP=''
35139for ac_prog in 7za
35140do
35141 # Extract the first word of "$ac_prog", so it can be a program name with args.
35142set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035144$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035145if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035146 $as_echo_n "(cached) " >&6
35147else
35148 if test -n "$P7ZIP"; then
35149 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35150else
35151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35152for as_dir in $PATH
35153do
35154 IFS=$as_save_IFS
35155 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035156 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035158 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035160 break 2
35161 fi
35162done
cristy8b350f62009-11-15 23:12:43 +000035163 done
cristy3ed852e2009-09-05 21:47:34 +000035164IFS=$as_save_IFS
35165
35166fi
35167fi
35168P7ZIP=$ac_cv_prog_P7ZIP
35169if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035171$as_echo "$P7ZIP" >&6; }
35172else
cristy8b350f62009-11-15 23:12:43 +000035173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035174$as_echo "no" >&6; }
35175fi
35176
35177
35178 test -n "$P7ZIP" && break
35179done
35180
35181
cristy73bd4a52010-10-05 11:24:23 +000035182 if test "x$P7ZIP" != "x" ; then
35183 P7ZIP_DELEGATE_TRUE=
35184 P7ZIP_DELEGATE_FALSE='#'
35185else
35186 P7ZIP_DELEGATE_TRUE='#'
35187 P7ZIP_DELEGATE_FALSE=
35188fi
35189
cristy3ed852e2009-09-05 21:47:34 +000035190
35191#
35192# ZIP support (http://www.info-zip.org/Zip.html)
35193#
35194ZIP=''
35195for ac_prog in zip
35196do
35197 # Extract the first word of "$ac_prog", so it can be a program name with args.
35198set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035200$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035201if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035202 $as_echo_n "(cached) " >&6
35203else
35204 if test -n "$ZIP"; then
35205 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35206else
35207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35208for as_dir in $PATH
35209do
35210 IFS=$as_save_IFS
35211 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035212 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035214 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035216 break 2
35217 fi
35218done
cristy8b350f62009-11-15 23:12:43 +000035219 done
cristy3ed852e2009-09-05 21:47:34 +000035220IFS=$as_save_IFS
35221
35222fi
35223fi
35224ZIP=$ac_cv_prog_ZIP
35225if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035227$as_echo "$ZIP" >&6; }
35228else
cristy8b350f62009-11-15 23:12:43 +000035229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035230$as_echo "no" >&6; }
35231fi
35232
35233
35234 test -n "$ZIP" && break
35235done
35236
35237
cristy73bd4a52010-10-05 11:24:23 +000035238 if test "x$ZIP" != "x" ; then
35239 ZIP_DELEGATE_TRUE=
35240 ZIP_DELEGATE_FALSE='#'
35241else
35242 ZIP_DELEGATE_TRUE='#'
35243 ZIP_DELEGATE_FALSE=
35244fi
35245
cristy3ed852e2009-09-05 21:47:34 +000035246
35247#
35248# GhostPCL related configuration.
35249#
35250PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035251PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035252PCLMonoDevice=pbmraw
35253if test -z "$PCLVersion"; then
35254 PCLVersion='unknown'
35255fi
35256if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035257 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35258$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035260$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035261 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35262$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035263 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035265$as_echo_n "checking for pcl color device... " >&6; }
35266 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35267 :
35268 else
35269 PCLColorDevice=ppmraw
35270 fi
cristy09b53e12011-10-14 12:47:22 +000035271 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35272$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035273
35274 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035276$as_echo_n "checking for pcl CMYK device... " >&6; }
35277 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35278 :
35279 else
35280 PCLCMYKDevice=$PCLColorDevice
35281 fi
cristy09b53e12011-10-14 12:47:22 +000035282 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35283$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035284
35285 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035287$as_echo_n "checking for pcl mono device... " >&6; }
35288 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35289 :
35290 else
35291 PCLMonoDevice=$PCLColorDevice
35292 fi
cristy09b53e12011-10-14 12:47:22 +000035293 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35294$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035295fi
35296
35297
35298
35299
35300
35301
35302#
35303# GhostXPS related configuration.
35304#
35305XPSColorDevice=ppmraw
35306XPSCMYKDevice=bmpsep8
35307XPSMonoDevice=pbmraw
35308if test -z "$XPSVersion"; then
35309 XPSVersion='unknown'
35310fi
35311if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035312 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35313$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035315$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035316 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35317$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035318 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035320$as_echo_n "checking for xps color device... " >&6; }
35321 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35322 :
35323 else
35324 XPSColorDevice=ppmraw
35325 fi
cristy09b53e12011-10-14 12:47:22 +000035326 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35327$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035328
35329 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035331$as_echo_n "checking for xps CMYK device... " >&6; }
35332 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35333 :
35334 else
35335 XPSCMYKDevice=$XPSColorDevice
35336 fi
cristy09b53e12011-10-14 12:47:22 +000035337 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35338$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035339
35340 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035342$as_echo_n "checking for xps mono device... " >&6; }
35343 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35344 :
35345 else
35346 XPSMonoDevice=$XPSColorDevice
35347 fi
cristy09b53e12011-10-14 12:47:22 +000035348 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35349$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035350fi
35351
35352
35353
35354
35355
35356
35357#
35358# Ghostscript related configuration.
35359#
cristya97426c2011-02-04 01:41:27 +000035360GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035361GSColorDevice=pnmraw
35362GSCMYKDevice=pam
35363GSMonoDevice=pbmraw
35364GSPDFDevice=pdfwrite
35365GSPSDevice=pswrite
35366GSEPSDevice=epswrite
35367GSVersion='unknown'
35368if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035369 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35370$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035372$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035373 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35374$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035376$as_echo_n "checking for Ghostscript version... " >&6; }
35377 if GSVersion=`$PSDelegate --version`; then
35378 :
35379 else
35380 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35381 fi
cristy09b53e12011-10-14 12:47:22 +000035382 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35383$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035384
35385 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035387$as_echo_n "checking for gs alpha device... " >&6; }
35388 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35389 :
35390 else
35391 GSAlphaDevice=pnmraw
35392 fi
cristy09b53e12011-10-14 12:47:22 +000035393 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35394$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035395
35396 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035398$as_echo_n "checking for gs color device... " >&6; }
35399 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35400 :
35401 else
35402 GSColorDevice=pnmraw
35403 fi
cristy09b53e12011-10-14 12:47:22 +000035404 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35405$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035406
35407 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035409$as_echo_n "checking for gs CMYK device... " >&6; }
35410 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35411 :
35412 else
35413 GSCMYKDevice=bmpsep8
35414 fi
cristy09b53e12011-10-14 12:47:22 +000035415 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35416$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035417
35418 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035420$as_echo_n "checking for gs mono device... " >&6; }
35421 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35422 :
35423 else
35424 GSMonoDevice=$GSColorDevice
35425 fi
cristy09b53e12011-10-14 12:47:22 +000035426 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35427$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035428
35429 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035431$as_echo_n "checking for gs PDF writing device... " >&6; }
35432 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35433 :
35434 else
35435 GSPDFDevice=nodevice
35436 fi
cristy09b53e12011-10-14 12:47:22 +000035437 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35438$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035439
35440 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035442$as_echo_n "checking for gs PS writing device... " >&6; }
35443 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35444 :
35445 else
35446 GSPSDevice=nodevice
35447 fi
cristy09b53e12011-10-14 12:47:22 +000035448 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35449$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035450
35451 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035453$as_echo_n "checking for gs EPS writing device... " >&6; }
35454 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35455 :
35456 else
35457 GSEPSDevice=nodevice
35458 fi
cristy09b53e12011-10-14 12:47:22 +000035459 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35460$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035461fi
35462
35463
35464
35465
35466
35467
35468
35469
35470
35471
35472#
35473# PerlMagick-related configuration
35474#
35475
35476# Look for PERL if PerlMagick requested
35477# If name/path of desired PERL interpreter is specified, look for that one first
35478have_perl='no'
35479if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035480 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35481$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035483$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035484 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35485$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035486 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035488$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035489if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035490 $as_echo_n "(cached) " >&6
35491else
35492 ac_cv_path_PERL="$with_perl"
35493fi
cristy8b350f62009-11-15 23:12:43 +000035494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035495$as_echo "$ac_cv_path_PERL" >&6; };
35496 PERL=$ac_cv_path_PERL
35497 have_perl="$ac_cv_path_PERL"
35498 else
35499 for ac_prog in perl perl5
35500do
35501 # Extract the first word of "$ac_prog", so it can be a program name with args.
35502set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035504$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035505if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035506 $as_echo_n "(cached) " >&6
35507else
35508 case $PERL in
35509 [\\/]* | ?:[\\/]*)
35510 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35511 ;;
35512 *)
35513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35514for as_dir in $PATH
35515do
35516 IFS=$as_save_IFS
35517 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035518 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035520 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035522 break 2
35523 fi
35524done
cristy8b350f62009-11-15 23:12:43 +000035525 done
cristy3ed852e2009-09-05 21:47:34 +000035526IFS=$as_save_IFS
35527
35528 ;;
35529esac
35530fi
35531PERL=$ac_cv_path_PERL
35532if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035534$as_echo "$PERL" >&6; }
35535else
cristy8b350f62009-11-15 23:12:43 +000035536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035537$as_echo "no" >&6; }
35538fi
35539
35540
35541 test -n "$PERL" && break
35542done
35543 if test "$ac_cv_path_PERL"; then
35544 have_perl="$ac_cv_path_PERL"
35545 fi
35546 fi
35547fi
35548
cristy949301e2010-01-06 01:38:40 +000035549if test "$with_perl" != 'yes' ; then
35550 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35551fi
35552
35553PERL_SUPPORTS_DESTDIR='no'
35554
cristy3ed852e2009-09-05 21:47:34 +000035555with_perl_static='no'
35556with_perl_dynamic='no'
35557if test "$have_perl" != 'no'; then
35558 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35559 with_perl_static='yes'
35560 fi
35561 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35562 with_perl_dynamic='yes'
35563 fi
35564 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035565
35566
35567
35568
35569 if test -n "$PERL"; then :
35570
35571 ax_perl_version="5.8.1"
35572
35573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35574$as_echo_n "checking for perl version... " >&6; }
35575
35576 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35577
35578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35579$as_echo "$perl_version" >&6; }
35580
35581 PERL_VERSION=$perl_version
35582
35583
35584
35585
35586
35587 # Used to indicate true or false condition
35588 ax_compare_version=false
35589
35590 # Convert the two version strings to be compared into a format that
35591 # allows a simple string comparison. The end result is that a version
35592 # string of the form 1.12.5-r617 will be converted to the form
35593 # 0001001200050617. In other words, each number is zero padded to four
35594 # digits, and non digits are removed.
35595
35596 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35597 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35598 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35599 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35600 -e 's/[^0-9]//g'`
35601
35602
35603 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35604 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35605 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35606 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35607 -e 's/[^0-9]//g'`
35608
35609
35610 ax_compare_version=`echo "x$ax_compare_version_A
35611x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35612
35613
35614
35615 if test "$ax_compare_version" = "true" ; then
35616
35617 :
35618 PERL_SUPPORTS_DESTDIR='yes'
35619
35620 else
35621 :
35622 PERL_SUPPORTS_DESTDIR='no'
35623
35624 fi
35625
35626
35627else
35628
35629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35630$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35631 PERL_SUPPORTS_DESTDIR='no'
35632
cristy3ed852e2009-09-05 21:47:34 +000035633fi
cristy73bd4a52010-10-05 11:24:23 +000035634
35635fi
35636 if test "$have_perl" != 'no'; then
35637 WITH_PERL_TRUE=
35638 WITH_PERL_FALSE='#'
35639else
35640 WITH_PERL_TRUE='#'
35641 WITH_PERL_FALSE=
35642fi
35643
35644 if test $with_perl_static = 'yes'; then
35645 WITH_PERL_STATIC_TRUE=
35646 WITH_PERL_STATIC_FALSE='#'
35647else
35648 WITH_PERL_STATIC_TRUE='#'
35649 WITH_PERL_STATIC_FALSE=
35650fi
35651
35652 if test $with_perl_dynamic = 'yes'; then
35653 WITH_PERL_DYNAMIC_TRUE=
35654 WITH_PERL_DYNAMIC_FALSE='#'
35655else
35656 WITH_PERL_DYNAMIC_TRUE='#'
35657 WITH_PERL_DYNAMIC_FALSE=
35658fi
35659
cristy3ed852e2009-09-05 21:47:34 +000035660
35661
35662# Determine path to pick up MagickCore library from for use with building PerlMagick
35663MAGICKCORE_PATH="${LIB_DIR}"
35664if test $with_perl_static = 'yes'; then
35665 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35666 libtool_objdir=$objdir
35667
35668 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035669 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035670fi
35671
35672
35673# Create a simple string containing format names for all delegate libraries
35674DELEGATES=''
35675if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35676if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35677if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35678if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35679if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35680if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35681if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35682if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35683if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35684if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35685if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35686if test "$have_jpeg" = 'yes'; then
35687 DELEGATES="$DELEGATES jpeg";
35688 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35689fi
35690if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035691if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035692if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35693if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035694if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035695if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35696if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000035697if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000035698if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35699if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35700if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35701if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35702if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35703if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35704if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35705
35706
35707
35708#
35709# Handle special compiler flags
35710#
35711
35712# Add '-p' if prof source profiling support enabled
35713if test "$enable_prof" = 'yes'; then
35714 CFLAGS="-p $CFLAGS"
35715 CXXFLAGS="-p $CXXFLAGS"
35716 LDFLAGS="-p $LDFLAGS"
35717fi
35718
35719# Add '-pg' if gprof source profiling support enabled
35720if test "$enable_gprof" = 'yes'; then
35721 CFLAGS="-pg $CFLAGS"
35722 CXXFLAGS="-pg $CXXFLAGS"
35723 LDFLAGS="-pg $LDFLAGS"
35724fi
35725
35726# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35727# This is a gcc-specific feature
35728if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035730$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035731if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035732 $as_echo_n "(cached) " >&6
35733else
35734 ac_check_lib_save_LIBS=$LIBS
35735LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035737/* end confdefs.h. */
35738
35739/* Override any GCC internal prototype to avoid an error.
35740 Use char because int might match the return type of a GCC
35741 builtin and then its argument prototype would still apply. */
35742#ifdef __cplusplus
35743extern "C"
35744#endif
35745char _gcov_init ();
35746int
35747main ()
35748{
35749return _gcov_init ();
35750 ;
35751 return 0;
35752}
35753_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035754if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035755 ac_cv_lib_gcov__gcov_init=yes
35756else
cristy8b350f62009-11-15 23:12:43 +000035757 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035758fi
cristy8b350f62009-11-15 23:12:43 +000035759rm -f core conftest.err conftest.$ac_objext \
35760 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035761LIBS=$ac_check_lib_save_LIBS
35762fi
cristy8b350f62009-11-15 23:12:43 +000035763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035764$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035765if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035766 cat >>confdefs.h <<_ACEOF
35767#define HAVE_LIBGCOV 1
35768_ACEOF
35769
35770 LIBS="-lgcov $LIBS"
35771
35772fi
35773
cristy8b350f62009-11-15 23:12:43 +000035774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035775$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035776if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035777 $as_echo_n "(cached) " >&6
35778else
35779 ac_check_lib_save_LIBS=$LIBS
35780LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035782/* end confdefs.h. */
35783
35784/* Override any GCC internal prototype to avoid an error.
35785 Use char because int might match the return type of a GCC
35786 builtin and then its argument prototype would still apply. */
35787#ifdef __cplusplus
35788extern "C"
35789#endif
35790char __gcov_init ();
35791int
35792main ()
35793{
35794return __gcov_init ();
35795 ;
35796 return 0;
35797}
35798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035799if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035800 ac_cv_lib_gcov___gcov_init=yes
35801else
cristy8b350f62009-11-15 23:12:43 +000035802 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035803fi
cristy8b350f62009-11-15 23:12:43 +000035804rm -f core conftest.err conftest.$ac_objext \
35805 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035806LIBS=$ac_check_lib_save_LIBS
35807fi
cristy8b350f62009-11-15 23:12:43 +000035808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035809$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035810if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035811 cat >>confdefs.h <<_ACEOF
35812#define HAVE_LIBGCOV 1
35813_ACEOF
35814
35815 LIBS="-lgcov $LIBS"
35816
35817fi
35818
35819 case "$target_os" in
35820 darwin*)
35821 OSX_GCOV_LDFLAG="-Wl,-single_module"
35822 ;;
35823 *)
35824 OSX_GCOV_LDFLAG=""
35825 ;;
35826 esac
35827
35828 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35829 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35830 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35831fi
35832
35833#
35834# Build library dependency list for libMagickCore
35835#
35836
35837MAGICK_LIBLTDL='' # Libltdl for build
35838MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35839MAGICK_LTDLDEPS='' # extra libltdl dependencies
cristyc6722092012-10-14 00:19:31 +000035840if test "$with_ltdl" != 'no' ; then
35841 MAGICK_API_LIBLTDL='-lltdl'
cristy3ed852e2009-09-05 21:47:34 +000035842 MAGICK_LIBLTDL=${LIBLTDL}
35843 MAGICK_LTDLDEPS=${LTDLDEPS}
35844fi
35845
35846
35847
cristyc6722092012-10-14 00:19:31 +000035848if test "$build_modules" != 'no'; then
cristy3a75f062012-09-08 23:29:40 +000035849 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 +000035850else
cristy3a75f062012-09-08 23:29:40 +000035851 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 +000035852fi
35853
35854
35855#
35856# Remove extraneous spaces from output variables (asthetic)
35857#
35858X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35859X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35860X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35861X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35862
35863CC=`echo $CC | sed -e 's/ */ /g'`
35864CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35865CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35866CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35867DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35868DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35869LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35870TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35871MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35872#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35873
35874# Pass only user-provided LIBS as "global" libraries
35875LIBS=$USER_LIBS
35876
35877#AC_SUBST(CPPFLAGS)
35878
35879#AC_SUBST(LDFLAGS)
35880#AC_SUBST(X_PRE_LIBS)
35881#AC_SUBST(X_LIBS)
35882#AC_SUBST(X_EXTRA_LIBS)
35883
35884MAGICK_CFLAGS=$CFLAGS
35885MAGICK_CXXFLAGS="$CXXFLAGS"
35886MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35887MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35888MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035889MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035890
35891
35892
35893
35894
35895
35896
35897
cristyfd9dcd42010-08-08 18:07:02 +000035898
cristy3ed852e2009-09-05 21:47:34 +000035899# Set configured scripts to executable.
35900ac_config_commands="$ac_config_commands default"
35901
cristy2bd4b6e2012-07-22 15:29:11 +000035902ac_config_commands="$ac_config_commands magick.sh.in"
35903
cristy3ed852e2009-09-05 21:47:34 +000035904ac_config_commands="$ac_config_commands MagickCore-config.in"
35905
cristy3ed852e2009-09-05 21:47:34 +000035906ac_config_commands="$ac_config_commands MagickWand-config.in"
35907
cristy3ed852e2009-09-05 21:47:34 +000035908ac_config_commands="$ac_config_commands Magick++-config.in"
35909
35910ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35911
35912
cristy09b53e12011-10-14 12:47:22 +000035913{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35914$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35915{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35916$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035917cat >confcache <<\_ACEOF
35918# This file is a shell script that caches the results of configure
35919# tests run on this system so they can be shared between configure
35920# scripts and configure runs, see configure's option --config-cache.
35921# It is not useful on other systems. If it contains results you don't
35922# want to keep, you may remove or edit it.
35923#
35924# config.status only pays attention to the cache file if you give it
35925# the --recheck option to rerun configure.
35926#
35927# `ac_cv_env_foo' variables (set or unset) will be overridden when
35928# loading this file, other *unset* `ac_cv_foo' will be assigned the
35929# following values.
35930
35931_ACEOF
35932
35933# The following way of writing the cache mishandles newlines in values,
35934# but we know of no workaround that is simple, portable, and efficient.
35935# So, we kill variables containing newlines.
35936# Ultrix sh set writes to stderr and can't be redirected directly,
35937# and sets the high bit in the cache file unless we assign to the vars.
35938(
35939 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35940 eval ac_val=\$$ac_var
35941 case $ac_val in #(
35942 *${as_nl}*)
35943 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035944 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035945$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35946 esac
35947 case $ac_var in #(
35948 _ | IFS | as_nl) ;; #(
35949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035950 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035951 esac ;;
35952 esac
35953 done
35954
35955 (set) 2>&1 |
35956 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35957 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035958 # `set' does not quote correctly, so add quotes: double-quote
35959 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035960 sed -n \
35961 "s/'/'\\\\''/g;
35962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35963 ;; #(
35964 *)
35965 # `set' quotes correctly as required by POSIX, so do not add quotes.
35966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35967 ;;
35968 esac |
35969 sort
35970) |
35971 sed '
35972 /^ac_cv_env_/b end
35973 t clear
35974 :clear
35975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35976 t end
35977 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35978 :end' >>confcache
35979if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35980 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035981 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035982 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035983$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035984 if test ! -f "$cache_file" || test -h "$cache_file"; then
35985 cat confcache >"$cache_file"
35986 else
35987 case $cache_file in #(
35988 */* | ?:*)
35989 mv -f confcache "$cache_file"$$ &&
35990 mv -f "$cache_file"$$ "$cache_file" ;; #(
35991 *)
35992 mv -f confcache "$cache_file" ;;
35993 esac
35994 fi
35995 fi
cristy3ed852e2009-09-05 21:47:34 +000035996 else
cristy8b350f62009-11-15 23:12:43 +000035997 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035998$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35999 fi
36000fi
36001rm -f confcache
36002
36003test "x$prefix" = xNONE && prefix=$ac_default_prefix
36004# Let make expand exec_prefix.
36005test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36006
36007DEFS=-DHAVE_CONFIG_H
36008
36009ac_libobjs=
36010ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036011U=
cristy3ed852e2009-09-05 21:47:34 +000036012for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36013 # 1. Remove the extension, and $U if already installed.
36014 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36015 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36016 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36017 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036018 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36019 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036020done
36021LIBOBJS=$ac_libobjs
36022
36023LTLIBOBJS=$ac_ltlibobjs
36024
36025
cristyc0890a62012-07-19 00:18:20 +000036026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36027$as_echo_n "checking that generated files are newer than configure... " >&6; }
36028 if test -n "$am_sleep_pid"; then
36029 # Hide warnings about reused PIDs.
36030 wait $am_sleep_pid 2>/dev/null
36031 fi
36032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36033$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036034 if test -n "$EXEEXT"; then
36035 am__EXEEXT_TRUE=
36036 am__EXEEXT_FALSE='#'
36037else
36038 am__EXEEXT_TRUE='#'
36039 am__EXEEXT_FALSE=
36040fi
cristy3ed852e2009-09-05 21:47:34 +000036041
cristy73bd4a52010-10-05 11:24:23 +000036042if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036043 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036044Usually this means the macro was only invoked conditionally." "$LINENO" 5
36045fi
36046if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036047 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036048Usually this means the macro was only invoked conditionally." "$LINENO" 5
36049fi
36050if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036051 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036052Usually this means the macro was only invoked conditionally." "$LINENO" 5
36053fi
36054if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036055 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036056Usually this means the macro was only invoked conditionally." "$LINENO" 5
36057fi
36058if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036059 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036060Usually this means the macro was only invoked conditionally." "$LINENO" 5
36061fi
36062if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036063 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036064Usually this means the macro was only invoked conditionally." "$LINENO" 5
36065fi
36066if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036067 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036068Usually this means the macro was only invoked conditionally." "$LINENO" 5
36069fi
36070if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036071 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036072Usually this means the macro was only invoked conditionally." "$LINENO" 5
36073fi
cristy73bd4a52010-10-05 11:24:23 +000036074if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036075 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036076Usually this means the macro was only invoked conditionally." "$LINENO" 5
36077fi
36078if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036079 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036080Usually this means the macro was only invoked conditionally." "$LINENO" 5
36081fi
36082LT_CONFIG_H=config/config.h
36083
36084 _ltdl_libobjs=
36085 _ltdl_ltlibobjs=
36086 if test -n "$_LT_LIBOBJS"; then
36087 # Remove the extension.
36088 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
36089 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
36090 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
36091 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
36092 done
36093 fi
36094 ltdl_LIBOBJS=$_ltdl_libobjs
36095
36096 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
36097
36098
36099if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036100 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036101Usually this means the macro was only invoked conditionally." "$LINENO" 5
36102fi
36103if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036104 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036105Usually this means the macro was only invoked conditionally." "$LINENO" 5
36106fi
36107if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036108 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036109Usually this means the macro was only invoked conditionally." "$LINENO" 5
36110fi
36111if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036112 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036113Usually this means the macro was only invoked conditionally." "$LINENO" 5
36114fi
cristy71d8c202012-03-20 17:05:01 +000036115if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36116 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36117Usually this means the macro was only invoked conditionally." "$LINENO" 5
36118fi
cristy73bd4a52010-10-05 11:24:23 +000036119
36120if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036121 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036122Usually this means the macro was only invoked conditionally." "$LINENO" 5
36123fi
36124if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036125 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036126Usually this means the macro was only invoked conditionally." "$LINENO" 5
36127fi
36128if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036129 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036130Usually this means the macro was only invoked conditionally." "$LINENO" 5
36131fi
36132if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036133 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036134Usually this means the macro was only invoked conditionally." "$LINENO" 5
36135fi
36136if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036137 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036138Usually this means the macro was only invoked conditionally." "$LINENO" 5
36139fi
36140if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036141 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036142Usually this means the macro was only invoked conditionally." "$LINENO" 5
36143fi
36144if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036145 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036146Usually this means the macro was only invoked conditionally." "$LINENO" 5
36147fi
36148if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036149 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036150Usually this means the macro was only invoked conditionally." "$LINENO" 5
36151fi
36152if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036153 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036154Usually this means the macro was only invoked conditionally." "$LINENO" 5
36155fi
36156if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036157 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036158Usually this means the macro was only invoked conditionally." "$LINENO" 5
36159fi
36160if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036161 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036162Usually this means the macro was only invoked conditionally." "$LINENO" 5
36163fi
36164if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036165 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036166Usually this means the macro was only invoked conditionally." "$LINENO" 5
36167fi
36168if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036169 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036170Usually this means the macro was only invoked conditionally." "$LINENO" 5
36171fi
36172if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036173 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036174Usually this means the macro was only invoked conditionally." "$LINENO" 5
36175fi
36176if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036177 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036178Usually this means the macro was only invoked conditionally." "$LINENO" 5
36179fi
36180if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036181 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036182Usually this means the macro was only invoked conditionally." "$LINENO" 5
36183fi
36184if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036185 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036186Usually this means the macro was only invoked conditionally." "$LINENO" 5
36187fi
36188if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036189 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036190Usually this means the macro was only invoked conditionally." "$LINENO" 5
36191fi
36192if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036193 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036194Usually this means the macro was only invoked conditionally." "$LINENO" 5
36195fi
36196if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036197 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036198Usually this means the macro was only invoked conditionally." "$LINENO" 5
36199fi
cristyfbb0ef02010-12-19 02:32:11 +000036200if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36201 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36202Usually this means the macro was only invoked conditionally." "$LINENO" 5
36203fi
cristy73bd4a52010-10-05 11:24:23 +000036204if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036205 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036206Usually this means the macro was only invoked conditionally." "$LINENO" 5
36207fi
cristy41cbe8a2011-10-27 01:35:18 +000036208if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36209 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36210Usually this means the macro was only invoked conditionally." "$LINENO" 5
36211fi
cristya054b762012-03-26 23:16:00 +000036212if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36213 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036214Usually this means the macro was only invoked conditionally." "$LINENO" 5
36215fi
cristy73bd4a52010-10-05 11:24:23 +000036216if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036217 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036218Usually this means the macro was only invoked conditionally." "$LINENO" 5
36219fi
36220if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036221 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036222Usually this means the macro was only invoked conditionally." "$LINENO" 5
36223fi
36224if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036225 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036226Usually this means the macro was only invoked conditionally." "$LINENO" 5
36227fi
36228if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036229 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036230Usually this means the macro was only invoked conditionally." "$LINENO" 5
36231fi
cristyb1860752011-03-14 00:27:46 +000036232if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36233 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36234Usually this means the macro was only invoked conditionally." "$LINENO" 5
36235fi
cristy73bd4a52010-10-05 11:24:23 +000036236if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036237 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036238Usually this means the macro was only invoked conditionally." "$LINENO" 5
36239fi
36240if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036241 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036242Usually this means the macro was only invoked conditionally." "$LINENO" 5
36243fi
36244if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036245 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036246Usually this means the macro was only invoked conditionally." "$LINENO" 5
36247fi
36248if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036249 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036250Usually this means the macro was only invoked conditionally." "$LINENO" 5
36251fi
36252if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036253 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036254Usually this means the macro was only invoked conditionally." "$LINENO" 5
36255fi
36256if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036257 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036258Usually this means the macro was only invoked conditionally." "$LINENO" 5
36259fi
36260if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036261 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036262Usually this means the macro was only invoked conditionally." "$LINENO" 5
36263fi
36264if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036265 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036266Usually this means the macro was only invoked conditionally." "$LINENO" 5
36267fi
cristy3ed852e2009-09-05 21:47:34 +000036268
cristyda16f162011-02-19 23:52:17 +000036269: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036270ac_write_fail=0
36271ac_clean_files_save=$ac_clean_files
36272ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036273{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036274$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036275as_write_fail=0
36276cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036277#! $SHELL
36278# Generated by $as_me.
36279# Run this file to recreate the current configuration.
36280# Compiler output produced by configure, useful for debugging
36281# configure, is in config.log if it exists.
36282
36283debug=false
36284ac_cs_recheck=false
36285ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036286
cristy8b350f62009-11-15 23:12:43 +000036287SHELL=\${CONFIG_SHELL-$SHELL}
36288export SHELL
36289_ASEOF
36290cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36291## -------------------- ##
36292## M4sh Initialization. ##
36293## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036294
36295# Be more Bourne compatible
36296DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036297if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036298 emulate sh
36299 NULLCMD=:
36300 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36301 # is contrary to our usage. Disable this feature.
36302 alias -g '${1+"$@"}'='"$@"'
36303 setopt NO_GLOB_SUBST
36304else
cristy8b350f62009-11-15 23:12:43 +000036305 case `(set -o) 2>/dev/null` in #(
36306 *posix*) :
36307 set -o posix ;; #(
36308 *) :
36309 ;;
cristy3ed852e2009-09-05 21:47:34 +000036310esac
cristy3ed852e2009-09-05 21:47:34 +000036311fi
36312
36313
cristy3ed852e2009-09-05 21:47:34 +000036314as_nl='
36315'
36316export as_nl
36317# Printing a long string crashes Solaris 7 /usr/bin/printf.
36318as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36319as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36320as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036321# Prefer a ksh shell builtin over an external printf program on Solaris,
36322# but without wasting forks for bash or zsh.
36323if test -z "$BASH_VERSION$ZSH_VERSION" \
36324 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36325 as_echo='print -r --'
36326 as_echo_n='print -rn --'
36327elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036328 as_echo='printf %s\n'
36329 as_echo_n='printf %s'
36330else
36331 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36332 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36333 as_echo_n='/usr/ucb/echo -n'
36334 else
36335 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36336 as_echo_n_body='eval
36337 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036338 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036339 *"$as_nl"*)
36340 expr "X$arg" : "X\\(.*\\)$as_nl";
36341 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36342 esac;
36343 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36344 '
36345 export as_echo_n_body
36346 as_echo_n='sh -c $as_echo_n_body as_echo'
36347 fi
36348 export as_echo_body
36349 as_echo='sh -c $as_echo_body as_echo'
36350fi
36351
36352# The user is always right.
36353if test "${PATH_SEPARATOR+set}" != set; then
36354 PATH_SEPARATOR=:
36355 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36356 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36357 PATH_SEPARATOR=';'
36358 }
36359fi
36360
cristy3ed852e2009-09-05 21:47:34 +000036361
36362# IFS
36363# We need space, tab and new line, in precisely that order. Quoting is
36364# there to prevent editors from complaining about space-tab.
36365# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36366# splitting by setting IFS to empty value.)
36367IFS=" "" $as_nl"
36368
36369# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036370as_myself=
cristy8b350f62009-11-15 23:12:43 +000036371case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036372 *[\\/]* ) as_myself=$0 ;;
36373 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36374for as_dir in $PATH
36375do
36376 IFS=$as_save_IFS
36377 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036378 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36379 done
cristy3ed852e2009-09-05 21:47:34 +000036380IFS=$as_save_IFS
36381
36382 ;;
36383esac
36384# We did not find ourselves, most probably we were run as `sh COMMAND'
36385# in which case we are not to be found in the path.
36386if test "x$as_myself" = x; then
36387 as_myself=$0
36388fi
36389if test ! -f "$as_myself"; then
36390 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036391 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036392fi
36393
cristy8b350f62009-11-15 23:12:43 +000036394# Unset variables that we do not need and which cause bugs (e.g. in
36395# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36396# suppresses any "Segmentation fault" message there. '((' could
36397# trigger a bug in pdksh 5.2.14.
36398for as_var in BASH_ENV ENV MAIL MAILPATH
36399do eval test x\${$as_var+set} = xset \
36400 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036401done
36402PS1='$ '
36403PS2='> '
36404PS4='+ '
36405
36406# NLS nuisances.
36407LC_ALL=C
36408export LC_ALL
36409LANGUAGE=C
36410export LANGUAGE
36411
cristy8b350f62009-11-15 23:12:43 +000036412# CDPATH.
36413(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36414
36415
cristy98dddb52010-11-04 00:30:15 +000036416# as_fn_error STATUS ERROR [LINENO LOG_FD]
36417# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036418# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36419# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036420# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036421as_fn_error ()
36422{
cristy98dddb52010-11-04 00:30:15 +000036423 as_status=$1; test $as_status -eq 0 && as_status=1
36424 if test "$4"; then
36425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036427 fi
cristy98dddb52010-11-04 00:30:15 +000036428 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036429 as_fn_exit $as_status
36430} # as_fn_error
36431
36432
36433# as_fn_set_status STATUS
36434# -----------------------
36435# Set $? to STATUS, without forking.
36436as_fn_set_status ()
36437{
36438 return $1
36439} # as_fn_set_status
36440
36441# as_fn_exit STATUS
36442# -----------------
36443# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36444as_fn_exit ()
36445{
36446 set +e
36447 as_fn_set_status $1
36448 exit $1
36449} # as_fn_exit
36450
36451# as_fn_unset VAR
36452# ---------------
36453# Portably unset VAR.
36454as_fn_unset ()
36455{
36456 { eval $1=; unset $1;}
36457}
36458as_unset=as_fn_unset
36459# as_fn_append VAR VALUE
36460# ----------------------
36461# Append the text in VALUE to the end of the definition contained in VAR. Take
36462# advantage of any shell optimizations that allow amortized linear growth over
36463# repeated appends, instead of the typical quadratic growth present in naive
36464# implementations.
36465if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36466 eval 'as_fn_append ()
36467 {
36468 eval $1+=\$2
36469 }'
36470else
36471 as_fn_append ()
36472 {
36473 eval $1=\$$1\$2
36474 }
36475fi # as_fn_append
36476
36477# as_fn_arith ARG...
36478# ------------------
36479# Perform arithmetic evaluation on the ARGs, and store the result in the
36480# global $as_val. Take advantage of shells that can avoid forks. The arguments
36481# must be portable across $(()) and expr.
36482if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36483 eval 'as_fn_arith ()
36484 {
36485 as_val=$(( $* ))
36486 }'
36487else
36488 as_fn_arith ()
36489 {
36490 as_val=`expr "$@" || test $? -eq 1`
36491 }
36492fi # as_fn_arith
36493
36494
cristy3ed852e2009-09-05 21:47:34 +000036495if expr a : '\(a\)' >/dev/null 2>&1 &&
36496 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36497 as_expr=expr
36498else
36499 as_expr=false
36500fi
36501
36502if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36503 as_basename=basename
36504else
36505 as_basename=false
36506fi
36507
cristy8b350f62009-11-15 23:12:43 +000036508if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36509 as_dirname=dirname
36510else
36511 as_dirname=false
36512fi
cristy3ed852e2009-09-05 21:47:34 +000036513
cristy3ed852e2009-09-05 21:47:34 +000036514as_me=`$as_basename -- "$0" ||
36515$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36516 X"$0" : 'X\(//\)$' \| \
36517 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36518$as_echo X/"$0" |
36519 sed '/^.*\/\([^/][^/]*\)\/*$/{
36520 s//\1/
36521 q
36522 }
36523 /^X\/\(\/\/\)$/{
36524 s//\1/
36525 q
36526 }
36527 /^X\/\(\/\).*/{
36528 s//\1/
36529 q
36530 }
36531 s/.*/./; q'`
36532
cristy8b350f62009-11-15 23:12:43 +000036533# Avoid depending upon Character Ranges.
36534as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36535as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36536as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36537as_cr_digits='0123456789'
36538as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036539
36540ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036541case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036542-n*)
cristy8b350f62009-11-15 23:12:43 +000036543 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036544 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036545 xy) ECHO_C='\c';;
36546 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36547 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036548 esac;;
36549*)
36550 ECHO_N='-n';;
36551esac
cristy3ed852e2009-09-05 21:47:34 +000036552
36553rm -f conf$$ conf$$.exe conf$$.file
36554if test -d conf$$.dir; then
36555 rm -f conf$$.dir/conf$$.file
36556else
36557 rm -f conf$$.dir
36558 mkdir conf$$.dir 2>/dev/null
36559fi
36560if (echo >conf$$.file) 2>/dev/null; then
36561 if ln -s conf$$.file conf$$ 2>/dev/null; then
36562 as_ln_s='ln -s'
36563 # ... but there are two gotchas:
36564 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36565 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036566 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036567 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036568 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036569 elif ln conf$$.file conf$$ 2>/dev/null; then
36570 as_ln_s=ln
36571 else
cristy14fefe52012-05-21 00:59:18 +000036572 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036573 fi
36574else
cristy14fefe52012-05-21 00:59:18 +000036575 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036576fi
36577rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36578rmdir conf$$.dir 2>/dev/null
36579
cristy8b350f62009-11-15 23:12:43 +000036580
36581# as_fn_mkdir_p
36582# -------------
36583# Create "$as_dir" as a directory, including parents if necessary.
36584as_fn_mkdir_p ()
36585{
36586
36587 case $as_dir in #(
36588 -*) as_dir=./$as_dir;;
36589 esac
36590 test -d "$as_dir" || eval $as_mkdir_p || {
36591 as_dirs=
36592 while :; do
36593 case $as_dir in #(
36594 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36595 *) as_qdir=$as_dir;;
36596 esac
36597 as_dirs="'$as_qdir' $as_dirs"
36598 as_dir=`$as_dirname -- "$as_dir" ||
36599$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36600 X"$as_dir" : 'X\(//\)[^/]' \| \
36601 X"$as_dir" : 'X\(//\)$' \| \
36602 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36603$as_echo X"$as_dir" |
36604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36605 s//\1/
36606 q
36607 }
36608 /^X\(\/\/\)[^/].*/{
36609 s//\1/
36610 q
36611 }
36612 /^X\(\/\/\)$/{
36613 s//\1/
36614 q
36615 }
36616 /^X\(\/\).*/{
36617 s//\1/
36618 q
36619 }
36620 s/.*/./; q'`
36621 test -d "$as_dir" && break
36622 done
36623 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036624 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036625
36626
36627} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036628if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036629 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036630else
36631 test -d ./-p && rmdir ./-p
36632 as_mkdir_p=false
36633fi
36634
cristy14fefe52012-05-21 00:59:18 +000036635
36636# as_fn_executable_p FILE
36637# -----------------------
36638# Test if FILE is an executable regular file.
36639as_fn_executable_p ()
36640{
36641 test -f "$1" && test -x "$1"
36642} # as_fn_executable_p
36643as_test_x='test -x'
36644as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036645
36646# Sed expression to map a string onto a valid CPP name.
36647as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36648
36649# Sed expression to map a string onto a valid variable name.
36650as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36651
36652
36653exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036654## ----------------------------------- ##
36655## Main body of $CONFIG_STATUS script. ##
36656## ----------------------------------- ##
36657_ASEOF
36658test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036659
cristy8b350f62009-11-15 23:12:43 +000036660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36661# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036662# report actual input values of CONFIG_FILES etc. instead of their
36663# values after options handling.
36664ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036665This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036666generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036667
36668 CONFIG_FILES = $CONFIG_FILES
36669 CONFIG_HEADERS = $CONFIG_HEADERS
36670 CONFIG_LINKS = $CONFIG_LINKS
36671 CONFIG_COMMANDS = $CONFIG_COMMANDS
36672 $ $0 $@
36673
36674on `(hostname || uname -n) 2>/dev/null | sed 1q`
36675"
36676
36677_ACEOF
36678
36679case $ac_config_files in *"
36680"*) set x $ac_config_files; shift; ac_config_files=$*;;
36681esac
36682
36683case $ac_config_headers in *"
36684"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36685esac
36686
36687
36688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36689# Files that config.status was made for.
36690config_files="$ac_config_files"
36691config_headers="$ac_config_headers"
36692config_commands="$ac_config_commands"
36693
36694_ACEOF
36695
36696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36697ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036698\`$as_me' instantiates files and other configuration actions
36699from templates according to the current configuration. Unless the files
36700and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036701
cristy8b350f62009-11-15 23:12:43 +000036702Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036703
36704 -h, --help print this help, then exit
36705 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036706 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036707 -q, --quiet, --silent
36708 do not print progress messages
36709 -d, --debug don't remove temporary files
36710 --recheck update $as_me by reconfiguring in the same conditions
36711 --file=FILE[:TEMPLATE]
36712 instantiate the configuration file FILE
36713 --header=FILE[:TEMPLATE]
36714 instantiate the configuration header FILE
36715
36716Configuration files:
36717$config_files
36718
36719Configuration headers:
36720$config_headers
36721
36722Configuration commands:
36723$config_commands
36724
cristy8b350f62009-11-15 23:12:43 +000036725Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036726
36727_ACEOF
36728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036729ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036730ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036731ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036732configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036733 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036734
cristy14fefe52012-05-21 00:59:18 +000036735Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036736This config.status script is free software; the Free Software Foundation
36737gives unlimited permission to copy, distribute and modify it."
36738
36739ac_pwd='$ac_pwd'
36740srcdir='$srcdir'
36741INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036742MKDIR_P='$MKDIR_P'
36743AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036744test -n "\$AWK" || AWK=awk
36745_ACEOF
36746
36747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36748# The default lists apply if the user does not specify any file.
36749ac_need_defaults=:
36750while test $# != 0
36751do
36752 case $1 in
cristyda16f162011-02-19 23:52:17 +000036753 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036754 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36755 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36756 ac_shift=:
36757 ;;
cristyda16f162011-02-19 23:52:17 +000036758 --*=)
36759 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36760 ac_optarg=
36761 ac_shift=:
36762 ;;
cristy3ed852e2009-09-05 21:47:34 +000036763 *)
36764 ac_option=$1
36765 ac_optarg=$2
36766 ac_shift=shift
36767 ;;
36768 esac
36769
36770 case $ac_option in
36771 # Handling of the options.
36772 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36773 ac_cs_recheck=: ;;
36774 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36775 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036776 --config | --confi | --conf | --con | --co | --c )
36777 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036778 --debug | --debu | --deb | --de | --d | -d )
36779 debug=: ;;
36780 --file | --fil | --fi | --f )
36781 $ac_shift
36782 case $ac_optarg in
36783 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036784 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036785 esac
cristy8b350f62009-11-15 23:12:43 +000036786 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036787 ac_need_defaults=false;;
36788 --header | --heade | --head | --hea )
36789 $ac_shift
36790 case $ac_optarg in
36791 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36792 esac
cristy8b350f62009-11-15 23:12:43 +000036793 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036794 ac_need_defaults=false;;
36795 --he | --h)
36796 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036797 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036798Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036799 --help | --hel | -h )
36800 $as_echo "$ac_cs_usage"; exit ;;
36801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36802 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36803 ac_cs_silent=: ;;
36804
36805 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036806 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036807Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036808
cristy8b350f62009-11-15 23:12:43 +000036809 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036810 ac_need_defaults=false ;;
36811
36812 esac
36813 shift
36814done
36815
36816ac_configure_extra_args=
36817
36818if $ac_cs_silent; then
36819 exec 6>/dev/null
36820 ac_configure_extra_args="$ac_configure_extra_args --silent"
36821fi
36822
36823_ACEOF
36824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36825if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036826 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036827 shift
36828 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36829 CONFIG_SHELL='$SHELL'
36830 export CONFIG_SHELL
36831 exec "\$@"
36832fi
36833
36834_ACEOF
36835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36836exec 5>>config.log
36837{
36838 echo
36839 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36840## Running $as_me. ##
36841_ASBOX
36842 $as_echo "$ac_log"
36843} >&5
36844
36845_ACEOF
36846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036847#
36848# INIT-COMMANDS
36849#
36850PACKAGE="$PACKAGE"
36851AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36852
36853
36854# The HP-UX ksh and POSIX shell print the target directory to stdout
36855# if CDPATH is set.
36856(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36857
36858sed_quote_subst='$sed_quote_subst'
36859double_quote_subst='$double_quote_subst'
36860delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036861SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36862Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36863GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36864EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36865FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36866SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36867ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36868LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36869macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36870macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36871AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36872DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36873OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36874enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36875enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36876pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36877enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036878PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036879host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36880host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36881host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36882build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36883build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36884build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36885NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36886LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36887max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36888ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36889exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36890lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36891lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36892lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036893lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36894lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036895reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36896reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36897deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36898file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036899file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36900want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36901sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036902AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36903AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036904archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036905STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36906RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36907old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36908old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36909old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36910lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36911CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36912CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36913compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36914GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36915lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36916lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36917lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36918lt_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 +000036919nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36920lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036921objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36922MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36923lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036924lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036925lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036926lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36927lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36928need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036929MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036930DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36931NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36932LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36933OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36934OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36935libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36936shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36937extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36938archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36939enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36940export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36941whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36942compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36943old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36944old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36945archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36946archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36947module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36948module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36949with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36950allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36951no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36952hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036953hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36954hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36955hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36956hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36957hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36958hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36959inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36960link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036961always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36962export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36963exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36964include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36965prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036966postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036967file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36968variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36969need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36970need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36971version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36972runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36973shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36974shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36975libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36976library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36977soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36978install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36979postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36980postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36981finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36982finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36983hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36984sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36985sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36986hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36987enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36988enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36989enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36990old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36991striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36992compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36993predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36994postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36995predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36996postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36997compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36998LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36999reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37000reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37001old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37002compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37003GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37004lt_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 +000037005lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037006lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037007lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37008lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37009archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37010enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37011export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37012whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37013compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37014old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37015old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37016archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37017archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37018module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37019module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37020with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37021allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37022no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37023hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037024hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37025hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37026hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37027hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37028hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37029hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37030inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37031link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037032always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37033export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37034exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37035include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37036prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037037postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037038file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37039hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37040compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37041predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37042postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37043predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37044postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37045compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037046
37047LTCC='$LTCC'
37048LTCFLAGS='$LTCFLAGS'
37049compiler='$compiler_DEFAULT'
37050
cristy0c60a692010-11-04 01:09:47 +000037051# A function that is used when there is no print builtin or printf.
37052func_fallback_echo ()
37053{
37054 eval 'cat <<_LTECHO_EOF
37055\$1
37056_LTECHO_EOF'
37057}
37058
cristy73bd4a52010-10-05 11:24:23 +000037059# Quote evaled strings.
37060for var in SED \
37061GREP \
37062EGREP \
37063FGREP \
cristy0c60a692010-11-04 01:09:47 +000037064SHELL \
37065ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037066LD \
cristy0c60a692010-11-04 01:09:47 +000037067AS \
37068DLLTOOL \
37069OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037070PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037071NM \
37072LN_S \
37073lt_SP2NL \
37074lt_NL2SP \
37075reload_flag \
37076deplibs_check_method \
37077file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037078file_magic_glob \
37079want_nocaseglob \
37080sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037081AR \
37082AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037083archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037084STRIP \
37085RANLIB \
37086CC \
37087CFLAGS \
37088compiler \
37089lt_cv_sys_global_symbol_pipe \
37090lt_cv_sys_global_symbol_to_cdecl \
37091lt_cv_sys_global_symbol_to_c_name_address \
37092lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037093nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037094lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037095lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037096lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037097lt_prog_compiler_static \
37098lt_cv_prog_compiler_c_o \
37099need_locks \
cristyda16f162011-02-19 23:52:17 +000037100MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037101DSYMUTIL \
37102NMEDIT \
37103LIPO \
37104OTOOL \
37105OTOOL64 \
37106shrext_cmds \
37107export_dynamic_flag_spec \
37108whole_archive_flag_spec \
37109compiler_needs_object \
37110with_gnu_ld \
37111allow_undefined_flag \
37112no_undefined_flag \
37113hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037114hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037115exclude_expsyms \
37116include_expsyms \
37117file_list_spec \
37118variables_saved_for_relink \
37119libname_spec \
37120library_names_spec \
37121soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037122install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037123finish_eval \
37124old_striplib \
37125striplib \
37126compiler_lib_search_dirs \
37127predep_objects \
37128postdep_objects \
37129predeps \
37130postdeps \
37131compiler_lib_search_path \
37132LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037133reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037134compiler_CXX \
37135lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037136lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037137lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037138lt_prog_compiler_static_CXX \
37139lt_cv_prog_compiler_c_o_CXX \
37140export_dynamic_flag_spec_CXX \
37141whole_archive_flag_spec_CXX \
37142compiler_needs_object_CXX \
37143with_gnu_ld_CXX \
37144allow_undefined_flag_CXX \
37145no_undefined_flag_CXX \
37146hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037147hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037148exclude_expsyms_CXX \
37149include_expsyms_CXX \
37150file_list_spec_CXX \
37151compiler_lib_search_dirs_CXX \
37152predep_objects_CXX \
37153postdep_objects_CXX \
37154predeps_CXX \
37155postdeps_CXX \
37156compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037157 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037158 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037159 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037160 ;;
37161 *)
37162 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37163 ;;
37164 esac
37165done
37166
37167# Double-quote double-evaled strings.
37168for var in reload_cmds \
37169old_postinstall_cmds \
37170old_postuninstall_cmds \
37171old_archive_cmds \
37172extract_expsyms_cmds \
37173old_archive_from_new_cmds \
37174old_archive_from_expsyms_cmds \
37175archive_cmds \
37176archive_expsym_cmds \
37177module_cmds \
37178module_expsym_cmds \
37179export_symbols_cmds \
37180prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037181postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037182postinstall_cmds \
37183postuninstall_cmds \
37184finish_cmds \
37185sys_lib_search_path_spec \
37186sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037187reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037188old_archive_cmds_CXX \
37189old_archive_from_new_cmds_CXX \
37190old_archive_from_expsyms_cmds_CXX \
37191archive_cmds_CXX \
37192archive_expsym_cmds_CXX \
37193module_cmds_CXX \
37194module_expsym_cmds_CXX \
37195export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037196prelink_cmds_CXX \
37197postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037198 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037199 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037200 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037201 ;;
37202 *)
37203 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37204 ;;
37205 esac
37206done
37207
cristy73bd4a52010-10-05 11:24:23 +000037208ac_aux_dir='$ac_aux_dir'
37209xsi_shell='$xsi_shell'
37210lt_shell_append='$lt_shell_append'
37211
37212# See if we are running on zsh, and set the options which allow our
37213# commands through without removal of \ escapes INIT.
37214if test -n "\${ZSH_VERSION+set}" ; then
37215 setopt NO_GLOB_SUBST
37216fi
37217
37218
37219 PACKAGE='$PACKAGE'
37220 VERSION='$VERSION'
37221 TIMESTAMP='$TIMESTAMP'
37222 RM='$RM'
37223 ofile='$ofile'
37224
37225
37226
37227
37228
37229
cristy3ed852e2009-09-05 21:47:34 +000037230_ACEOF
37231
37232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37233
37234# Handling of arguments.
37235for ac_config_target in $ac_config_targets
37236do
37237 case $ac_config_target in
37238 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037239 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037240 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037241 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37242 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37243 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37244 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37245 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037246 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037247 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037248 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37249 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37250 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37251 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37252 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037253 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037254 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37255 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037256 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37257 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37258 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037259 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37260 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37261 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37262 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37263 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37264 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37265 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37266 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37267 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37268 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37269 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37270 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37271 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37272 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37273 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37274 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37275 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037276 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37277 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037278 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37279 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037280 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037281 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037282 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037283 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037284 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37285 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37286
cristy98dddb52010-11-04 00:30:15 +000037287 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037288 esac
37289done
37290
37291
37292# If the user did not use the arguments to specify the items to instantiate,
37293# then the envvar interface is used. Set only those that are not.
37294# We use the long form for the default assignment because of an extremely
37295# bizarre bug on SunOS 4.1.3.
37296if $ac_need_defaults; then
37297 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37298 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37299 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37300fi
37301
37302# Have a temporary directory for convenience. Make it in the build tree
37303# simply because there is no reason against having it here, and in addition,
37304# creating and moving files from /tmp can sometimes cause problems.
37305# Hook for its removal unless debugging.
37306# Note that there is a small window in which the directory will not be cleaned:
37307# after its creation but before its name has been assigned to `$tmp'.
37308$debug ||
37309{
cristyda16f162011-02-19 23:52:17 +000037310 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037311 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037312 : "${ac_tmp:=$tmp}"
37313 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037314' 0
cristy8b350f62009-11-15 23:12:43 +000037315 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037316}
37317# Create a (secure) tmp directory for tmp files.
37318
37319{
37320 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037321 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037322} ||
37323{
37324 tmp=./conf$$-$RANDOM
37325 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037326} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037327ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037328
37329# Set up the scripts for CONFIG_FILES section.
37330# No need to generate them if there are no CONFIG_FILES.
37331# This happens for instance with `./config.status config.h'.
37332if test -n "$CONFIG_FILES"; then
37333
37334
cristy8b350f62009-11-15 23:12:43 +000037335ac_cr=`echo X | tr X '\015'`
37336# On cygwin, bash can eat \r inside `` if the user requested igncr.
37337# But we know of no other shell where ac_cr would be empty at this
37338# point, so we can use a bashism as a fallback.
37339if test "x$ac_cr" = x; then
37340 eval ac_cr=\$\'\\r\'
37341fi
cristy3ed852e2009-09-05 21:47:34 +000037342ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37343if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037344 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037345else
37346 ac_cs_awk_cr=$ac_cr
37347fi
37348
cristyda16f162011-02-19 23:52:17 +000037349echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037350_ACEOF
37351
37352
37353{
37354 echo "cat >conf$$subs.awk <<_ACEOF" &&
37355 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37356 echo "_ACEOF"
37357} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037358 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37359ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037360ac_delim='%!_!# '
37361for ac_last_try in false false false false false :; do
37362 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037363 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037364
37365 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37366 if test $ac_delim_n = $ac_delim_num; then
37367 break
37368 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037369 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037370 else
37371 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37372 fi
37373done
37374rm -f conf$$subs.sh
37375
37376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037377cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037378_ACEOF
37379sed -n '
37380h
37381s/^/S["/; s/!.*/"]=/
37382p
37383g
37384s/^[^!]*!//
37385:repl
37386t repl
37387s/'"$ac_delim"'$//
37388t delim
37389:nl
37390h
cristycd4c5312009-11-22 01:19:08 +000037391s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037392t more1
37393s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37394p
37395n
37396b repl
37397:more1
37398s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37399p
37400g
37401s/.\{148\}//
37402t nl
37403:delim
37404h
cristycd4c5312009-11-22 01:19:08 +000037405s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037406t more2
37407s/["\\]/\\&/g; s/^/"/; s/$/"/
37408p
37409b
37410:more2
37411s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37412p
37413g
37414s/.\{148\}//
37415t delim
37416' <conf$$subs.awk | sed '
37417/^[^""]/{
37418 N
37419 s/\n//
37420}
37421' >>$CONFIG_STATUS || ac_write_fail=1
37422rm -f conf$$subs.awk
37423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37424_ACAWK
cristyda16f162011-02-19 23:52:17 +000037425cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037426 for (key in S) S_is_set[key] = 1
37427 FS = ""
37428
37429}
37430{
37431 line = $ 0
37432 nfields = split(line, field, "@")
37433 substed = 0
37434 len = length(field[1])
37435 for (i = 2; i < nfields; i++) {
37436 key = field[i]
37437 keylen = length(key)
37438 if (S_is_set[key]) {
37439 value = S[key]
37440 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37441 len += length(value) + length(field[++i])
37442 substed = 1
37443 } else
37444 len += 1 + keylen
37445 }
37446
37447 print line
37448}
37449
37450_ACAWK
37451_ACEOF
37452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37453if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37454 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37455else
37456 cat
cristyda16f162011-02-19 23:52:17 +000037457fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037458 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037459_ACEOF
37460
cristy98dddb52010-11-04 00:30:15 +000037461# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37462# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037463# trailing colons and then remove the whole line if VPATH becomes empty
37464# (actually we leave an empty line to preserve line numbers).
37465if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037466 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37467h
37468s///
37469s/^/:/
37470s/[ ]*$/:/
37471s/:\$(srcdir):/:/g
37472s/:\${srcdir}:/:/g
37473s/:@srcdir@:/:/g
37474s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037475s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037476x
37477s/\(=[ ]*\).*/\1/
37478G
37479s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037480s/^[^=]*=[ ]*$//
37481}'
37482fi
37483
37484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37485fi # test -n "$CONFIG_FILES"
37486
37487# Set up the scripts for CONFIG_HEADERS section.
37488# No need to generate them if there are no CONFIG_HEADERS.
37489# This happens for instance with `./config.status Makefile'.
37490if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037491cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037492BEGIN {
37493_ACEOF
37494
37495# Transform confdefs.h into an awk script `defines.awk', embedded as
37496# here-document in config.status, that substitutes the proper values into
37497# config.h.in to produce config.h.
37498
37499# Create a delimiter string that does not exist in confdefs.h, to ease
37500# handling of long lines.
37501ac_delim='%!_!# '
37502for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037503 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37504 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037505 break
37506 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037507 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037508 else
37509 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37510 fi
37511done
37512
37513# For the awk script, D is an array of macro values keyed by name,
37514# likewise P contains macro parameters if any. Preserve backslash
37515# newline sequences.
37516
37517ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37518sed -n '
37519s/.\{148\}/&'"$ac_delim"'/g
37520t rset
37521:rset
37522s/^[ ]*#[ ]*define[ ][ ]*/ /
37523t def
37524d
37525:def
37526s/\\$//
37527t bsnl
37528s/["\\]/\\&/g
37529s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37530D["\1"]=" \3"/p
37531s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37532d
37533:bsnl
37534s/["\\]/\\&/g
37535s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37536D["\1"]=" \3\\\\\\n"\\/p
37537t cont
37538s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37539t cont
37540d
37541:cont
37542n
37543s/.\{148\}/&'"$ac_delim"'/g
37544t clear
37545:clear
37546s/\\$//
37547t bsnlc
37548s/["\\]/\\&/g; s/^/"/; s/$/"/p
37549d
37550:bsnlc
37551s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37552b cont
37553' <confdefs.h | sed '
37554s/'"$ac_delim"'/"\\\
37555"/g' >>$CONFIG_STATUS || ac_write_fail=1
37556
37557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37558 for (key in D) D_is_set[key] = 1
37559 FS = ""
37560}
37561/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37562 line = \$ 0
37563 split(line, arg, " ")
37564 if (arg[1] == "#") {
37565 defundef = arg[2]
37566 mac1 = arg[3]
37567 } else {
37568 defundef = substr(arg[1], 2)
37569 mac1 = arg[2]
37570 }
37571 split(mac1, mac2, "(") #)
37572 macro = mac2[1]
37573 prefix = substr(line, 1, index(line, defundef) - 1)
37574 if (D_is_set[macro]) {
37575 # Preserve the white space surrounding the "#".
37576 print prefix "define", macro P[macro] D[macro]
37577 next
37578 } else {
37579 # Replace #undef with comments. This is necessary, for example,
37580 # in the case of _POSIX_SOURCE, which is predefined and required
37581 # on some systems where configure will not decide to define it.
37582 if (defundef == "undef") {
37583 print "/*", prefix defundef, macro, "*/"
37584 next
37585 }
37586 }
37587}
37588{ print }
37589_ACAWK
37590_ACEOF
37591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037592 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037593fi # test -n "$CONFIG_HEADERS"
37594
37595
37596eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37597shift
37598for ac_tag
37599do
37600 case $ac_tag in
37601 :[FHLC]) ac_mode=$ac_tag; continue;;
37602 esac
37603 case $ac_mode$ac_tag in
37604 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037605 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037606 :[FH]-) ac_tag=-:-;;
37607 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37608 esac
37609 ac_save_IFS=$IFS
37610 IFS=:
37611 set x $ac_tag
37612 IFS=$ac_save_IFS
37613 shift
37614 ac_file=$1
37615 shift
37616
37617 case $ac_mode in
37618 :L) ac_source=$1;;
37619 :[FH])
37620 ac_file_inputs=
37621 for ac_f
37622 do
37623 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037624 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037625 *) # Look for the file first in the build tree, then in the source tree
37626 # (if the path is not absolute). The absolute path cannot be DOS-style,
37627 # because $ac_f cannot contain `:'.
37628 test -f "$ac_f" ||
37629 case $ac_f in
37630 [\\/$]*) false;;
37631 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37632 esac ||
cristy98dddb52010-11-04 00:30:15 +000037633 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037634 esac
37635 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037636 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037637 done
37638
37639 # Let's still pretend it is `configure' which instantiates (i.e., don't
37640 # use $as_me), people would be surprised to read:
37641 # /* config.h. Generated by config.status. */
37642 configure_input='Generated from '`
37643 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37644 `' by configure.'
37645 if test x"$ac_file" != x-; then
37646 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037647 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037648$as_echo "$as_me: creating $ac_file" >&6;}
37649 fi
37650 # Neutralize special characters interpreted by sed in replacement strings.
37651 case $configure_input in #(
37652 *\&* | *\|* | *\\* )
37653 ac_sed_conf_input=`$as_echo "$configure_input" |
37654 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37655 *) ac_sed_conf_input=$configure_input;;
37656 esac
37657
37658 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037659 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037661 esac
37662 ;;
37663 esac
37664
37665 ac_dir=`$as_dirname -- "$ac_file" ||
37666$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37667 X"$ac_file" : 'X\(//\)[^/]' \| \
37668 X"$ac_file" : 'X\(//\)$' \| \
37669 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37670$as_echo X"$ac_file" |
37671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37672 s//\1/
37673 q
37674 }
37675 /^X\(\/\/\)[^/].*/{
37676 s//\1/
37677 q
37678 }
37679 /^X\(\/\/\)$/{
37680 s//\1/
37681 q
37682 }
37683 /^X\(\/\).*/{
37684 s//\1/
37685 q
37686 }
37687 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037688 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037689 ac_builddir=.
37690
37691case "$ac_dir" in
37692.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37693*)
37694 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37695 # A ".." for each directory in $ac_dir_suffix.
37696 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37697 case $ac_top_builddir_sub in
37698 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37699 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37700 esac ;;
37701esac
37702ac_abs_top_builddir=$ac_pwd
37703ac_abs_builddir=$ac_pwd$ac_dir_suffix
37704# for backward compatibility:
37705ac_top_builddir=$ac_top_build_prefix
37706
37707case $srcdir in
37708 .) # We are building in place.
37709 ac_srcdir=.
37710 ac_top_srcdir=$ac_top_builddir_sub
37711 ac_abs_top_srcdir=$ac_pwd ;;
37712 [\\/]* | ?:[\\/]* ) # Absolute name.
37713 ac_srcdir=$srcdir$ac_dir_suffix;
37714 ac_top_srcdir=$srcdir
37715 ac_abs_top_srcdir=$srcdir ;;
37716 *) # Relative name.
37717 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37718 ac_top_srcdir=$ac_top_build_prefix$srcdir
37719 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37720esac
37721ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37722
37723
37724 case $ac_mode in
37725 :F)
37726 #
37727 # CONFIG_FILE
37728 #
37729
37730 case $INSTALL in
37731 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37732 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37733 esac
cristy73bd4a52010-10-05 11:24:23 +000037734 ac_MKDIR_P=$MKDIR_P
37735 case $MKDIR_P in
37736 [\\/$]* | ?:[\\/]* ) ;;
37737 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37738 esac
cristy3ed852e2009-09-05 21:47:34 +000037739_ACEOF
37740
37741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37742# If the template does not know about datarootdir, expand it.
37743# FIXME: This hack should be removed a few years after 2.60.
37744ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037745ac_sed_dataroot='
37746/datarootdir/ {
37747 p
37748 q
37749}
37750/@datadir@/p
37751/@docdir@/p
37752/@infodir@/p
37753/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037754/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037755case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37756*datarootdir*) ac_datarootdir_seen=yes;;
37757*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037759$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37760_ACEOF
37761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37762 ac_datarootdir_hack='
37763 s&@datadir@&$datadir&g
37764 s&@docdir@&$docdir&g
37765 s&@infodir@&$infodir&g
37766 s&@localedir@&$localedir&g
37767 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037768 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037769esac
37770_ACEOF
37771
37772# Neutralize VPATH when `$srcdir' = `.'.
37773# Shell code in configure.ac might set extrasub.
37774# FIXME: do we really want to maintain this feature?
37775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37776ac_sed_extra="$ac_vpsub
37777$extrasub
37778_ACEOF
37779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37780:t
37781/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37782s|@configure_input@|$ac_sed_conf_input|;t t
37783s&@top_builddir@&$ac_top_builddir_sub&;t t
37784s&@top_build_prefix@&$ac_top_build_prefix&;t t
37785s&@srcdir@&$ac_srcdir&;t t
37786s&@abs_srcdir@&$ac_abs_srcdir&;t t
37787s&@top_srcdir@&$ac_top_srcdir&;t t
37788s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37789s&@builddir@&$ac_builddir&;t t
37790s&@abs_builddir@&$ac_abs_builddir&;t t
37791s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37792s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037793s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037794$ac_datarootdir_hack
37795"
cristyda16f162011-02-19 23:52:17 +000037796eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37797 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037798
37799test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037800 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37801 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37802 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037804which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037805$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037806which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037807
cristyda16f162011-02-19 23:52:17 +000037808 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037809 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037810 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37811 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037812 esac \
cristy98dddb52010-11-04 00:30:15 +000037813 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037814 ;;
37815 :H)
37816 #
37817 # CONFIG_HEADER
37818 #
37819 if test x"$ac_file" != x-; then
37820 {
37821 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037822 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37823 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037824 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037825 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037826 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037827$as_echo "$as_me: $ac_file is unchanged" >&6;}
37828 else
37829 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037830 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037832 fi
37833 else
37834 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037835 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037836 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037837 fi
cristy73bd4a52010-10-05 11:24:23 +000037838# Compute "$ac_file"'s index in $config_headers.
37839_am_arg="$ac_file"
37840_am_stamp_count=1
37841for _am_header in $config_headers :; do
37842 case $_am_header in
37843 $_am_arg | $_am_arg:* )
37844 break ;;
37845 * )
37846 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37847 esac
37848done
37849echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37850$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37851 X"$_am_arg" : 'X\(//\)[^/]' \| \
37852 X"$_am_arg" : 'X\(//\)$' \| \
37853 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37854$as_echo X"$_am_arg" |
37855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37856 s//\1/
37857 q
37858 }
37859 /^X\(\/\/\)[^/].*/{
37860 s//\1/
37861 q
37862 }
37863 /^X\(\/\/\)$/{
37864 s//\1/
37865 q
37866 }
37867 /^X\(\/\).*/{
37868 s//\1/
37869 q
37870 }
37871 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037872 ;;
37873
cristy8b350f62009-11-15 23:12:43 +000037874 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037875$as_echo "$as_me: executing $ac_file commands" >&6;}
37876 ;;
37877 esac
37878
37879
37880 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037881 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037882ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37883ac_prefix_conf_PKG=`echo MagickCore`
37884ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37885ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37886ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37887if test ".$ac_prefix_conf_INP" = "."; then
37888 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37889 case "$ac_file" in
37890 *.h) ac_prefix_conf_INP=$ac_file ;;
37891 *)
37892 esac
37893 test ".$ac_prefix_conf_INP" != "." && break
37894 done
37895fi
37896if test ".$ac_prefix_conf_INP" = "."; then
37897 case "$ac_prefix_conf_OUT" in
37898 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37899 ;;
37900 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37901 ;;
37902 *) ac_prefix_conf_INP=config.h
37903 ;;
37904 esac
37905fi
37906if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037907 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037908else
37909 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37910 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37911 fi fi
37912 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37913$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37914 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037915 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37916 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37917 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37918 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37919 $as_echo "#endif/" >> conftest.prefix
37920 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37921 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37922 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037923 # now executing _script on _DEF input to create _OUT output file
37924 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37925 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37926 echo ' ' >>$tmp/pconfig.h
37927 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37928
37929 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37930 echo ' ' >>$tmp/pconfig.h
37931 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37932 echo "#endif" >>$tmp/pconfig.h
37933 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37934 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37935$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37936 else
37937 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37938$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37939 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37940 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37941 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37942$as_echo X"$ac_prefix_conf_OUT" |
37943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37944 s//\1/
37945 q
37946 }
37947 /^X\(\/\/\)[^/].*/{
37948 s//\1/
37949 q
37950 }
37951 /^X\(\/\/\)$/{
37952 s//\1/
37953 q
37954 }
37955 /^X\(\/\).*/{
37956 s//\1/
37957 q
37958 }
37959 s/.*/./; q'`
37960 as_dir="$ac_dir"; as_fn_mkdir_p
37961 rm -f "$ac_prefix_conf_OUT"
37962 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37963 fi
37964 cp conftest.prefix _configs.sed
37965 else
cristy98dddb52010-11-04 00:30:15 +000037966 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 +000037967 fi
37968 rm -f conftest.*
37969fi
37970 ;;
37971 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37972 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37973 # are listed without --file. Let's play safe and only enable the eval
37974 # if we detect the quoting.
37975 case $CONFIG_FILES in
37976 *\'*) eval set x "$CONFIG_FILES" ;;
37977 *) set x $CONFIG_FILES ;;
37978 esac
37979 shift
37980 for mf
37981 do
37982 # Strip MF so we end up with the name of the file.
37983 mf=`echo "$mf" | sed -e 's/:.*$//'`
37984 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037985 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037986 # some people rename them; so instead we look at the file content.
37987 # Grep'ing the first line is not enough: some people post-process
37988 # each Makefile.in and add a new line on top of each file to say so.
37989 # Grep'ing the whole file is not good either: AIX grep has a line
37990 # limit of 2048, but all sed's we know have understand at least 4000.
37991 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37992 dirpart=`$as_dirname -- "$mf" ||
37993$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37994 X"$mf" : 'X\(//\)[^/]' \| \
37995 X"$mf" : 'X\(//\)$' \| \
37996 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37997$as_echo X"$mf" |
37998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37999 s//\1/
38000 q
38001 }
38002 /^X\(\/\/\)[^/].*/{
38003 s//\1/
38004 q
38005 }
38006 /^X\(\/\/\)$/{
38007 s//\1/
38008 q
38009 }
38010 /^X\(\/\).*/{
38011 s//\1/
38012 q
38013 }
38014 s/.*/./; q'`
38015 else
38016 continue
38017 fi
38018 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038019 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038020 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38021 test -z "$DEPDIR" && continue
38022 am__include=`sed -n 's/^am__include = //p' < "$mf"`
38023 test -z "am__include" && continue
38024 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038025 # Find all dependency output files, they are included files with
38026 # $(DEPDIR) in their names. We invoke sed twice because it is the
38027 # simplest approach to changing $(DEPDIR) to its actual value in the
38028 # expansion.
38029 for file in `sed -n "
38030 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038031 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038032 # Make sure the directory exists.
38033 test -f "$dirpart/$file" && continue
38034 fdir=`$as_dirname -- "$file" ||
38035$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38036 X"$file" : 'X\(//\)[^/]' \| \
38037 X"$file" : 'X\(//\)$' \| \
38038 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38039$as_echo X"$file" |
38040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38041 s//\1/
38042 q
38043 }
38044 /^X\(\/\/\)[^/].*/{
38045 s//\1/
38046 q
38047 }
38048 /^X\(\/\/\)$/{
38049 s//\1/
38050 q
38051 }
38052 /^X\(\/\).*/{
38053 s//\1/
38054 q
38055 }
38056 s/.*/./; q'`
38057 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38058 # echo "creating $dirpart/$file"
38059 echo '# dummy' > "$dirpart/$file"
38060 done
38061 done
38062}
38063 ;;
38064 "libtool":C)
38065
38066 # See if we are running on zsh, and set the options which allow our
38067 # commands through without removal of \ escapes.
38068 if test -n "${ZSH_VERSION+set}" ; then
38069 setopt NO_GLOB_SUBST
38070 fi
38071
38072 cfgfile="${ofile}T"
38073 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38074 $RM "$cfgfile"
38075
38076 cat <<_LT_EOF >> "$cfgfile"
38077#! $SHELL
38078
38079# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38080# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38081# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38082# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38083#
38084# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038085# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38086# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038087# Written by Gordon Matzigkeit, 1996
38088#
38089# This file is part of GNU Libtool.
38090#
38091# GNU Libtool is free software; you can redistribute it and/or
38092# modify it under the terms of the GNU General Public License as
38093# published by the Free Software Foundation; either version 2 of
38094# the License, or (at your option) any later version.
38095#
38096# As a special exception to the GNU General Public License,
38097# if you distribute this file as part of a program or library that
38098# is built using GNU Libtool, you may include this file under the
38099# same distribution terms that you use for the rest of that program.
38100#
38101# GNU Libtool is distributed in the hope that it will be useful,
38102# but WITHOUT ANY WARRANTY; without even the implied warranty of
38103# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38104# GNU General Public License for more details.
38105#
38106# You should have received a copy of the GNU General Public License
38107# along with GNU Libtool; see the file COPYING. If not, a copy
38108# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38109# obtained by writing to the Free Software Foundation, Inc.,
38110# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38111
38112
38113# The names of the tagged configurations supported by this script.
38114available_tags="CXX "
38115
38116# ### BEGIN LIBTOOL CONFIG
38117
38118# A sed program that does not truncate output.
38119SED=$lt_SED
38120
38121# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38122Xsed="\$SED -e 1s/^X//"
38123
38124# A grep program that handles long lines.
38125GREP=$lt_GREP
38126
38127# An ERE matcher.
38128EGREP=$lt_EGREP
38129
38130# A literal string matcher.
38131FGREP=$lt_FGREP
38132
cristy0c60a692010-11-04 01:09:47 +000038133# Shell to use when invoking shell scripts.
38134SHELL=$lt_SHELL
38135
38136# An echo program that protects backslashes.
38137ECHO=$lt_ECHO
38138
cristy73bd4a52010-10-05 11:24:23 +000038139# Which release of libtool.m4 was used?
38140macro_version=$macro_version
38141macro_revision=$macro_revision
38142
38143# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038144AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038145
38146# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038147DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038148
38149# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038150OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038151
38152# Whether or not to build shared libraries.
38153build_libtool_libs=$enable_shared
38154
38155# Whether or not to build static libraries.
38156build_old_libs=$enable_static
38157
38158# What type of objects to build.
38159pic_mode=$pic_mode
38160
38161# Whether or not to optimize for fast installation.
38162fast_install=$enable_fast_install
38163
cristy99bd5232011-12-07 14:38:20 +000038164# The PATH separator for the build system.
38165PATH_SEPARATOR=$lt_PATH_SEPARATOR
38166
cristy73bd4a52010-10-05 11:24:23 +000038167# The host system.
38168host_alias=$host_alias
38169host=$host
38170host_os=$host_os
38171
38172# The build system.
38173build_alias=$build_alias
38174build=$build
38175build_os=$build_os
38176
38177# A BSD- or MS-compatible name lister.
38178NM=$lt_NM
38179
38180# Whether we need soft or hard links.
38181LN_S=$lt_LN_S
38182
38183# What is the maximum length of a command?
38184max_cmd_len=$max_cmd_len
38185
38186# Object file suffix (normally "o").
38187objext=$ac_objext
38188
38189# Executable file suffix (normally "").
38190exeext=$exeext
38191
38192# whether the shell understands "unset".
38193lt_unset=$lt_unset
38194
38195# turn spaces into newlines.
38196SP2NL=$lt_lt_SP2NL
38197
38198# turn newlines into spaces.
38199NL2SP=$lt_lt_NL2SP
38200
cristyda16f162011-02-19 23:52:17 +000038201# convert \$build file names to \$host format.
38202to_host_file_cmd=$lt_cv_to_host_file_cmd
38203
38204# convert \$build files to toolchain format.
38205to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38206
cristy73bd4a52010-10-05 11:24:23 +000038207# Method to check whether dependent libraries are shared objects.
38208deplibs_check_method=$lt_deplibs_check_method
38209
cristyda16f162011-02-19 23:52:17 +000038210# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038211file_magic_cmd=$lt_file_magic_cmd
38212
cristyda16f162011-02-19 23:52:17 +000038213# How to find potential files when deplibs_check_method = "file_magic".
38214file_magic_glob=$lt_file_magic_glob
38215
38216# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38217want_nocaseglob=$lt_want_nocaseglob
38218
38219# Command to associate shared and link libraries.
38220sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38221
cristy73bd4a52010-10-05 11:24:23 +000038222# The archiver.
38223AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038224
38225# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038226AR_FLAGS=$lt_AR_FLAGS
38227
cristyda16f162011-02-19 23:52:17 +000038228# How to feed a file listing to the archiver.
38229archiver_list_spec=$lt_archiver_list_spec
38230
cristy73bd4a52010-10-05 11:24:23 +000038231# A symbol stripping program.
38232STRIP=$lt_STRIP
38233
38234# Commands used to install an old-style archive.
38235RANLIB=$lt_RANLIB
38236old_postinstall_cmds=$lt_old_postinstall_cmds
38237old_postuninstall_cmds=$lt_old_postuninstall_cmds
38238
cristy0c60a692010-11-04 01:09:47 +000038239# Whether to use a lock for old archive extraction.
38240lock_old_archive_extraction=$lock_old_archive_extraction
38241
cristy73bd4a52010-10-05 11:24:23 +000038242# A C compiler.
38243LTCC=$lt_CC
38244
38245# LTCC compiler flags.
38246LTCFLAGS=$lt_CFLAGS
38247
38248# Take the output of nm and produce a listing of raw symbols and C names.
38249global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38250
38251# Transform the output of nm in a proper C declaration.
38252global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38253
38254# Transform the output of nm in a C name address pair.
38255global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38256
38257# Transform the output of nm in a C name address pair when lib prefix is needed.
38258global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38259
cristyda16f162011-02-19 23:52:17 +000038260# Specify filename containing input files for \$NM.
38261nm_file_list_spec=$lt_nm_file_list_spec
38262
38263# The root where to search for dependent libraries,and in which our libraries should be installed.
38264lt_sysroot=$lt_sysroot
38265
cristy73bd4a52010-10-05 11:24:23 +000038266# The name of the directory that contains temporary libtool files.
38267objdir=$objdir
38268
cristy73bd4a52010-10-05 11:24:23 +000038269# Used to examine libraries when file_magic_cmd begins with "file".
38270MAGIC_CMD=$MAGIC_CMD
38271
38272# Must we lock files when doing compilation?
38273need_locks=$lt_need_locks
38274
cristyda16f162011-02-19 23:52:17 +000038275# Manifest tool.
38276MANIFEST_TOOL=$lt_MANIFEST_TOOL
38277
cristy73bd4a52010-10-05 11:24:23 +000038278# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38279DSYMUTIL=$lt_DSYMUTIL
38280
38281# Tool to change global to local symbols on Mac OS X.
38282NMEDIT=$lt_NMEDIT
38283
38284# Tool to manipulate fat objects and archives on Mac OS X.
38285LIPO=$lt_LIPO
38286
38287# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38288OTOOL=$lt_OTOOL
38289
38290# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38291OTOOL64=$lt_OTOOL64
38292
38293# Old archive suffix (normally "a").
38294libext=$libext
38295
38296# Shared library suffix (normally ".so").
38297shrext_cmds=$lt_shrext_cmds
38298
38299# The commands to extract the exported symbol list from a shared archive.
38300extract_expsyms_cmds=$lt_extract_expsyms_cmds
38301
38302# Variables whose values should be saved in libtool wrapper scripts and
38303# restored at link time.
38304variables_saved_for_relink=$lt_variables_saved_for_relink
38305
38306# Do we need the "lib" prefix for modules?
38307need_lib_prefix=$need_lib_prefix
38308
38309# Do we need a version for libraries?
38310need_version=$need_version
38311
38312# Library versioning type.
38313version_type=$version_type
38314
38315# Shared library runtime path variable.
38316runpath_var=$runpath_var
38317
38318# Shared library path variable.
38319shlibpath_var=$shlibpath_var
38320
38321# Is shlibpath searched before the hard-coded library search path?
38322shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38323
38324# Format of library name prefix.
38325libname_spec=$lt_libname_spec
38326
38327# List of archive names. First name is the real one, the rest are links.
38328# The last name is the one that the linker finds with -lNAME
38329library_names_spec=$lt_library_names_spec
38330
38331# The coded name of the library, if different from the real name.
38332soname_spec=$lt_soname_spec
38333
cristy0c60a692010-11-04 01:09:47 +000038334# Permission mode override for installation of shared libraries.
38335install_override_mode=$lt_install_override_mode
38336
cristy73bd4a52010-10-05 11:24:23 +000038337# Command to use after installation of a shared archive.
38338postinstall_cmds=$lt_postinstall_cmds
38339
38340# Command to use after uninstallation of a shared archive.
38341postuninstall_cmds=$lt_postuninstall_cmds
38342
38343# Commands used to finish a libtool library installation in a directory.
38344finish_cmds=$lt_finish_cmds
38345
38346# As "finish_cmds", except a single script fragment to be evaled but
38347# not shown.
38348finish_eval=$lt_finish_eval
38349
38350# Whether we should hardcode library paths into libraries.
38351hardcode_into_libs=$hardcode_into_libs
38352
38353# Compile-time system search path for libraries.
38354sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38355
38356# Run-time system search path for libraries.
38357sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38358
38359# Whether dlopen is supported.
38360dlopen_support=$enable_dlopen
38361
38362# Whether dlopen of programs is supported.
38363dlopen_self=$enable_dlopen_self
38364
38365# Whether dlopen of statically linked programs is supported.
38366dlopen_self_static=$enable_dlopen_self_static
38367
38368# Commands to strip libraries.
38369old_striplib=$lt_old_striplib
38370striplib=$lt_striplib
38371
38372
38373# The linker used to build libraries.
38374LD=$lt_LD
38375
cristy0c60a692010-11-04 01:09:47 +000038376# How to create reloadable object files.
38377reload_flag=$lt_reload_flag
38378reload_cmds=$lt_reload_cmds
38379
cristy73bd4a52010-10-05 11:24:23 +000038380# Commands used to build an old-style archive.
38381old_archive_cmds=$lt_old_archive_cmds
38382
38383# A language specific compiler.
38384CC=$lt_compiler
38385
38386# Is the compiler the GNU compiler?
38387with_gcc=$GCC
38388
38389# Compiler flag to turn off builtin functions.
38390no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38391
cristy73bd4a52010-10-05 11:24:23 +000038392# Additional compiler flags for building library objects.
38393pic_flag=$lt_lt_prog_compiler_pic
38394
cristyda16f162011-02-19 23:52:17 +000038395# How to pass a linker flag through the compiler.
38396wl=$lt_lt_prog_compiler_wl
38397
cristy73bd4a52010-10-05 11:24:23 +000038398# Compiler flag to prevent dynamic linking.
38399link_static_flag=$lt_lt_prog_compiler_static
38400
38401# Does compiler simultaneously support -c and -o options?
38402compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38403
38404# Whether or not to add -lc for building shared libraries.
38405build_libtool_need_lc=$archive_cmds_need_lc
38406
38407# Whether or not to disallow shared libs when runtime libs are static.
38408allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38409
38410# Compiler flag to allow reflexive dlopens.
38411export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38412
38413# Compiler flag to generate shared objects directly from archives.
38414whole_archive_flag_spec=$lt_whole_archive_flag_spec
38415
38416# Whether the compiler copes with passing no objects directly.
38417compiler_needs_object=$lt_compiler_needs_object
38418
38419# Create an old-style archive from a shared archive.
38420old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38421
38422# Create a temporary old-style archive to link instead of a shared archive.
38423old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38424
38425# Commands used to build a shared archive.
38426archive_cmds=$lt_archive_cmds
38427archive_expsym_cmds=$lt_archive_expsym_cmds
38428
38429# Commands used to build a loadable module if different from building
38430# a shared archive.
38431module_cmds=$lt_module_cmds
38432module_expsym_cmds=$lt_module_expsym_cmds
38433
38434# Whether we are building with GNU ld or not.
38435with_gnu_ld=$lt_with_gnu_ld
38436
38437# Flag that allows shared libraries with undefined symbols to be built.
38438allow_undefined_flag=$lt_allow_undefined_flag
38439
38440# Flag that enforces no undefined symbols.
38441no_undefined_flag=$lt_no_undefined_flag
38442
38443# Flag to hardcode \$libdir into a binary during linking.
38444# This must work even if \$libdir does not exist
38445hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38446
cristy73bd4a52010-10-05 11:24:23 +000038447# Whether we need a single "-rpath" flag with a separated argument.
38448hardcode_libdir_separator=$lt_hardcode_libdir_separator
38449
38450# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38451# DIR into the resulting binary.
38452hardcode_direct=$hardcode_direct
38453
38454# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38455# DIR into the resulting binary and the resulting library dependency is
38456# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38457# library is relocated.
38458hardcode_direct_absolute=$hardcode_direct_absolute
38459
38460# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38461# into the resulting binary.
38462hardcode_minus_L=$hardcode_minus_L
38463
38464# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38465# into the resulting binary.
38466hardcode_shlibpath_var=$hardcode_shlibpath_var
38467
38468# Set to "yes" if building a shared library automatically hardcodes DIR
38469# into the library and all subsequent libraries and executables linked
38470# against it.
38471hardcode_automatic=$hardcode_automatic
38472
38473# Set to yes if linker adds runtime paths of dependent libraries
38474# to runtime path list.
38475inherit_rpath=$inherit_rpath
38476
38477# Whether libtool must link a program against all its dependency libraries.
38478link_all_deplibs=$link_all_deplibs
38479
cristy73bd4a52010-10-05 11:24:23 +000038480# Set to "yes" if exported symbols are required.
38481always_export_symbols=$always_export_symbols
38482
38483# The commands to list exported symbols.
38484export_symbols_cmds=$lt_export_symbols_cmds
38485
38486# Symbols that should not be listed in the preloaded symbols.
38487exclude_expsyms=$lt_exclude_expsyms
38488
38489# Symbols that must always be exported.
38490include_expsyms=$lt_include_expsyms
38491
38492# Commands necessary for linking programs (against libraries) with templates.
38493prelink_cmds=$lt_prelink_cmds
38494
cristyda16f162011-02-19 23:52:17 +000038495# Commands necessary for finishing linking programs.
38496postlink_cmds=$lt_postlink_cmds
38497
cristy73bd4a52010-10-05 11:24:23 +000038498# Specify filename containing input files.
38499file_list_spec=$lt_file_list_spec
38500
38501# How to hardcode a shared library path into an executable.
38502hardcode_action=$hardcode_action
38503
38504# The directories searched by this compiler when creating a shared library.
38505compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38506
38507# Dependencies to place before and after the objects being linked to
38508# create a shared library.
38509predep_objects=$lt_predep_objects
38510postdep_objects=$lt_postdep_objects
38511predeps=$lt_predeps
38512postdeps=$lt_postdeps
38513
38514# The library search path used internally by the compiler when linking
38515# a shared library.
38516compiler_lib_search_path=$lt_compiler_lib_search_path
38517
38518# ### END LIBTOOL CONFIG
38519
38520_LT_EOF
38521
38522 case $host_os in
38523 aix3*)
38524 cat <<\_LT_EOF >> "$cfgfile"
38525# AIX sometimes has problems with the GCC collect2 program. For some
38526# reason, if we set the COLLECT_NAMES environment variable, the problems
38527# vanish in a puff of smoke.
38528if test "X${COLLECT_NAMES+set}" != Xset; then
38529 COLLECT_NAMES=
38530 export COLLECT_NAMES
38531fi
38532_LT_EOF
38533 ;;
38534 esac
38535
38536
38537ltmain="$ac_aux_dir/ltmain.sh"
38538
38539
38540 # We use sed instead of cat because bash on DJGPP gets confused if
38541 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38542 # text mode, it properly converts lines to CR/LF. This bash problem
38543 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038544 sed '$q' "$ltmain" >> "$cfgfile" \
38545 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038546
cristyda16f162011-02-19 23:52:17 +000038547 if test x"$xsi_shell" = xyes; then
38548 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38549func_dirname ()\
38550{\
38551\ case ${1} in\
38552\ */*) func_dirname_result="${1%/*}${2}" ;;\
38553\ * ) func_dirname_result="${3}" ;;\
38554\ esac\
38555} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38556 && mv -f "$cfgfile.tmp" "$cfgfile" \
38557 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38558test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038559
38560
cristyda16f162011-02-19 23:52:17 +000038561 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38562func_basename ()\
38563{\
38564\ func_basename_result="${1##*/}"\
38565} # Extended-shell func_basename 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=:
cristy73bd4a52010-10-05 11:24:23 +000038569
38570
cristyda16f162011-02-19 23:52:17 +000038571 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38572func_dirname_and_basename ()\
38573{\
38574\ case ${1} in\
38575\ */*) func_dirname_result="${1%/*}${2}" ;;\
38576\ * ) func_dirname_result="${3}" ;;\
38577\ esac\
38578\ func_basename_result="${1##*/}"\
38579} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38580 && mv -f "$cfgfile.tmp" "$cfgfile" \
38581 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38582test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038583
cristyda16f162011-02-19 23:52:17 +000038584
38585 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38586func_stripname ()\
38587{\
38588\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38589\ # positional parameters, so assign one to ordinary parameter first.\
38590\ func_stripname_result=${3}\
38591\ func_stripname_result=${func_stripname_result#"${1}"}\
38592\ func_stripname_result=${func_stripname_result%"${2}"}\
38593} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38594 && mv -f "$cfgfile.tmp" "$cfgfile" \
38595 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38596test 0 -eq $? || _lt_function_replace_fail=:
38597
38598
38599 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38600func_split_long_opt ()\
38601{\
38602\ func_split_long_opt_name=${1%%=*}\
38603\ func_split_long_opt_arg=${1#*=}\
38604} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38605 && mv -f "$cfgfile.tmp" "$cfgfile" \
38606 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38607test 0 -eq $? || _lt_function_replace_fail=:
38608
38609
38610 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38611func_split_short_opt ()\
38612{\
38613\ func_split_short_opt_arg=${1#??}\
38614\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38615} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38616 && mv -f "$cfgfile.tmp" "$cfgfile" \
38617 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38618test 0 -eq $? || _lt_function_replace_fail=:
38619
38620
38621 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38622func_lo2o ()\
38623{\
38624\ case ${1} in\
38625\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38626\ *) func_lo2o_result=${1} ;;\
38627\ esac\
38628} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38629 && mv -f "$cfgfile.tmp" "$cfgfile" \
38630 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38631test 0 -eq $? || _lt_function_replace_fail=:
38632
38633
38634 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38635func_xform ()\
38636{\
38637 func_xform_result=${1%.*}.lo\
38638} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38639 && mv -f "$cfgfile.tmp" "$cfgfile" \
38640 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38641test 0 -eq $? || _lt_function_replace_fail=:
38642
38643
38644 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38645func_arith ()\
38646{\
38647 func_arith_result=$(( $* ))\
38648} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38649 && mv -f "$cfgfile.tmp" "$cfgfile" \
38650 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38651test 0 -eq $? || _lt_function_replace_fail=:
38652
38653
38654 sed -e '/^func_len ()$/,/^} # func_len /c\
38655func_len ()\
38656{\
38657 func_len_result=${#1}\
38658} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38659 && mv -f "$cfgfile.tmp" "$cfgfile" \
38660 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38661test 0 -eq $? || _lt_function_replace_fail=:
38662
38663fi
38664
38665if test x"$lt_shell_append" = xyes; then
38666 sed -e '/^func_append ()$/,/^} # func_append /c\
38667func_append ()\
38668{\
38669 eval "${1}+=\\${2}"\
38670} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38671 && mv -f "$cfgfile.tmp" "$cfgfile" \
38672 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38673test 0 -eq $? || _lt_function_replace_fail=:
38674
38675
38676 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38677func_append_quoted ()\
38678{\
38679\ func_quote_for_eval "${2}"\
38680\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38681} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38682 && mv -f "$cfgfile.tmp" "$cfgfile" \
38683 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38684test 0 -eq $? || _lt_function_replace_fail=:
38685
38686
38687 # Save a `func_append' function call where possible by direct use of '+='
38688 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38689 && mv -f "$cfgfile.tmp" "$cfgfile" \
38690 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38691 test 0 -eq $? || _lt_function_replace_fail=:
38692else
38693 # Save a `func_append' function call even when '+=' is not available
38694 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38695 && mv -f "$cfgfile.tmp" "$cfgfile" \
38696 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38697 test 0 -eq $? || _lt_function_replace_fail=:
38698fi
38699
38700if test x"$_lt_function_replace_fail" = x":"; then
38701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38702$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38703fi
38704
38705
38706 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038707 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38708 chmod +x "$ofile"
38709
38710
38711 cat <<_LT_EOF >> "$ofile"
38712
38713# ### BEGIN LIBTOOL TAG CONFIG: CXX
38714
38715# The linker used to build libraries.
38716LD=$lt_LD_CXX
38717
cristy0c60a692010-11-04 01:09:47 +000038718# How to create reloadable object files.
38719reload_flag=$lt_reload_flag_CXX
38720reload_cmds=$lt_reload_cmds_CXX
38721
cristy73bd4a52010-10-05 11:24:23 +000038722# Commands used to build an old-style archive.
38723old_archive_cmds=$lt_old_archive_cmds_CXX
38724
38725# A language specific compiler.
38726CC=$lt_compiler_CXX
38727
38728# Is the compiler the GNU compiler?
38729with_gcc=$GCC_CXX
38730
38731# Compiler flag to turn off builtin functions.
38732no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38733
cristy73bd4a52010-10-05 11:24:23 +000038734# Additional compiler flags for building library objects.
38735pic_flag=$lt_lt_prog_compiler_pic_CXX
38736
cristyda16f162011-02-19 23:52:17 +000038737# How to pass a linker flag through the compiler.
38738wl=$lt_lt_prog_compiler_wl_CXX
38739
cristy73bd4a52010-10-05 11:24:23 +000038740# Compiler flag to prevent dynamic linking.
38741link_static_flag=$lt_lt_prog_compiler_static_CXX
38742
38743# Does compiler simultaneously support -c and -o options?
38744compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38745
38746# Whether or not to add -lc for building shared libraries.
38747build_libtool_need_lc=$archive_cmds_need_lc_CXX
38748
38749# Whether or not to disallow shared libs when runtime libs are static.
38750allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38751
38752# Compiler flag to allow reflexive dlopens.
38753export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38754
38755# Compiler flag to generate shared objects directly from archives.
38756whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38757
38758# Whether the compiler copes with passing no objects directly.
38759compiler_needs_object=$lt_compiler_needs_object_CXX
38760
38761# Create an old-style archive from a shared archive.
38762old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38763
38764# Create a temporary old-style archive to link instead of a shared archive.
38765old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38766
38767# Commands used to build a shared archive.
38768archive_cmds=$lt_archive_cmds_CXX
38769archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38770
38771# Commands used to build a loadable module if different from building
38772# a shared archive.
38773module_cmds=$lt_module_cmds_CXX
38774module_expsym_cmds=$lt_module_expsym_cmds_CXX
38775
38776# Whether we are building with GNU ld or not.
38777with_gnu_ld=$lt_with_gnu_ld_CXX
38778
38779# Flag that allows shared libraries with undefined symbols to be built.
38780allow_undefined_flag=$lt_allow_undefined_flag_CXX
38781
38782# Flag that enforces no undefined symbols.
38783no_undefined_flag=$lt_no_undefined_flag_CXX
38784
38785# Flag to hardcode \$libdir into a binary during linking.
38786# This must work even if \$libdir does not exist
38787hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38788
cristy73bd4a52010-10-05 11:24:23 +000038789# Whether we need a single "-rpath" flag with a separated argument.
38790hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38791
38792# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38793# DIR into the resulting binary.
38794hardcode_direct=$hardcode_direct_CXX
38795
38796# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38797# DIR into the resulting binary and the resulting library dependency is
38798# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38799# library is relocated.
38800hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38801
38802# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38803# into the resulting binary.
38804hardcode_minus_L=$hardcode_minus_L_CXX
38805
38806# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38807# into the resulting binary.
38808hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38809
38810# Set to "yes" if building a shared library automatically hardcodes DIR
38811# into the library and all subsequent libraries and executables linked
38812# against it.
38813hardcode_automatic=$hardcode_automatic_CXX
38814
38815# Set to yes if linker adds runtime paths of dependent libraries
38816# to runtime path list.
38817inherit_rpath=$inherit_rpath_CXX
38818
38819# Whether libtool must link a program against all its dependency libraries.
38820link_all_deplibs=$link_all_deplibs_CXX
38821
cristy73bd4a52010-10-05 11:24:23 +000038822# Set to "yes" if exported symbols are required.
38823always_export_symbols=$always_export_symbols_CXX
38824
38825# The commands to list exported symbols.
38826export_symbols_cmds=$lt_export_symbols_cmds_CXX
38827
38828# Symbols that should not be listed in the preloaded symbols.
38829exclude_expsyms=$lt_exclude_expsyms_CXX
38830
38831# Symbols that must always be exported.
38832include_expsyms=$lt_include_expsyms_CXX
38833
38834# Commands necessary for linking programs (against libraries) with templates.
38835prelink_cmds=$lt_prelink_cmds_CXX
38836
cristyda16f162011-02-19 23:52:17 +000038837# Commands necessary for finishing linking programs.
38838postlink_cmds=$lt_postlink_cmds_CXX
38839
cristy73bd4a52010-10-05 11:24:23 +000038840# Specify filename containing input files.
38841file_list_spec=$lt_file_list_spec_CXX
38842
38843# How to hardcode a shared library path into an executable.
38844hardcode_action=$hardcode_action_CXX
38845
38846# The directories searched by this compiler when creating a shared library.
38847compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38848
38849# Dependencies to place before and after the objects being linked to
38850# create a shared library.
38851predep_objects=$lt_predep_objects_CXX
38852postdep_objects=$lt_postdep_objects_CXX
38853predeps=$lt_predeps_CXX
38854postdeps=$lt_postdeps_CXX
38855
38856# The library search path used internally by the compiler when linking
38857# a shared library.
38858compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38859
38860# ### END LIBTOOL TAG CONFIG: CXX
38861_LT_EOF
38862
38863 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038864 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038865 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038866 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038867 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38868 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38869
38870 esac
38871done # for ac_tag
38872
38873
cristy8b350f62009-11-15 23:12:43 +000038874as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038875_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038876ac_clean_files=$ac_clean_files_save
38877
38878test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038879 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038880
38881
38882# configure is writing to config.log, and then calls config.status.
38883# config.status does its own redirection, appending to config.log.
38884# Unfortunately, on DOS this fails, as config.log is still kept open
38885# by configure, so config.status won't be able to write to it; its
38886# output is simply discarded. So we exec the FD to /dev/null,
38887# effectively closing config.log, so it can be properly (re)opened and
38888# appended to by config.status. When coming back to configure, we
38889# need to make the FD available again.
38890if test "$no_create" != yes; then
38891 ac_cs_success=:
38892 ac_config_status_args=
38893 test "$silent" = yes &&
38894 ac_config_status_args="$ac_config_status_args --quiet"
38895 exec 5>/dev/null
38896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38897 exec 5>>config.log
38898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38899 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038900 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038901fi
38902if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038904$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38905fi
38906
38907
38908rm -f magick-version
38909
cristy430a7312010-01-21 20:44:04 +000038910result_dejavu_font_dir='none'
38911if test "${dejavu_font_dir}x" != 'x'; then
38912 result_dejavu_font_dir=$dejavu_font_dir
38913fi
38914
cristy3ed852e2009-09-05 21:47:34 +000038915result_ghostscript_font_dir='none'
38916if test "${ghostscript_font_dir}x" != 'x'; then
38917 result_ghostscript_font_dir=$ghostscript_font_dir
38918fi
38919
38920result_windows_font_dir='none'
38921if test "${windows_font_dir}x" != 'x'; then
38922 result_windows_font_dir=${windows_font_dir}
38923fi
38924
cristy09b53e12011-10-14 12:47:22 +000038925{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038926ImageMagick is configured as follows. Please verify that this configuration
38927matches your expectations.
38928
38929Host system type: $host
38930Build system type: $build
38931
38932 Option Value
38933-------------------------------------------------------------------------------
38934Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38935Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038936Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038937GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38938Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38939High Dynamic Range Imagery
38940 --enable-hdri=$enable_hdri $enable_hdri
38941
38942Delegate Configuration:
38943BZLIB --with-bzlib=$with_bzlib $have_bzlib
38944Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038945Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038946DJVU --with-djvu=$with_djvu $have_djvu
38947DPS --with-dps=$with_dps $have_dps
38948FFTW --with-fftw=$with_fftw $have_fftw
38949FlashPIX --with-fpx=$with_fpx $have_fpx
38950FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38951FreeType --with-freetype=$with_freetype $have_freetype
38952GhostPCL None $PCLDelegate ($PCLVersion)
38953GhostXPS None $XPSDelegate ($XPSVersion)
38954Ghostscript None $PSDelegate ($GSVersion)
38955Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38956Ghostscript lib --with-gslib=$with_gslib $have_gslib
38957Graphviz --with-gvc=$with_gvc $have_gvc
38958JBIG --with-jbig=$with_jbig $have_jbig
38959JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38960JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038961LCMS v1 --with-lcms=$with_lcms $have_lcms
38962LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038963LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038964LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038965Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38966OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038967PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038968PERL --with-perl=$with_perl $have_perl
38969PNG --with-png=$with_png $have_png
38970RSVG --with-rsvg=$with_rsvg $have_rsvg
38971TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038972WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038973Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38974WMF --with-wmf=$with_wmf $have_wmf
38975X11 --with-x=$with_x $have_x
38976XML --with-xml=$with_xml $have_xml
38977ZLIB --with-zlib=$with_zlib $have_zlib
38978
38979X11 Configuration:
38980 X_CFLAGS = $X_CFLAGS
38981 X_PRE_LIBS = $X_PRE_LIBS
38982 X_LIBS = $X_LIBS
38983 X_EXTRA_LIBS = $X_EXTRA_LIBS
38984
38985Options used to compile and link:
38986 PREFIX = $PREFIX_DIR
38987 EXEC-PREFIX = $EXEC_PREFIX_DIR
38988 VERSION = $PACKAGE_VERSION
38989 CC = $CC
38990 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038991 CPPFLAGS = $MAGICK_CPPFLAGS
38992 PCFLAGS = $MAGICK_PCFLAGS
38993 DEFS = $DEFS
38994 LDFLAGS = $LDFLAGS
38995 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38996 LIBS = $MAGICK_LIBS
38997 CXX = $CXX
38998 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038999 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000039000" >&5
cristy09b53e12011-10-14 12:47:22 +000039001$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000039002ImageMagick is configured as follows. Please verify that this configuration
39003matches your expectations.
39004
39005Host system type: $host
39006Build system type: $build
39007
39008 Option Value
39009-------------------------------------------------------------------------------
39010Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39011Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039012Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039013GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39014Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39015High Dynamic Range Imagery
39016 --enable-hdri=$enable_hdri $enable_hdri
39017
39018Delegate Configuration:
39019BZLIB --with-bzlib=$with_bzlib $have_bzlib
39020Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039021Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039022DJVU --with-djvu=$with_djvu $have_djvu
39023DPS --with-dps=$with_dps $have_dps
39024FFTW --with-fftw=$with_fftw $have_fftw
39025FlashPIX --with-fpx=$with_fpx $have_fpx
39026FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39027FreeType --with-freetype=$with_freetype $have_freetype
39028GhostPCL None $PCLDelegate ($PCLVersion)
39029GhostXPS None $XPSDelegate ($XPSVersion)
39030Ghostscript None $PSDelegate ($GSVersion)
39031Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39032Ghostscript lib --with-gslib=$with_gslib $have_gslib
39033Graphviz --with-gvc=$with_gvc $have_gvc
39034JBIG --with-jbig=$with_jbig $have_jbig
39035JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39036JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039037LCMS v1 --with-lcms=$with_lcms $have_lcms
39038LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000039039LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000039040LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039041Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39042OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039043PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039044PERL --with-perl=$with_perl $have_perl
39045PNG --with-png=$with_png $have_png
39046RSVG --with-rsvg=$with_rsvg $have_rsvg
39047TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039048WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039049Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
39050WMF --with-wmf=$with_wmf $have_wmf
39051X11 --with-x=$with_x $have_x
39052XML --with-xml=$with_xml $have_xml
39053ZLIB --with-zlib=$with_zlib $have_zlib
39054
39055X11 Configuration:
39056 X_CFLAGS = $X_CFLAGS
39057 X_PRE_LIBS = $X_PRE_LIBS
39058 X_LIBS = $X_LIBS
39059 X_EXTRA_LIBS = $X_EXTRA_LIBS
39060
39061Options used to compile and link:
39062 PREFIX = $PREFIX_DIR
39063 EXEC-PREFIX = $EXEC_PREFIX_DIR
39064 VERSION = $PACKAGE_VERSION
39065 CC = $CC
39066 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039067 CPPFLAGS = $MAGICK_CPPFLAGS
39068 PCFLAGS = $MAGICK_PCFLAGS
39069 DEFS = $DEFS
39070 LDFLAGS = $LDFLAGS
39071 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39072 LIBS = $MAGICK_LIBS
39073 CXX = $CXX
39074 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039075 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000039076" >&6;}